Skip to content

Commit

Permalink
fix(tree): resolve error of tree component (#352)
Browse files Browse the repository at this point in the history
  • Loading branch information
momei-LJM authored May 11, 2024
1 parent 00b8e34 commit a54354b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { TreeInjectionKey, TreeNodeInjectionKey } from './tree'
const bem = createCssScope('tree-node-switcher')
const nodeContext = inject(TreeNodeInjectionKey)
const context = inject(TreeInjectionKey)
</script>

Expand Down
2 changes: 1 addition & 1 deletion packages/yike-design-ui/components/tree/src/tree.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const props = withDefaults(defineProps<TreeProps>(), {
blockNode: false,
multiple: false,
expandIcon() {
return h(IconRightFill)
return () => h(IconRightFill)
},
defaultExpandedKeys() {
return []
Expand Down

0 comments on commit a54354b

Please sign in to comment.