UNPKG

muf-ui

Version:

MUF-UI,基于Vue的Web多样化组件库

42 lines (33 loc) 905 B
//import common Css import "./resource/muf-icon/iconfont.css"; import "./resource/css/common.css"; //import muf-ui components import MufWindow from "./components/Window/index.js"; import MufButton from "./components/Button"; import MufInput from "./components/Input"; import MufText from "./components/Text"; //mount components const components = [ MufWindow, MufButton, MufInput, MufText, ] //install components in Vue object const install = function(Vue) { components.forEach(component => { Vue.component(component.name, component); }); } //if inside of window object nonentity Vue, else install Vue object in window object if (typeof window !== 'undefined' && window.Vue) { install(window.Vue); } //export muf-ui all components export default { install, MufWindow, MufButton, MufInput, MufText, }