我有一个v-data-table
有一些通用员工数据的。我想知道我是否可以获得我点击的确切值。
我当前的代码很简单,其中的一个片段看起来像这样。
编辑:我正在使用官方 vuetify 文档中的 CRUD-Actions 示例:https ://vuetifyjs.com/en/components/data-tables/
<v-data-table
:headers="headers"
:items="rows"
item-key="name"
:search="search" >
<template v-slot:top>
<!-- A dailog box is present here to edit the rows-->
</template>
<template v-slot:item.actions="{ item }">
<v-icon small class="mr-2" @click="editItem(item)">
mdi-pencil
</v-icon>
</template>
</v-data-table>
另外,是否可以获取其列名?(上面代码中的标题)谢谢!