From ef4fbe3be2df48014f252fea28106f72e2149346 Mon Sep 17 00:00:00 2001 From: btea <2356281422@qq.com> Date: Thu, 28 Dec 2023 19:07:00 +0800 Subject: [PATCH] feat(components): [tree] export TreeInstance (#15293) --- packages/components/tree/index.ts | 1 + packages/components/tree/src/instance.ts | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 packages/components/tree/src/instance.ts diff --git a/packages/components/tree/index.ts b/packages/components/tree/index.ts index d8e2914cb5..75887c4865 100644 --- a/packages/components/tree/index.ts +++ b/packages/components/tree/index.ts @@ -11,3 +11,4 @@ const _Tree = Tree as SFCWithInstall export default _Tree export const ElTree = _Tree +export type { TreeInstance } from './src/instance' diff --git a/packages/components/tree/src/instance.ts b/packages/components/tree/src/instance.ts new file mode 100644 index 0000000000..01b3e75dac --- /dev/null +++ b/packages/components/tree/src/instance.ts @@ -0,0 +1,3 @@ +import type Tree from './tree.vue' + +export type TreeInstance = InstanceType