mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-02 20:18:22 +08:00
20 lines
530 B
Vue
20 lines
530 B
Vue
import { App, Plugin } from 'vue';
|
|
import Tree from './Tree';
|
|
import DirectoryTree 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 default Tree as typeof Tree &
|
|
Plugin & {
|
|
readonly TreeNode: any;
|
|
readonly DirectoryTree: typeof DirectoryTree;
|
|
};
|