UNPKG

aqsc-mobile-com

Version:

基于uni-ui实现的二次封装

18 lines (16 loc) 459 B
import AqscMobilePanel from './panel/panel.vue' const components = [{ name: 'AqscMobilePanel', component: AqscMobilePanel }] const install = (Vue) => { if (install.installed) return // 遍历引入组件 components.forEach((item) => { Vue.component(item.name, item.component) // 注册组件 }) } if (typeof window !== 'undefined' && window.Vue) { install(window.Vue) } export { AqscMobilePanel } export default { install, }