关于vue.js:vue30-集中-导出组件

42次阅读

共计 433 个字符,预计需要花费 2 分钟才能阅读完成。

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
}

正文完
 0