ant-design-vue/components/tree/index.tsx

37 lines
973 B
Vue

import type { App, Plugin } from 'vue';
import Tree from './Tree';
import DirectoryTree from './DirectoryTree';
export { EventDataNode, DataNode } from '../vc-tree/interface';
export {
TreeProps,
AntTreeNodeMouseEvent,
AntTreeNodeExpandedEvent,
AntTreeNodeCheckedEvent,
AntTreeNodeSelectedEvent,
AntdTreeNodeAttribute,
AntTreeNodeProps,
TreeDataItem,
} from './Tree';
export { ExpandAction as DirectoryTreeExpandAction, DirectoryTreeProps } from './DirectoryTree';
Tree.TreeNode.name = 'ATreeNode';
Tree.DirectoryTree = DirectoryTree;
/* istanbul ignore next */
Tree.install = function (app: App) {
app.component(Tree.name, Tree);
app.component(Tree.TreeNode.name, Tree.TreeNode);
app.component(DirectoryTree.name, DirectoryTree);
return app;
};
export const TreeNode = Tree.TreeNode;
export { DirectoryTree };
export default Tree as typeof Tree &
Plugin & {
readonly TreeNode: any;
readonly DirectoryTree: typeof DirectoryTree;
};