fix: TableAction 批量删除 disabled 控制
This commit is contained in:
@@ -5,7 +5,7 @@ import type { Demo01ContactApi } from '#/api/infra/demo/demo01';
|
|||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
|
|
||||||
import { Page, useVbenModal } from '@vben/common-ui';
|
import { Page, useVbenModal } from '@vben/common-ui';
|
||||||
import { downloadFileFromBlobPart } from '@vben/utils';
|
import {downloadFileFromBlobPart, isEmpty} from '@vben/utils';
|
||||||
|
|
||||||
import { message } from 'ant-design-vue';
|
import { message } from 'ant-design-vue';
|
||||||
|
|
||||||
@@ -151,6 +151,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
|
|||||||
label: '批量删除',
|
label: '批量删除',
|
||||||
type: 'primary',
|
type: 'primary',
|
||||||
danger: true,
|
danger: true,
|
||||||
|
disabled: isEmpty(checkedIds),
|
||||||
icon: ACTION_ICON.DELETE,
|
icon: ACTION_ICON.DELETE,
|
||||||
auth: ['infra:demo01-contact:delete'],
|
auth: ['infra:demo01-contact:delete'],
|
||||||
onClick: handleDeleteBatch,
|
onClick: handleDeleteBatch,
|
||||||
|
|||||||
Reference in New Issue
Block a user