mirror of
https://gitee.com/yudaocode/yudao-ui-admin-vben.git
synced 2025-12-30 10:32:25 +00:00
feat(BasicTree): BasicTree组件暴露treeData数据
This commit is contained in:
@@ -297,6 +297,7 @@ export default defineComponent({
|
||||
})
|
||||
|
||||
const instance: TreeActionType = {
|
||||
treeData: treeDataRef,
|
||||
setExpandedKeys,
|
||||
getExpandedKeys,
|
||||
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 { buildProps } from '@/utils/props'
|
||||
@@ -165,6 +165,7 @@ export interface InsertNodeParams {
|
||||
}
|
||||
|
||||
export interface TreeActionType {
|
||||
treeData: Ref<TreeDataItem[]>
|
||||
checkAll: (checkAll: boolean) => void
|
||||
expandAll: (expandAll: boolean) => void
|
||||
setExpandedKeys: (keys: KeyType[]) => void
|
||||
|
||||
Reference in New Issue
Block a user