fix: button antdv 4.0

pull/33/head
xingyu 2023-08-23 11:38:06 +08:00
parent 69d3ef6506
commit 3622c099e9
33 changed files with 33 additions and 33 deletions

View File

@ -89,7 +89,7 @@ async function handleDelete(record: Recordable) {
}, },
{ {
icon: IconEnum.DELETE, icon: IconEnum.DELETE,
color: 'error', danger: true,
label: t('action.delete'), label: t('action.delete'),
auth: 'infra:codegen:delete', auth: 'infra:codegen:delete',
popConfirm: { popConfirm: {

View File

@ -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.EDIT, label: t('action.edit'), auth: 'infra:config:update', onClick: handleEdit.bind(null, record) },
{ {
icon: IconEnum.DELETE, icon: IconEnum.DELETE,
color: 'error', danger: true,
label: t('action.delete'), label: t('action.delete'),
auth: 'infra:config:delete', auth: 'infra:config:delete',
popConfirm: { popConfirm: {

View File

@ -66,7 +66,7 @@ async function handleDelete(record: Recordable) {
}, },
{ {
icon: IconEnum.DELETE, icon: IconEnum.DELETE,
color: 'error', danger: true,
label: t('action.delete'), label: t('action.delete'),
ifShow: record.id !== 0, ifShow: record.id !== 0,
auth: 'infra:data-source-config:delete', auth: 'infra:data-source-config:delete',

View File

@ -77,7 +77,7 @@ async function handleDelete(record: Recordable) {
{ icon: IconEnum.VIEW, label: '复制链接', onClick: handleCopy.bind(null, record) }, { icon: IconEnum.VIEW, label: '复制链接', onClick: handleCopy.bind(null, record) },
{ {
icon: IconEnum.DELETE, icon: IconEnum.DELETE,
color: 'error', danger: true,
label: t('action.delete'), label: t('action.delete'),
auth: 'infra:file:delete', auth: 'infra:file:delete',
popConfirm: { popConfirm: {

View File

@ -88,7 +88,7 @@ async function handleDelete(record: Recordable) {
}, },
{ {
icon: IconEnum.DELETE, icon: IconEnum.DELETE,
color: 'error', danger: true,
label: t('action.delete'), label: t('action.delete'),
auth: 'infra:file-config:delete', auth: 'infra:file-config:delete',
popConfirm: { popConfirm: {

View File

@ -122,7 +122,7 @@ async function handleDelete(record: Recordable) {
{ icon: IconEnum.LOG, label: '调度日志', auth: 'infra:job:query', onClick: handleJobLog.bind(null, record) }, { icon: IconEnum.LOG, label: '调度日志', auth: 'infra:job:query', onClick: handleJobLog.bind(null, record) },
{ {
icon: IconEnum.DELETE, icon: IconEnum.DELETE,
color: 'error', danger: true,
label: t('action.delete'), label: t('action.delete'),
auth: 'infra:job:delete', auth: 'infra:job:delete',
popConfirm: { popConfirm: {

View File

@ -1,7 +1,7 @@
<script lang="ts" setup> <script lang="ts" setup>
import { onMounted } from 'vue' import { onMounted } from 'vue'
import { BasicForm, useForm } from '@/components/Form' import { BasicForm, useForm } from '@/components/Form'
import type { FormSchema } from '@/components/From/src/types/form' import type { FormSchema } from '@/components/From'
import { PageWrapper } from '@/components/Page' import { PageWrapper } from '@/components/Page'
import { getConfig, saveConfig } from '@/api/member/point/config' import { getConfig, saveConfig } from '@/api/member/point/config'
import { useI18n } from '@/hooks/web/useI18n' import { useI18n } from '@/hooks/web/useI18n'

View File

@ -56,7 +56,7 @@ async function handleDelete(record: Recordable) {
{ icon: IconEnum.EDIT, label: t('action.edit'), auth: 'system:notice:update', onClick: handleEdit.bind(null, record) }, { icon: IconEnum.EDIT, label: t('action.edit'), auth: 'system:notice:update', onClick: handleEdit.bind(null, record) },
{ {
icon: IconEnum.DELETE, icon: IconEnum.DELETE,
color: 'error', danger: true,
label: t('action.delete'), label: t('action.delete'),
auth: 'system:notice:delete', auth: 'system:notice:delete',
popConfirm: { popConfirm: {

View File

@ -59,7 +59,7 @@ async function handleDelete(record: Recordable) {
{ icon: IconEnum.EDIT, label: t('action.edit'), auth: 'system:notice:update', onClick: handleEdit.bind(null, record) }, { icon: IconEnum.EDIT, label: t('action.edit'), auth: 'system:notice:update', onClick: handleEdit.bind(null, record) },
{ {
icon: IconEnum.DELETE, icon: IconEnum.DELETE,
color: 'error', danger: true,
label: t('action.delete'), label: t('action.delete'),
auth: 'system:notice:delete', auth: 'system:notice:delete',
popConfirm: { popConfirm: {

View File

@ -100,7 +100,7 @@ async function handleDelete(record: Recordable) {
}, },
{ {
icon: IconEnum.DELETE, icon: IconEnum.DELETE,
color: 'error', danger: true,
label: t('action.delete'), label: t('action.delete'),
auth: 'mp:account:delete', auth: 'mp:account:delete',
popConfirm: { popConfirm: {

View File

@ -74,7 +74,7 @@ async function handleDelete(record: Recordable) {
{ icon: IconEnum.EDIT, label: t('action.edit'), auth: 'mp:tag:update', onClick: handleEdit.bind(null, record) }, { icon: IconEnum.EDIT, label: t('action.edit'), auth: 'mp:tag:update', onClick: handleEdit.bind(null, record) },
{ {
icon: IconEnum.DELETE, icon: IconEnum.DELETE,
color: 'error', danger: true,
label: t('action.delete'), label: t('action.delete'),
auth: 'mp:tag:delete', auth: 'mp:tag:delete',
popConfirm: { popConfirm: {

View File

@ -267,7 +267,7 @@ function isChannelExists(channels, channelCode) {
{ icon: IconEnum.EDIT, label: t('action.edit'), auth: 'pay:app:update', onClick: handleEdit.bind(null, record) }, { icon: IconEnum.EDIT, label: t('action.edit'), auth: 'pay:app:update', onClick: handleEdit.bind(null, record) },
{ {
icon: IconEnum.DELETE, icon: IconEnum.DELETE,
color: 'error', danger: true,
label: t('action.delete'), label: t('action.delete'),
auth: 'pay:app:delete', auth: 'pay:app:delete',
popConfirm: { popConfirm: {

View File

@ -78,7 +78,7 @@ async function handleRefund(record: Recordable) {
}, },
{ {
icon: IconEnum.DELETE, icon: IconEnum.DELETE,
color: 'error', danger: true,
label: '发起退款', label: '发起退款',
ifShow: () => { ifShow: () => {
return record.payed && !record.payRefundId return record.payed && !record.payRefundId

View File

@ -75,7 +75,7 @@ async function handleDelete(record: Recordable) {
{ icon: IconEnum.EDIT, label: t('action.edit'), auth: 'pay:merchant:update', onClick: handleEdit.bind(null, record) }, { icon: IconEnum.EDIT, label: t('action.edit'), auth: 'pay:merchant:update', onClick: handleEdit.bind(null, record) },
{ {
icon: IconEnum.DELETE, icon: IconEnum.DELETE,
color: 'error', danger: true,
label: t('action.delete'), label: t('action.delete'),
auth: 'pay:merchant:delete', auth: 'pay:merchant:delete',
popConfirm: { popConfirm: {

View File

@ -106,7 +106,7 @@ onMounted(async () => {
{ icon: IconEnum.EDIT, label: t('action.edit'), auth: 'system:dept:update', onClick: handleEdit.bind(null, record) }, { icon: IconEnum.EDIT, label: t('action.edit'), auth: 'system:dept:update', onClick: handleEdit.bind(null, record) },
{ {
icon: IconEnum.DELETE, icon: IconEnum.DELETE,
color: 'error', danger: true,
label: t('action.delete'), label: t('action.delete'),
auth: 'system:dept:delete', auth: 'system:dept:delete',
popConfirm: { popConfirm: {

View File

@ -83,7 +83,7 @@ watch(
{ icon: IconEnum.EDIT, label: t('action.edit'), auth: 'system:dict:update', onClick: handleEdit.bind(null, record) }, { icon: IconEnum.EDIT, label: t('action.edit'), auth: 'system:dict:update', onClick: handleEdit.bind(null, record) },
{ {
icon: IconEnum.DELETE, icon: IconEnum.DELETE,
color: 'error', danger: true,
label: t('action.delete'), label: t('action.delete'),
auth: 'system:dict:delete', auth: 'system:dict:delete',
popConfirm: { popConfirm: {

View File

@ -70,7 +70,7 @@ async function handleDelete(record: Recordable) {
{ icon: IconEnum.EDIT, label: t('action.edit'), auth: 'system:dict:update', onClick: handleEdit.bind(null, record) }, { icon: IconEnum.EDIT, label: t('action.edit'), auth: 'system:dict:update', onClick: handleEdit.bind(null, record) },
{ {
icon: IconEnum.DELETE, icon: IconEnum.DELETE,
color: 'error', danger: true,
label: t('action.delete'), label: t('action.delete'),
auth: 'system:dict:delete', auth: 'system:dict:delete',
popConfirm: { popConfirm: {

View File

@ -75,7 +75,7 @@ async function handleDelete(record: Recordable) {
{ icon: IconEnum.EDIT, label: t('action.edit'), auth: 'system:error-code:update', onClick: handleEdit.bind(null, record) }, { icon: IconEnum.EDIT, label: t('action.edit'), auth: 'system:error-code:update', onClick: handleEdit.bind(null, record) },
{ {
icon: IconEnum.DELETE, icon: IconEnum.DELETE,
color: 'error', danger: true,
label: t('action.delete'), label: t('action.delete'),
auth: 'system:error-code:delete', auth: 'system:error-code:delete',
popConfirm: { popConfirm: {

View File

@ -59,7 +59,7 @@ async function handleDelete(record: Recordable) {
{ icon: IconEnum.EDIT, label: t('action.edit'), auth: 'system:mail-account:update', onClick: handleEdit.bind(null, record) }, { icon: IconEnum.EDIT, label: t('action.edit'), auth: 'system:mail-account:update', onClick: handleEdit.bind(null, record) },
{ {
icon: IconEnum.DELETE, icon: IconEnum.DELETE,
color: 'error', danger: true,
label: t('action.delete'), label: t('action.delete'),
auth: 'system:mail-account:delete', auth: 'system:mail-account:delete',
popConfirm: { popConfirm: {

View File

@ -76,7 +76,7 @@ async function handleDelete(record: Recordable) {
}, },
{ {
icon: IconEnum.DELETE, icon: IconEnum.DELETE,
color: 'error', danger: true,
label: t('action.delete'), label: t('action.delete'),
auth: 'system:mail-template:delete', auth: 'system:mail-template:delete',
popConfirm: { popConfirm: {

View File

@ -77,7 +77,7 @@ async function handleDelete(record: Recordable) {
{ icon: IconEnum.EDIT, label: t('action.edit'), auth: 'system:menu:update', onClick: handleEdit.bind(null, record) }, { icon: IconEnum.EDIT, label: t('action.edit'), auth: 'system:menu:update', onClick: handleEdit.bind(null, record) },
{ {
icon: IconEnum.DELETE, icon: IconEnum.DELETE,
color: 'error', danger: true,
label: t('action.delete'), label: t('action.delete'),
auth: 'system:menu:delete', auth: 'system:menu:delete',
popConfirm: { popConfirm: {

View File

@ -59,7 +59,7 @@ async function handleDelete(record: Recordable) {
{ icon: IconEnum.EDIT, label: t('action.edit'), auth: 'system:notice:update', onClick: handleEdit.bind(null, record) }, { icon: IconEnum.EDIT, label: t('action.edit'), auth: 'system:notice:update', onClick: handleEdit.bind(null, record) },
{ {
icon: IconEnum.DELETE, icon: IconEnum.DELETE,
color: 'error', danger: true,
label: t('action.delete'), label: t('action.delete'),
auth: 'system:notice:delete', auth: 'system:notice:delete',
popConfirm: { popConfirm: {

View File

@ -77,7 +77,7 @@ async function handleDelete(record: Recordable) {
}, },
{ {
icon: IconEnum.DELETE, icon: IconEnum.DELETE,
color: 'error', danger: true,
label: t('action.delete'), label: t('action.delete'),
auth: 'system:notify-template:delete', auth: 'system:notify-template:delete',
popConfirm: { popConfirm: {

View File

@ -59,7 +59,7 @@ async function handleDelete(record: Recordable) {
{ icon: IconEnum.EDIT, label: t('action.edit'), auth: 'system:oauth2-client:update', onClick: handleEdit.bind(null, record) }, { icon: IconEnum.EDIT, label: t('action.edit'), auth: 'system:oauth2-client:update', onClick: handleEdit.bind(null, record) },
{ {
icon: IconEnum.DELETE, icon: IconEnum.DELETE,
color: 'error', danger: true,
label: t('action.delete'), label: t('action.delete'),
auth: 'system:oauth2-client:delete', auth: 'system:oauth2-client:delete',
popConfirm: { popConfirm: {

View File

@ -42,7 +42,7 @@ async function handleDelete(record: Recordable) {
:actions="[ :actions="[
{ {
icon: IconEnum.DELETE, icon: IconEnum.DELETE,
color: 'error', danger: true,
label: '强退', label: '强退',
auth: 'system:oauth2-token:delete', auth: 'system:oauth2-token:delete',
popConfirm: { popConfirm: {

View File

@ -75,7 +75,7 @@ async function handleDelete(record: Recordable) {
{ icon: IconEnum.EDIT, label: t('action.edit'), auth: 'system:post:update', onClick: handleEdit.bind(null, record) }, { icon: IconEnum.EDIT, label: t('action.edit'), auth: 'system:post:update', onClick: handleEdit.bind(null, record) },
{ {
icon: IconEnum.DELETE, icon: IconEnum.DELETE,
color: 'error', danger: true,
label: t('action.delete'), label: t('action.delete'),
auth: 'system:post:delete', auth: 'system:post:delete',
popConfirm: { popConfirm: {

View File

@ -101,7 +101,7 @@ async function handleDelete(record: Recordable) {
}, },
{ {
icon: IconEnum.DELETE, icon: IconEnum.DELETE,
color: 'error', danger: true,
label: t('action.delete'), label: t('action.delete'),
auth: 'system:role:delete', auth: 'system:role:delete',
popConfirm: { popConfirm: {

View File

@ -80,7 +80,7 @@ async function handleDelete(record: Recordable) {
}, },
{ {
icon: IconEnum.DELETE, icon: IconEnum.DELETE,
color: 'error', danger: true,
label: t('action.delete'), label: t('action.delete'),
auth: 'system:sensitive-word:delete', auth: 'system:sensitive-word:delete',
popConfirm: { popConfirm: {

View File

@ -60,7 +60,7 @@ async function handleDelete(record: Recordable) {
{ icon: IconEnum.EDIT, label: t('action.edit'), auth: 'system:sms-channel:update', onClick: handleEdit.bind(null, record) }, { icon: IconEnum.EDIT, label: t('action.edit'), auth: 'system:sms-channel:update', onClick: handleEdit.bind(null, record) },
{ {
icon: IconEnum.DELETE, icon: IconEnum.DELETE,
color: 'error', danger: true,
label: t('action.delete'), label: t('action.delete'),
auth: 'system:sms-channel:delete', auth: 'system:sms-channel:delete',
popConfirm: { popConfirm: {

View File

@ -87,7 +87,7 @@ async function handleDelete(record: Recordable) {
{ icon: IconEnum.EDIT, label: t('action.edit'), auth: 'system:sms-template:update', onClick: handleEdit.bind(null, record) }, { icon: IconEnum.EDIT, label: t('action.edit'), auth: 'system:sms-template:update', onClick: handleEdit.bind(null, record) },
{ {
icon: IconEnum.DELETE, icon: IconEnum.DELETE,
color: 'error', danger: true,
label: t('action.delete'), label: t('action.delete'),
auth: 'system:sms-template:delete', auth: 'system:sms-template:delete',
popConfirm: { popConfirm: {

View File

@ -75,7 +75,7 @@ async function handleDelete(record: Recordable) {
{ icon: IconEnum.EDIT, label: t('action.edit'), auth: 'system:tenant:update', onClick: handleEdit.bind(null, record) }, { icon: IconEnum.EDIT, label: t('action.edit'), auth: 'system:tenant:update', onClick: handleEdit.bind(null, record) },
{ {
icon: IconEnum.DELETE, icon: IconEnum.DELETE,
color: 'error', danger: true,
label: t('action.delete'), label: t('action.delete'),
auth: 'system:tenant:delete', auth: 'system:tenant:delete',
popConfirm: { popConfirm: {

View File

@ -64,7 +64,7 @@ async function handleDelete(record: Recordable) {
}, },
{ {
icon: IconEnum.DELETE, icon: IconEnum.DELETE,
color: 'error', danger: true,
label: t('action.delete'), label: t('action.delete'),
auth: 'system:tenant-package:delete', auth: 'system:tenant-package:delete',
popConfirm: { popConfirm: {

View File

@ -121,7 +121,7 @@ function handleSelect(deptId = '') {
}, },
{ {
icon: IconEnum.DELETE, icon: IconEnum.DELETE,
color: 'error', danger: true,
label: t('action.delete'), label: t('action.delete'),
auth: 'system:user:delete', auth: 'system:user:delete',
popConfirm: { popConfirm: {