【发布时间】:2019-09-16 15:55:26
【问题描述】:
我有一个像这样的 vuetify 数据表
<v-data-table :items="items" :headers="headers" :search="search">
<template slot="items" slot-scope="props">
<td>{{props.item.id}}</td>
<td>{{props.item.make}}</td>
<td>{{props.item.year}}</td>
</template>
</v-data-table>
而不是这个,我想要的是使用 v-for 加载这些 td 元素
我试过了
<td v-for="i in headers" :key="i">{{props.item.i.text}}</td>
我如何在 vuetify 中做到这一点。我的 vuetify 版本也是 1.5.5
【问题讨论】:
标签: vue.js vuejs2 vuetify.js