add entrance transition

This commit is contained in:
Timi
2026-08-24 16:16:43 +08:00
parent 2efce6de11
commit 05aad89706
54 changed files with 874 additions and 694 deletions
@@ -19,22 +19,23 @@
title="允许该角色可继续往下级角色转授权限"
theme="card"
>
<t-cell
v-for="item in grantablePermissionList"
:key="item.id"
:title="item.name || item.code"
>
<template #description>
<span class="code" v-text="item.code"></span>
</template>
<template #right-icon>
<t-switch
:disabled="!canUpdateRolePermission || !canEditActiveRole"
:model-value="isPermissionChecked(item.id)"
@change="value => setPermissionChecked(item.id, value === true)"
/>
</template>
</t-cell>
<t-cell
v-entrance-transition="index * 30"
v-for="(item, index) in grantablePermissionList"
:key="item.id"
:title="item.name || item.code"
>
<template #description>
<span class="code" v-text="item.code"></span>
</template>
<template #right-icon>
<t-switch
:disabled="!canUpdateRolePermission || !canEditActiveRole"
:model-value="isPermissionChecked(item.id)"
@change="value => setPermissionChecked(item.id, value === true)"
/>
</template>
</t-cell>
</t-cell-group>
<t-empty v-else-if="!permissionStore.loading" description="暂无可配置的转授权限 D" />
</div>