UNPKG

llzpackdemo

Version:

## Project setup ``` yarn install ```

37 lines (28 loc) 647 B
import Vue from 'vue' import Zydatepick from "./components/zydatepick.vue"; import GoodText from "./components/goodText.vue"; Zydatepick.install = function (Vue) { Vue.component(Zydatepick.name, Zydatepick) } GoodText.install = function (Vue) { Vue.component(GoodText.name, GoodText) } const components = [ Zydatepick,GoodText ] const install = function (Vue, opts = {}) { components.forEach(component => { Vue.component(component.name, component) }) } if (typeof window !== 'undefined' && window.Vue) { install(window.Vue); } export { install, Zydatepick,GoodText } export default { install, Zydatepick,GoodText }