fix: retain pending Toast and Table fidelity corrections
This commit is contained in:
@@ -117,28 +117,28 @@ const flatRows = () => renderRows(data, 0, []);
|
||||
<TableBody>
|
||||
<template v-for="row in flatRows()" :key="row.item.id">
|
||||
<TableRow
|
||||
v-slot="{ isExpanded, toggleExpanded }"
|
||||
v-slot="{ isExpanded, toggleExpanded, isDisabled }"
|
||||
:level="row.depth + 1"
|
||||
:row-key="row.item.id"
|
||||
:has-child-items="row.item.children.length > 0"
|
||||
>
|
||||
<TableCell>
|
||||
<span
|
||||
class="flex items-center gap-1"
|
||||
:style="{ paddingLeft: row.depth * 16 + 'px' }"
|
||||
>
|
||||
<TableCell
|
||||
v-slot="{ isTreeColumn, hasChildItems: cellHasChildren }"
|
||||
>
|
||||
<span class="flex items-center gap-1">
|
||||
<Button
|
||||
v-if="row.item.children.length > 0"
|
||||
v-if="cellHasChildren && isTreeColumn"
|
||||
is-icon-only
|
||||
aria-label="切换行"
|
||||
size="sm"
|
||||
variant="ghost"
|
||||
:is-disabled="isDisabled"
|
||||
@click="toggleExpanded"
|
||||
>
|
||||
<IconChevronRight
|
||||
aria-hidden="true"
|
||||
class="size-4 text-muted transition-transform duration-150"
|
||||
:class="isExpanded ? 'rotate-90' : ''"
|
||||
:class="isExpanded ? 'rotate-90' : 'rtl:rotate-180'"
|
||||
/>
|
||||
</Button>
|
||||
<span>{{ row.item.title }}</span>
|
||||
|
||||
Reference in New Issue
Block a user