refactor: action icon (#3831)

This commit is contained in:
katherinehhh 2024-03-27 11:23:34 +08:00 committed by GitHub
parent e32666b191
commit c8e334d8ab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 7 additions and 0 deletions

View File

@ -91,6 +91,7 @@ export const configurationSchema: ISchema = {
title: generateNTemplate('Add API key'),
'x-component': 'Action',
'x-component-props': {
icon: 'PlusOutlined',
openMode: 'drawer',
type: 'primary',
},

View File

@ -235,6 +235,7 @@ export const schema: ISchema = {
title: '{{ t("Delete") }}',
'x-component': 'Action',
'x-component-props': {
icon: 'DeleteOutlined',
useAction: useDestroyAll,
confirm: {
title: "{{t('Delete')}}",
@ -250,6 +251,7 @@ export const schema: ISchema = {
'x-component': 'Action',
'x-component-props': {
type: 'primary',
icon: 'PlusOutlined',
},
properties: {
drawer: {

View File

@ -91,6 +91,7 @@ export default {
title: '{{t("Delete")}}',
'x-component': 'Action',
'x-component-props': {
icon: 'DeleteOutlined',
useAction: '{{ cm.useBulkDestroyAction }}',
confirm: {
title: "{{t('Delete')}}",
@ -104,6 +105,7 @@ export default {
'x-component': 'Action',
'x-component-props': {
type: 'primary',
icon: 'PlusOutlined',
},
properties: {
drawer: {

View File

@ -189,6 +189,7 @@ export const workflowSchema: ISchema = {
title: '{{t("Delete")}}',
'x-component': 'Action',
'x-component-props': {
icon: 'DeleteOutlined',
useAction: '{{ cm.useBulkDestroyAction }}',
confirm: {
title: "{{t('Delete record')}}",
@ -202,6 +203,7 @@ export const workflowSchema: ISchema = {
'x-component': 'Action',
'x-component-props': {
type: 'primary',
icon: 'PlusOutlined',
},
properties: {
drawer: {