simple-frame-unit
Version:
基于vue2 研发的与simple-data后端配合使用的组件
29 lines (22 loc) • 489 B
JavaScript
// 弹窗组件
import DiyCompDictChoose from "./DiyCompDictChoose";
// 自定义组件
// 组件集合
const components = {
DiyCompDictChoose
}
// 组件注册
const install = function (Vue, opts = {}) {
Object.keys(components).forEach(key => {
Vue.component(components[key].name, components[key]);
});
}
/* istanbul ignore if */
if (typeof window !== 'undefined' && window.Vue) {
install(window.Vue);
}
// 组件导出
export default {
version: '1.0.0',
install,
}