From c8e334d8ab23d3dd8f2f0f3a3104b836bcc9d1d0 Mon Sep 17 00:00:00 2001 From: katherinehhh Date: Wed, 27 Mar 2024 11:23:34 +0800 Subject: [PATCH] refactor: action icon (#3831) --- .../plugin-api-keys/src/client/Configuration/schema.tsx | 1 + .../src/client/settings/schemas/applications.ts | 2 ++ .../plugin-verification/src/client/schemas/providers.ts | 2 ++ .../@nocobase/plugin-workflow/src/client/schemas/workflows.ts | 2 ++ 4 files changed, 7 insertions(+) diff --git a/packages/plugins/@nocobase/plugin-api-keys/src/client/Configuration/schema.tsx b/packages/plugins/@nocobase/plugin-api-keys/src/client/Configuration/schema.tsx index b98ab2cb6..aaf6072c4 100644 --- a/packages/plugins/@nocobase/plugin-api-keys/src/client/Configuration/schema.tsx +++ b/packages/plugins/@nocobase/plugin-api-keys/src/client/Configuration/schema.tsx @@ -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', }, diff --git a/packages/plugins/@nocobase/plugin-multi-app-manager/src/client/settings/schemas/applications.ts b/packages/plugins/@nocobase/plugin-multi-app-manager/src/client/settings/schemas/applications.ts index ef79bcdd2..93c6bf5b8 100644 --- a/packages/plugins/@nocobase/plugin-multi-app-manager/src/client/settings/schemas/applications.ts +++ b/packages/plugins/@nocobase/plugin-multi-app-manager/src/client/settings/schemas/applications.ts @@ -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: { diff --git a/packages/plugins/@nocobase/plugin-verification/src/client/schemas/providers.ts b/packages/plugins/@nocobase/plugin-verification/src/client/schemas/providers.ts index d294cb8e4..0549ab362 100644 --- a/packages/plugins/@nocobase/plugin-verification/src/client/schemas/providers.ts +++ b/packages/plugins/@nocobase/plugin-verification/src/client/schemas/providers.ts @@ -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: { diff --git a/packages/plugins/@nocobase/plugin-workflow/src/client/schemas/workflows.ts b/packages/plugins/@nocobase/plugin-workflow/src/client/schemas/workflows.ts index c9708fd81..cb8174216 100644 --- a/packages/plugins/@nocobase/plugin-workflow/src/client/schemas/workflows.ts +++ b/packages/plugins/@nocobase/plugin-workflow/src/client/schemas/workflows.ts @@ -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: {