forked from github/dataease
Merge pull request #8377 from dataease/pr@dev-v2@fix_system_filter
fix: 树形选择器点击节点选中数据无效
This commit is contained in:
commit
196ea6f095
@ -1,7 +1,7 @@
|
||||
<script setup lang="ts">
|
||||
import { propTypes } from '@/utils/propTypes'
|
||||
import { ElTreeSelect } from 'element-plus-secondary'
|
||||
import { computed, reactive, ref, PropType, toRefs } from 'vue'
|
||||
import { computed, reactive, ref, PropType, toRefs, watch } from 'vue'
|
||||
import { useI18n } from '@/hooks/web/useI18n'
|
||||
const { t } = useI18n()
|
||||
interface TreeConfig {
|
||||
@ -60,6 +60,15 @@ const optionListNotSelect = computed(() => {
|
||||
const clear = () => {
|
||||
state.currentStatus = []
|
||||
}
|
||||
watch(
|
||||
() => state.currentStatus,
|
||||
() => {
|
||||
treeChange()
|
||||
},
|
||||
{
|
||||
immediate: true
|
||||
}
|
||||
)
|
||||
defineExpose({
|
||||
clear
|
||||
})
|
||||
@ -74,7 +83,6 @@ defineExpose({
|
||||
ref="filterTree"
|
||||
:teleported="false"
|
||||
style="width: 100%"
|
||||
@change="treeChange"
|
||||
v-model="state.currentStatus"
|
||||
:data="optionListNotSelect"
|
||||
:highlight-current="true"
|
||||
|
Loading…
Reference in New Issue
Block a user