expand
现在是 toggleExpand
并期望 internalItem
插槽道具
<template #item.data-table-expand="{ item, internalItem, toggleExpand, isExpanded }">
<td v-if="item?.versions?.length > 0" class="text-start">
<v-btn
variant="text"
density="comfortable"
@click="toggleExpand(internalItem)"
class="v-data-table__expand-icon"
:class="{ 'v-data-table__expand-icon--active': isExpanded }"
>
<v-icon>mdi-chevron-down</v-icon>
</v-btn>
</td>
</template>