Skip to content

Commit

Permalink
Merge pull request #469 from w2xi/bugfix
Browse files Browse the repository at this point in the history
fix(components): [tree] tree dom should be reactive
  • Loading branch information
Tyh2001 authored Apr 17, 2024
2 parents 6f34163 + 88d26c8 commit a5e5d61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/fighting-design/tree/src/tree.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts" setup>
import { Props, TREE_PROPS_KEY } from './props'
import { provide, toRef, reactive, ref } from 'vue'
import { provide, toRef, reactive, ref, computed } from 'vue'
import FTreeItem from '../components/tree-item/index.vue'
import { isArray, isObject } from '../../_utils'
import { FCheckboxGroup } from '../../checkbox-group'
Expand Down Expand Up @@ -47,7 +47,7 @@
}
/** 处理后的树形结构 */
const tree: TreeItemModel[] = markTreeLevels(prop.data)
const tree = computed(() => markTreeLevels(prop.data))
/** 多选列表 */
const checkOption = ref([])
Expand Down

0 comments on commit a5e5d61

Please sign in to comment.