UNPKG

@szfdiwang/cc-ui

Version:

A Component Library for Vue.js by sulivan.cc.

23 lines (18 loc) 444 B
import Button from '../packages/Button/index.js' import Select from '../packages/Select/index.js' const components = [Button, Select] const install = (Vue, options = {}) => { components.forEach(component => { Vue.component(component.name, component) }) window.CCUI = 'CCUI' } if (typeof window !== 'undefined' && window.Vue) { install(window.Vue) } export default { version: '0.0.1', install, // 全量 Select, Button }