Skip to content

Commit

Permalink
Tree: make el-tree generic (ElemeFE#15934)
Browse files Browse the repository at this point in the history
  • Loading branch information
jw-foss authored and lzq4047 committed May 22, 2020
1 parent e0fc641 commit a545387
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions types/element-ui.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -305,7 +305,7 @@ export class Tooltip extends ElTooltip {}
export class Transfer extends ElTransfer {}

/** Tree Component */
export class Tree extends ElTree {}
export class Tree<K = any, D = TreeData> extends ElTree<K, D> {}

/** Upload Component */
export class Upload extends ElUpload {}
Expand Down
2 changes: 1 addition & 1 deletion types/tree.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export interface TreeStore<K, D> {
}

/** Tree Component */
export declare class ElTree<K = any, D = TreeData> extends ElementUIComponent {
export declare class ElTree<K, D extends TreeData> extends ElementUIComponent {
/** TreeStore */
store: TreeStore<K, D>;

Expand Down

0 comments on commit a545387

Please sign in to comment.