feat: 更新确认对话框的拒绝按钮属性,优化用户交互体验 [no ci]

This commit is contained in:
严浩
2025-01-08 15:25:45 +08:00
parent 7258853b57
commit f86afbdb2c

View File

@ -62,6 +62,7 @@ export const openConfirm = async () => {
header: '确认', header: '确认',
icon: 'pi pi-exclamation-triangle', icon: 'pi pi-exclamation-triangle',
rejectProps: { label: '取消', severity: 'secondary', outlined: true }, rejectProps: { label: '取消', severity: 'secondary', outlined: true },
// rejectProps: { style: { display: 'none' } },
acceptProps: { label: '确定' }, acceptProps: { label: '确定' },
accept: () => { accept: () => {
ToastService.add({ severity: 'info', summary: '已确认', life: 3000, detail: '您已同意操作' }); ToastService.add({ severity: 'info', summary: '已确认', life: 3000, detail: '您已同意操作' });