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 { ElTimeSelect } from './time-select'
|
||||||
import { ElTooltip } from './tooltip'
|
import { ElTooltip } from './tooltip'
|
||||||
import { ElTransfer } from './transfer'
|
import { ElTransfer } from './transfer'
|
||||||
import { ElTree } from './tree'
|
import { ElTree, TreeData } from './tree'
|
||||||
import { ElUpload } from './upload'
|
import { ElUpload } from './upload'
|
||||||
import { ElLink } from './link'
|
import { ElLink } from './link'
|
||||||
import { ElDivider } from './divider'
|
import { ElDivider } from './divider'
|
||||||
|
@ -305,7 +305,7 @@ export class Tooltip extends ElTooltip {}
|
||||||
export class Transfer extends ElTransfer {}
|
export class Transfer extends ElTransfer {}
|
||||||
|
|
||||||
/** Tree Component */
|
/** Tree Component */
|
||||||
export class Tree extends ElTree {}
|
export class Tree<K = any, D = TreeData> extends ElTree<K, D> {}
|
||||||
|
|
||||||
/** Upload Component */
|
/** Upload Component */
|
||||||
export class Upload extends ElUpload {}
|
export class Upload extends ElUpload {}
|
||||||
|
|
|
@ -45,7 +45,7 @@ export interface TreeStore<K, D> {
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Tree Component */
|
/** Tree Component */
|
||||||
export declare class ElTree<K = any, D = TreeData> extends ElementUIComponent {
|
export declare class ElTree<K, D extends TreeData> extends ElementUIComponent {
|
||||||
/** TreeStore */
|
/** TreeStore */
|
||||||
store: TreeStore<K, D>;
|
store: TreeStore<K, D>;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue