mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-12-01 19:57:48 +08:00
Tree: make el-tree generic (#15934)
This commit is contained in:
parent
d983bc6674
commit
8a42dd1fcc
4
types/element-ui.d.ts
vendored
4
types/element-ui.d.ts
vendored
@ -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<K = any, D = TreeData> extends ElTree<K, D> {}
|
||||
|
||||
/** Upload Component */
|
||||
export class Upload extends ElUpload {}
|
||||
|
2
types/tree.d.ts
vendored
2
types/tree.d.ts
vendored
@ -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>;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user