refactor: action icon (#3831)
This commit is contained in:
parent
e32666b191
commit
c8e334d8ab
@ -91,6 +91,7 @@ export const configurationSchema: ISchema = {
|
|||||||
title: generateNTemplate('Add API key'),
|
title: generateNTemplate('Add API key'),
|
||||||
'x-component': 'Action',
|
'x-component': 'Action',
|
||||||
'x-component-props': {
|
'x-component-props': {
|
||||||
|
icon: 'PlusOutlined',
|
||||||
openMode: 'drawer',
|
openMode: 'drawer',
|
||||||
type: 'primary',
|
type: 'primary',
|
||||||
},
|
},
|
||||||
|
@ -235,6 +235,7 @@ export const schema: ISchema = {
|
|||||||
title: '{{ t("Delete") }}',
|
title: '{{ t("Delete") }}',
|
||||||
'x-component': 'Action',
|
'x-component': 'Action',
|
||||||
'x-component-props': {
|
'x-component-props': {
|
||||||
|
icon: 'DeleteOutlined',
|
||||||
useAction: useDestroyAll,
|
useAction: useDestroyAll,
|
||||||
confirm: {
|
confirm: {
|
||||||
title: "{{t('Delete')}}",
|
title: "{{t('Delete')}}",
|
||||||
@ -250,6 +251,7 @@ export const schema: ISchema = {
|
|||||||
'x-component': 'Action',
|
'x-component': 'Action',
|
||||||
'x-component-props': {
|
'x-component-props': {
|
||||||
type: 'primary',
|
type: 'primary',
|
||||||
|
icon: 'PlusOutlined',
|
||||||
},
|
},
|
||||||
properties: {
|
properties: {
|
||||||
drawer: {
|
drawer: {
|
||||||
|
@ -91,6 +91,7 @@ export default {
|
|||||||
title: '{{t("Delete")}}',
|
title: '{{t("Delete")}}',
|
||||||
'x-component': 'Action',
|
'x-component': 'Action',
|
||||||
'x-component-props': {
|
'x-component-props': {
|
||||||
|
icon: 'DeleteOutlined',
|
||||||
useAction: '{{ cm.useBulkDestroyAction }}',
|
useAction: '{{ cm.useBulkDestroyAction }}',
|
||||||
confirm: {
|
confirm: {
|
||||||
title: "{{t('Delete')}}",
|
title: "{{t('Delete')}}",
|
||||||
@ -104,6 +105,7 @@ export default {
|
|||||||
'x-component': 'Action',
|
'x-component': 'Action',
|
||||||
'x-component-props': {
|
'x-component-props': {
|
||||||
type: 'primary',
|
type: 'primary',
|
||||||
|
icon: 'PlusOutlined',
|
||||||
},
|
},
|
||||||
properties: {
|
properties: {
|
||||||
drawer: {
|
drawer: {
|
||||||
|
@ -189,6 +189,7 @@ export const workflowSchema: ISchema = {
|
|||||||
title: '{{t("Delete")}}',
|
title: '{{t("Delete")}}',
|
||||||
'x-component': 'Action',
|
'x-component': 'Action',
|
||||||
'x-component-props': {
|
'x-component-props': {
|
||||||
|
icon: 'DeleteOutlined',
|
||||||
useAction: '{{ cm.useBulkDestroyAction }}',
|
useAction: '{{ cm.useBulkDestroyAction }}',
|
||||||
confirm: {
|
confirm: {
|
||||||
title: "{{t('Delete record')}}",
|
title: "{{t('Delete record')}}",
|
||||||
@ -202,6 +203,7 @@ export const workflowSchema: ISchema = {
|
|||||||
'x-component': 'Action',
|
'x-component': 'Action',
|
||||||
'x-component-props': {
|
'x-component-props': {
|
||||||
type: 'primary',
|
type: 'primary',
|
||||||
|
icon: 'PlusOutlined',
|
||||||
},
|
},
|
||||||
properties: {
|
properties: {
|
||||||
drawer: {
|
drawer: {
|
||||||
|
Loading…
Reference in New Issue
Block a user