refactor: TableSwitch组件重构

This commit is contained in:
dap
2025-03-30 14:43:37 +08:00
parent 6c4d15136f
commit 062e999f35
14 changed files with 97 additions and 86 deletions

View File

@@ -183,10 +183,10 @@ function handleSyncTenantDict() {
</template>
<template #status="{ row }">
<TableSwitch
v-model="row.status"
v-model:value="row.status"
:api="() => tenantStatusChange(row)"
:disabled="row.id === 1 || !hasAccessByCodes(['system:tenant:edit'])"
:reload="() => tableApi.query()"
@reload="tableApi.query()"
/>
</template>
<template #action="{ row }">