Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
hukaibaihu committed Dec 17, 2018
1 parent e548127 commit 9dd85ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"name": "vue2-org-tree",
"description": "A simple organization tree chart based on Vue2.x",
"version": "1.1.0",
"version": "1.1.1",
"main": "dist/index.js",
"module": "src/main.js",
"author": "steven <[email protected]>",
"license": "MIT",
"scripts": {
Expand Down
9 changes: 3 additions & 6 deletions src/components/org-tree/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,10 @@ const install = Vue => {
Vue.component(OrgTree.name, OrgTree)
}

const plugin = {
install,
name: 'Vue2OrgTree'
}
OrgTree.install = install

if (typeof window !== 'undefined' && window.Vue) {
window.Vue.use(plugin)
window.Vue.use(OrgTree)
}

export default plugin
export default OrgTree

0 comments on commit 9dd85ba

Please sign in to comment.