From 3622c099e9f31f56adedb4630f1a09df561c1428 Mon Sep 17 00:00:00 2001 From: xingyu Date: Wed, 23 Aug 2023 11:38:06 +0800 Subject: [PATCH] fix: button antdv 4.0 --- src/views/infra/codegen/index.vue | 2 +- src/views/infra/config/index.vue | 2 +- src/views/infra/dataSourceConfig/index.vue | 2 +- src/views/infra/file/index.vue | 2 +- src/views/infra/fileConfig/index.vue | 2 +- src/views/infra/job/index.vue | 2 +- src/views/member/point/config/index.vue | 2 +- src/views/member/signin/config/index.vue | 2 +- src/views/member/tag/index.vue | 2 +- src/views/mp/account/index.vue | 2 +- src/views/mp/tag/index.vue | 2 +- src/views/pay/app/index.vue | 2 +- src/views/pay/demo/index.vue | 2 +- src/views/pay/merchant/index.vue | 2 +- src/views/system/dept/index.vue | 2 +- src/views/system/dict/DictData.vue | 2 +- src/views/system/dict/index.vue | 2 +- src/views/system/errorCode/index.vue | 2 +- src/views/system/mail/account/index.vue | 2 +- src/views/system/mail/template/index.vue | 2 +- src/views/system/menu/index.vue | 2 +- src/views/system/notice/index.vue | 2 +- src/views/system/notify/template/index.vue | 2 +- src/views/system/oauth2/client/index.vue | 2 +- src/views/system/oauth2/token/index.vue | 2 +- src/views/system/post/index.vue | 2 +- src/views/system/role/index.vue | 2 +- src/views/system/sensitiveWord/index.vue | 2 +- src/views/system/sms/channel/index.vue | 2 +- src/views/system/sms/template/index.vue | 2 +- src/views/system/tenant/index.vue | 2 +- src/views/system/tenantPackage/index.vue | 2 +- src/views/system/user/index.vue | 2 +- 33 files changed, 33 insertions(+), 33 deletions(-) diff --git a/src/views/infra/codegen/index.vue b/src/views/infra/codegen/index.vue index bf50ef5a..5770687a 100644 --- a/src/views/infra/codegen/index.vue +++ b/src/views/infra/codegen/index.vue @@ -89,7 +89,7 @@ async function handleDelete(record: Recordable) { }, { icon: IconEnum.DELETE, - color: 'error', + danger: true, label: t('action.delete'), auth: 'infra:codegen:delete', popConfirm: { diff --git a/src/views/infra/config/index.vue b/src/views/infra/config/index.vue index 9e0bbeda..e89eac57 100644 --- a/src/views/infra/config/index.vue +++ b/src/views/infra/config/index.vue @@ -76,7 +76,7 @@ async function handleDelete(record: Recordable) { { icon: IconEnum.EDIT, label: t('action.edit'), auth: 'infra:config:update', onClick: handleEdit.bind(null, record) }, { icon: IconEnum.DELETE, - color: 'error', + danger: true, label: t('action.delete'), auth: 'infra:config:delete', popConfirm: { diff --git a/src/views/infra/dataSourceConfig/index.vue b/src/views/infra/dataSourceConfig/index.vue index dd4d720c..05c5863e 100644 --- a/src/views/infra/dataSourceConfig/index.vue +++ b/src/views/infra/dataSourceConfig/index.vue @@ -66,7 +66,7 @@ async function handleDelete(record: Recordable) { }, { icon: IconEnum.DELETE, - color: 'error', + danger: true, label: t('action.delete'), ifShow: record.id !== 0, auth: 'infra:data-source-config:delete', diff --git a/src/views/infra/file/index.vue b/src/views/infra/file/index.vue index 8e51026f..797b7ee2 100644 --- a/src/views/infra/file/index.vue +++ b/src/views/infra/file/index.vue @@ -77,7 +77,7 @@ async function handleDelete(record: Recordable) { { icon: IconEnum.VIEW, label: '复制链接', onClick: handleCopy.bind(null, record) }, { icon: IconEnum.DELETE, - color: 'error', + danger: true, label: t('action.delete'), auth: 'infra:file:delete', popConfirm: { diff --git a/src/views/infra/fileConfig/index.vue b/src/views/infra/fileConfig/index.vue index db857b84..bb050126 100644 --- a/src/views/infra/fileConfig/index.vue +++ b/src/views/infra/fileConfig/index.vue @@ -88,7 +88,7 @@ async function handleDelete(record: Recordable) { }, { icon: IconEnum.DELETE, - color: 'error', + danger: true, label: t('action.delete'), auth: 'infra:file-config:delete', popConfirm: { diff --git a/src/views/infra/job/index.vue b/src/views/infra/job/index.vue index 8d74b769..0c167fcc 100644 --- a/src/views/infra/job/index.vue +++ b/src/views/infra/job/index.vue @@ -122,7 +122,7 @@ async function handleDelete(record: Recordable) { { icon: IconEnum.LOG, label: '调度日志', auth: 'infra:job:query', onClick: handleJobLog.bind(null, record) }, { icon: IconEnum.DELETE, - color: 'error', + danger: true, label: t('action.delete'), auth: 'infra:job:delete', popConfirm: { diff --git a/src/views/member/point/config/index.vue b/src/views/member/point/config/index.vue index 0cdb7de5..3d8bb355 100644 --- a/src/views/member/point/config/index.vue +++ b/src/views/member/point/config/index.vue @@ -1,7 +1,7 @@