UNPKG

gundam-ui

Version:

A ui-framework based on antdv

50 lines (42 loc) 923 B
import BaseButton from './a-button' // import BaseInput from './a-input' // // import BaseTextarea from './a-textarea' // import BaseSelect from './a-select' // import BaseCheckbox from './a-checkbox' // import BaseForm from './a-form' // import BaseMessage from './a-message' // import BaseRate from './a-rate' import GLabel from './g-label' const components = [ BaseButton, // BaseInput, // // BaseTextarea, // BaseSelect, // BaseCheckbox, // BaseForm, // BaseMessage, // BaseRate, GLabel // Rate ] const install = (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 } export { BaseButton, // BaseInput, // // BaseTextarea, // BaseSelect, // BaseCheckbox, // BaseForm, // BaseMessage, // BaseRate, GLabel }