在Vuetify数据表中,对于带有槽模板的表列,可以使用Camel大小写的列名,目前仅支持列名,例如模型中的小写
这不起作用:
<template v-slot:item.firstName="{item}">
<span>{{item.prefix}} {{item.firstName}} {{item.lastName}} </span>
</template>
这有效:
<template v-slot:item.firstname="{item}">
<span>{{item.prefix}} {{item.firstname}} {{item.lastname}} </span>
</template>
我的数据模型具有这样的属性。
contactsList: {
{lastName : "Ray",
firstName : "Sam",
prefix : "Dr."},
{lastName : "Bank",
firstName : "Paul",
prefix : "Jr."}}