feat: 🎸 export default with the install method

This commit is contained in:
Binbin Sun
2020-01-07 11:21:17 +08:00
parent 780d42c6ea
commit c1270b880b
2 changed files with 6 additions and 0 deletions

View File

@@ -185,6 +185,7 @@ import {addHandler, removeHandler} from './tools.js'
let compInOperation = null
export default {
name: 'vue-tree-list',
data: function() {
return {
isHover: false,

View File

@@ -5,4 +5,9 @@
import VueTreeList from "./VueTreeList";
import { Tree, TreeNode } from "./Tree";
VueTreeList.install = Vue => {
Vue.component(VueTreeList.name, VueTreeList);
};
export default VueTreeList;
export { Tree, TreeNode, VueTreeList };