comfort-ui
Version:
A Vue.js project for UI
21 lines (17 loc) • 363 B
JavaScript
import Button from '../packages/button/index.js';
const components = [
Button
]
const install = function(Vue,opts = {}) {
components.forEach(component => {
Vue.component(component.name, component);
});
}
/* istanbul ignore if */
if (typeof window !== 'undefined' && window.Vue) {
install(window.Vue);
}
export default {
install,
Button
}