优化滚动组件;下拉组件
parent
80cd4adad9
commit
17ce8fe6fa
|
@ -241,6 +241,8 @@ export default class Dropdown {
|
|||
this.state.optionShow = false
|
||||
this.__OPTIONS__.classList.toggle('active', false)
|
||||
})
|
||||
|
||||
$.nextTick(_ => this._updateChildrenStat())
|
||||
}
|
||||
|
||||
unmounted() {
|
||||
|
|
|
@ -119,7 +119,11 @@ export default class Option {
|
|||
switch (name) {
|
||||
case 'value':
|
||||
case 'label':
|
||||
this[name] = val
|
||||
if (val === null) {
|
||||
this[name] = ''
|
||||
} else {
|
||||
this[name] = val
|
||||
}
|
||||
break
|
||||
|
||||
case 'disabled':
|
||||
|
|
|
@ -209,7 +209,9 @@ export default class Markd {
|
|||
} else {
|
||||
this.__BOX__.innerHTML = ''
|
||||
}
|
||||
this.dispatchEvent(new CustomEvent('ready', { bubbles: true }))
|
||||
this.dispatchEvent(
|
||||
new CustomEvent('ready', { bubbles: true, cancelable: true })
|
||||
)
|
||||
}
|
||||
|
||||
clear() {
|
||||
|
|
|
@ -391,8 +391,7 @@ export default class Scroll {
|
|||
subtree: true,
|
||||
attributeFilter: ['style']
|
||||
})
|
||||
|
||||
this._initFn(new Event('mounted'))
|
||||
$.nextTick(_ => this._initFn(new Event('mounted')))
|
||||
}
|
||||
|
||||
unmounted() {
|
||||
|
|
Reference in New Issue