Unverified 提交 75c1bc62 authored 作者: fit2cloud-chenyw's avatar fit2cloud-chenyw 提交者: GitHub

Merge pull request #2332 from dataease/pr@dev@fix_tree_single_multi_switch

fix: 树过滤器单多模式切换
......@@ -140,8 +140,24 @@ export default {
}
this.show = false
this.$nextTick(() => {
// this.value = value ? [] : null
this.show = true
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)
})
})
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论