feat: 优化确认对话框的属性设置,简化代码结构
This commit is contained in:
@ -68,14 +68,8 @@ const openConfirm = async () => {
|
||||
message: '确定要继续吗?',
|
||||
header: '确认',
|
||||
icon: 'pi pi-exclamation-triangle',
|
||||
rejectProps: {
|
||||
label: '取消',
|
||||
severity: 'secondary',
|
||||
outlined: true,
|
||||
},
|
||||
acceptProps: {
|
||||
label: '确定',
|
||||
},
|
||||
rejectProps: { label: '取消', severity: 'secondary', outlined: true },
|
||||
acceptProps: { label: '确定' },
|
||||
accept: () => {
|
||||
ToastService.add({ severity: 'info', summary: '已确认', detail: '您已同意操作', life: 3000 });
|
||||
},
|
||||
|
Reference in New Issue
Block a user