staryea-design
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "staryea-design", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Staryea-Design:基于view-design的扩展组件", | ||
@@ -5,0 +5,0 @@ "private": false, |
import StaryeaTable from './index.vue' | ||
StaryeaTable.install = Vue => Vue.component(StaryeaTable.name, StaryeaTable) | ||
export default StaryeaTable |
@@ -1,11 +0,14 @@ | ||
import SearchForm from './components/SearchForm' | ||
import StaryeaTable from './components/IViewTable' | ||
import SearchForm from './components/SearchForm/index.vue' | ||
import StaryeaTable from './components/IViewTable/index.vue' | ||
const components = { | ||
const components = [ | ||
SearchForm, | ||
StaryeaTable | ||
} | ||
] | ||
const install = function(Vue) { | ||
components.forEach(component => { | ||
//判断是否安装,安装过就不用继续执行 | ||
if (install.installed) return | ||
install.installed = true | ||
components.map(component => { | ||
Vue.component(component.name, component) | ||
@@ -12,0 +15,0 @@ }) |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
13249
696487