UNPKG

lilinzhen

Version:

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

34 lines (24 loc) 492 B
import Vue from 'vue' import Zydatepick from "./components/zydatepick.vue"; Zydatepick.install = function (Vue) { Vue.component(Zydatepick.name, Zydatepick) } const components = [ Zydatepick ] 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 } export default { install, Zydatepick }