2020-11-01 07:03:33 +00:00
|
|
|
import { App, Plugin } from 'vue';
|
2019-01-12 03:33:27 +00:00
|
|
|
import Tree from './Tree';
|
|
|
|
import DirectoryTree from './DirectoryTree';
|
2018-04-13 10:58:58 +00:00
|
|
|
|
2019-01-12 03:33:27 +00:00
|
|
|
Tree.TreeNode.name = 'ATreeNode';
|
|
|
|
Tree.DirectoryTree = DirectoryTree;
|
2018-09-19 05:21:57 +00:00
|
|
|
/* istanbul ignore next */
|
2020-10-22 06:25:02 +00:00
|
|
|
Tree.install = function(app: App) {
|
2020-07-16 10:31:20 +00:00
|
|
|
app.component(Tree.name, Tree);
|
|
|
|
app.component(Tree.TreeNode.name, Tree.TreeNode);
|
|
|
|
app.component(DirectoryTree.name, DirectoryTree);
|
2020-10-13 11:14:56 +00:00
|
|
|
return app;
|
2019-01-12 03:33:27 +00:00
|
|
|
};
|
2018-09-19 05:21:57 +00:00
|
|
|
|
2020-11-01 07:03:33 +00:00
|
|
|
export default Tree as typeof Tree &
|
|
|
|
Plugin & {
|
|
|
|
readonly TreeNode: any;
|
|
|
|
readonly DirectoryTree: typeof DirectoryTree;
|
|
|
|
};
|