vue3.0 集中 导出组件

import ActiveControl from "./activeControl.vue";
import PlanControl from "./planControl.vue";
import RelationPlan from "./relationPlan.vue";


(ActiveControl as any).install = (Vue: any) => {
  Vue.component(ActiveControl.name, ActiveControl)
}
(PlanControl as any).install = (Vue: any) => {
  Vue.component(PlanControl.name, PlanControl)
}
(RelationPlan as any).install = (Vue: any) => {
  Vue.component(RelationPlan.name, RelationPlan)
}

export {
  ActiveControl,
  PlanControl,
  RelationPlan
}

评论

暂无评论