<span v-for="key in mycomponentsaa" :key="key" >
<component
:is="dict[key]"
:ref="key"
></component>
</span>
dict: {
editcghtbd: () =>import('../../../components/cc/common/hetong/edithtbd.vue'),
edithtbdForPlan: () =>import('../../../components/cc/common/hetong/edithtbdForPlan.vue'),
edithtbdChange: () =>import('../../../components/cc/common/hetong/edithtbdChange.vue'),
},
mycomponentsaa: ['editcghtbd','edithtbdForPlan', 'edithtbdChange'],
调用组件
this.$refs.editcghtbd[0].xxxxx();