mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
* 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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user