From 8a42dd1fcc0e40355d32a30eca3e36b8c5e05905 Mon Sep 17 00:00:00 2001 From: jeremywu <591449570@qq.com> Date: Tue, 2 Jul 2019 17:04:42 +0800 Subject: [PATCH] Tree: make el-tree generic (#15934) --- types/element-ui.d.ts | 4 ++-- types/tree.d.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/types/element-ui.d.ts b/types/element-ui.d.ts index 9dbe2ef7a..4abeb7db3 100644 --- a/types/element-ui.d.ts +++ b/types/element-ui.d.ts @@ -67,7 +67,7 @@ import { ElTimePicker } from './time-picker' import { ElTimeSelect } from './time-select' import { ElTooltip } from './tooltip' import { ElTransfer } from './transfer' -import { ElTree } from './tree' +import { ElTree, TreeData } from './tree' import { ElUpload } from './upload' import { ElLink } from './link' import { ElDivider } from './divider' @@ -305,7 +305,7 @@ export class Tooltip extends ElTooltip {} export class Transfer extends ElTransfer {} /** Tree Component */ -export class Tree extends ElTree {} +export class Tree extends ElTree {} /** Upload Component */ export class Upload extends ElUpload {} diff --git a/types/tree.d.ts b/types/tree.d.ts index f9923f40d..64dd36ad7 100644 --- a/types/tree.d.ts +++ b/types/tree.d.ts @@ -45,7 +45,7 @@ export interface TreeStore { } /** Tree Component */ -export declare class ElTree extends ElementUIComponent { +export declare class ElTree extends ElementUIComponent { /** TreeStore */ store: TreeStore;