From a196b3a1e348c5f7e82de72d283c14f81fa76d44 Mon Sep 17 00:00:00 2001 From: Jobin <425605679@qq.com> Date: Sun, 8 May 2022 13:44:23 +0800 Subject: [PATCH] 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] --- packages/components/tree-v2/src/virtual-tree.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/packages/components/tree-v2/src/virtual-tree.ts b/packages/components/tree-v2/src/virtual-tree.ts index 1e74fd2c19..330a160308 100644 --- a/packages/components/tree-v2/src/virtual-tree.ts +++ b/packages/components/tree-v2/src/virtual-tree.ts @@ -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,