forked from github/dataease
fix: 下拉列表组件逻辑错误
This commit is contained in:
parent
0c970018d5
commit
7b290dc643
@ -127,14 +127,20 @@ export default {
|
|||||||
},
|
},
|
||||||
'element.options.attrs.multiple': function(value, old) {
|
'element.options.attrs.multiple': function(value, old) {
|
||||||
if (typeof old === 'undefined' || value === old) return
|
if (typeof old === 'undefined' || value === old) return
|
||||||
// if (!this.inDraw) {
|
if (!this.inDraw) {
|
||||||
this.value = value ? [] : null
|
this.value = value ? [] : null
|
||||||
this.element.options.value = ''
|
this.element.options.value = ''
|
||||||
// }
|
} else {
|
||||||
|
this.value = this.fillValueDerfault()
|
||||||
|
}
|
||||||
|
|
||||||
this.show = false
|
this.show = false
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.show = true
|
this.show = true
|
||||||
|
if (value) {
|
||||||
|
this.checkAll = this.value.length === this.datas.length
|
||||||
|
this.isIndeterminate = this.value.length > 0 && this.value.length < this.datas.length
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user