提交 adbd045b authored 作者: fit2cloud-chenyw's avatar fit2cloud-chenyw

fix: 树过滤器单多模式切换

上级 39b1076a
...@@ -140,8 +140,24 @@ export default { ...@@ -140,8 +140,24 @@ export default {
} }
this.show = false this.show = false
this.$nextTick(() => { this.$nextTick(() => {
// this.value = value ? [] : null
this.show = true this.show = true
this.$nextTick(() => { this.$nextTick(() => {
const defaultV = this.element.options.value === null ? '' : this.element.options.value.toString()
if (value) {
if (defaultV === null || typeof defaultV === 'undefined' || defaultV === '' || defaultV === '[object Object]') {
this.value = []
} else {
this.value = defaultV.split(',')
}
} else {
if (defaultV === null || typeof defaultV === 'undefined' || defaultV === '' || defaultV === '[object Object]') {
this.value = ''
} else {
this.value = defaultV.split(',')[0]
}
}
this.$refs.deSelectTree && this.$refs.deSelectTree.treeDataUpdateFun(this.datas) this.$refs.deSelectTree && this.$refs.deSelectTree.treeDataUpdateFun(this.datas)
}) })
}) })
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论