fix(components): [el-tree-v2]prop icon support Component. fix [#7517] (#7518)

* fix(components): [el-tree-v2]prop `icon` support Component. fix [#7517]

* fix(components): [el-tree-v2]prop `icon` support Component. fix [#7517]
This commit is contained in:
Jobin
2022-05-08 13:44:23 +08:00
committed by GitHub
parent 5edc3a3adf
commit a196b3a1e3

View File

@@ -1,4 +1,9 @@
import { buildProps, definePropType, mutable } from '@element-plus/utils'
import {
buildProps,
definePropType,
iconPropType,
mutable,
} from '@element-plus/utils'
import type { InjectionKey } from 'vue'
import type { TreeNodeData } from '../../tree/src/tree.type'
import type {
@@ -82,7 +87,7 @@ export const treeProps = buildProps({
default: 16,
},
icon: {
type: String,
type: iconPropType,
},
expandOnClickNode: {
type: Boolean,