举例说明
this.tablebottombox中的数据是这样的
表头
在这里插入图片描述
表格数据
在这里插入图片描述
效果图
在这里插入图片描述
代码是这样的

 <div class="tabletop" v-for="(item, index) in this.tablebottombox"
> :key="index">
>         <template v-for="(headItem, i) in tabletopbox">
>             <div :key="i" class="tabletopbottom">
>                 {{ item[headItem.fieldName] }}
>             </div>
>         </template>
>     </div>
Logo

前往低代码交流专区

更多推荐