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
}
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论