mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-01-25 02:58:43 +08:00
feat(BasicTree): BasicTree组件暴露treeData数据
This commit is contained in:
parent
2142506ce5
commit
caf1783525
@ -320,6 +320,7 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
const instance: TreeActionType = {
|
const instance: TreeActionType = {
|
||||||
|
treeData: treeDataRef,
|
||||||
setExpandedKeys,
|
setExpandedKeys,
|
||||||
getExpandedKeys,
|
getExpandedKeys,
|
||||||
setSelectedKeys,
|
setSelectedKeys,
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import type { ExtractPropTypes } from 'vue';
|
import type { ExtractPropTypes, Ref } from 'vue';
|
||||||
import type { TreeDataItem } from 'ant-design-vue/es/tree/Tree';
|
import type { TreeDataItem } from 'ant-design-vue/es/tree/Tree';
|
||||||
|
|
||||||
import { buildProps } from '/@/utils/props';
|
import { buildProps } from '/@/utils/props';
|
||||||
@ -171,6 +171,7 @@ export interface InsertNodeParams {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface TreeActionType {
|
export interface TreeActionType {
|
||||||
|
treeData: Ref<TreeDataItem[]>;
|
||||||
checkAll: (checkAll: boolean) => void;
|
checkAll: (checkAll: boolean) => void;
|
||||||
expandAll: (expandAll: boolean) => void;
|
expandAll: (expandAll: boolean) => void;
|
||||||
setExpandedKeys: (keys: KeyType[]) => void;
|
setExpandedKeys: (keys: KeyType[]) => void;
|
||||||
|
Loading…
Reference in New Issue
Block a user