mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-05 13:39:40 +08:00
41 lines
930 B
Vue
41 lines
930 B
Vue
import type { App } from 'vue';
|
|
import Tree from './Tree';
|
|
import { TreeNode as VcTreeNode } from '../vc-tree';
|
|
import DirectoryTree from './DirectoryTree';
|
|
|
|
export type { EventDataNode, DataNode } from '../vc-tree/interface';
|
|
|
|
export type {
|
|
TreeProps,
|
|
AntTreeNodeMouseEvent,
|
|
AntTreeNodeExpandedEvent,
|
|
AntTreeNodeCheckedEvent,
|
|
AntTreeNodeSelectedEvent,
|
|
AntTreeNodeDragEnterEvent,
|
|
AntTreeNodeDropEvent,
|
|
AntdTreeNodeAttribute,
|
|
TreeDataItem,
|
|
} from './Tree';
|
|
|
|
export type {
|
|
ExpandAction as DirectoryTreeExpandAction,
|
|
DirectoryTreeProps,
|
|
} from './DirectoryTree';
|
|
|
|
/* istanbul ignore next */
|
|
|
|
const TreeNode = VcTreeNode;
|
|
|
|
export { DirectoryTree, TreeNode };
|
|
|
|
export default Object.assign(Tree, {
|
|
DirectoryTree,
|
|
TreeNode,
|
|
install: (app: App) => {
|
|
app.component(Tree.name, Tree);
|
|
app.component(TreeNode.name, TreeNode);
|
|
app.component(DirectoryTree.name, DirectoryTree);
|
|
return app;
|
|
},
|
|
});
|