You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.1 KiB
43 lines
1.1 KiB
import type { App } from 'vue';
|
|
import { defineComponent } from 'vue';
|
|
import Tree from './Tree';
|
|
import { TreeNode as VcTreeNode } from '../vc-tree';
|
|
import DirectoryTree from './DirectoryTree';
|
|
import { treeNodeProps } from '../vc-tree/props';
|
|
|
|
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 = defineComponent({ ...VcTreeNode, name: 'ATreeNode', props: treeNodeProps });
|
|
|
|
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;
|
|
},
|
|
});
|