1class ScriptDetailCustomized extends Script{ 2 constructor(params) { 3 super(params) 4 this.$dom = document.querySelector(`#${this.attrId}`) 5 this.$btn = this.$dom.querySelector('.unit-detail-customized__btn') 6 this.$modal = this.$dom.querySelector('.unit-detail-customized__modal') 7 this.$close = this.$dom.querySelector('.unit-detail-customized__close') 8 this.$form = document.querySelector(`#inquiry-${this.attrId}`) 9 this.Modal = null 10 } 11 async init() { 12 // äºä»¶åå§å 13 this._initNodeEvent() 14 } 15 /**äºä»¶åå§å */ 16 _initNodeEvent() { 17 // æ¾ç¤ºå¼¹çª 18 this.$btn.addEventListener('click', () => { 19 this.showModal() 20 }) 21 } 22 /** æ¾ç¤ºå¼¹çª */ 23 showModal() { 24 this.Modal = new Modal() 25 this.Modal.init({ 26 body: this.$modal, 27 title: window.app.utilts.$t('Design customization'), 28 size: 'lg', 29 className: 'customized-modal', 30 onSubmit: () => { this.$form.querySelector('[type="submit"]').click() }, 31 onCancel: () => { this.Modal.destroy() } 32 }).open() 33 } 34}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.