hw-vue-components-test
Version:
hw vue components
25 lines (20 loc) • 436 B
JavaScript
import HwLogin from "./login";
import HwButton from "./button";
const components = [
HwLogin,
HwButton
];
const install = function (Vue) {
if(install.installed){
return;
}
components.map(component => Vue.component(component.name, component));
};
if(typeof window !== 'undefined' && window.Vue){
install(window.Vue);
}
export default {
install,
HwLogin,
HwButton
}