style: 优化删除弹窗按钮样式

This commit is contained in:
2024-05-18 23:20:27 +08:00
parent a6b76fbd75
commit c2806c4696

View File

@@ -80,6 +80,7 @@ export function useTable<T>(api: Api<T>, options?: Options<T>) {
Modal.warning({
title: options?.title || '提示',
content: options?.content || '是否确定删除该条数据?',
okButtonProps: { status: 'danger' },
hideCancel: false,
maskClosable: false,
onBeforeOk: onDelete