fix: retain pending Toast and Table fidelity corrections

This commit is contained in:
maoyingjie
2026-10-25 21:24:09 +08:00
parent 2ce80b17da
commit a2ca6ed0b8
42 changed files with 2153 additions and 260 deletions
+8 -8
View File
@@ -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>