mirror of https://github.com/ElemeFE/element
Tree: make el-tree generic (#15934)
parent
d983bc6674
commit
8a42dd1fcc
|
@ -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 {}
|
||||
|
|
|
@ -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