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

@@ -128,10 +128,10 @@ const { hasAccessByCodes } = useAccess();
</template>
<template #status="{ row }">
<TableSwitch
v-model="row.status"
v-model:value="row.status"
:api="() => ossConfigChangeStatus(row)"
:disabled="!hasAccessByCodes(['system:ossConfig:edit'])"
:reload="() => tableApi.query()"
@reload="tableApi.query()"
/>
</template>
<template #action="{ row }">