然而,当我将此单击事件放在特定表数据上时,会调用 editItem 函数。如何在表格行本身上调用相同的函数? 在我的代码中,我尝试使用 v-data-table 模板和插槽,并在行中包含点击事件,但它也不起作用 <template slot="items" slot-scope="props"> <tr @click="editItem(item), selected = item.id"> <td>{{ ...