Skip to content

Commit

Permalink
fix(components): [tree-v2] add missing icon (#10340)
Browse files Browse the repository at this point in the history
Co-authored-by: init-qy <953218204@qq.com>
  • Loading branch information
init-qy and init-qy committed Nov 1, 2022
1 parent 4ff8f28 commit 1753e1d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/components/tree-v2/src/tree-node.vue
Expand Up @@ -51,6 +51,7 @@
<script lang="ts" setup>
import { computed, inject } from 'vue'
import ElIcon from '@element-plus/components/icon'
import { CaretRight } from '@element-plus/icons-vue'
import ElCheckbox from '@element-plus/components/checkbox'
import { useNamespace } from '@element-plus/hooks'
import ElNodeContent from './tree-node-content'
Expand All @@ -62,8 +63,6 @@ import {
} from './virtual-tree'
import type { CheckboxValueType } from '@element-plus/components/checkbox'
const DEFAULT_ICON = 'caret-right'
defineOptions({
name: 'ElTreeNode',
})
Expand All @@ -79,7 +78,7 @@ const indent = computed(() => {
})
const icon = computed(() => {
return tree?.props.icon ?? DEFAULT_ICON
return tree?.props.icon ?? CaretRight
})
const handleClick = (e: MouseEvent) => {
Expand Down

0 comments on commit 1753e1d

Please sign in to comment.