<el-col v-for="{ span, componentName, label, ...others } in contentList" :key="compone
顺晟科技
2022-09-03 12:40:08
214
我在遍历的时候,事件需要用到组件描述对象本身,所以想在获取对象的同时解构这个对象,但是没有找到对应的语法实例,有没有大佬有啥好的意见我想要的大致是这样(这个是错误的写法,意思是这样表达):
顺晟科技:
v-for="(tag,{ span, componentName, label, ...others }=tag) in contentList"
解构解傻了…