From 78697e02be9224819e160cc82989a5d828eeb3cc Mon Sep 17 00:00:00 2001 From: katherinehhh Date: Wed, 27 Mar 2024 11:37:58 +0800 Subject: [PATCH] fix: missing button icon (#3832) * refactor: action icon * Revert "refactor: action icon (#3831)" This reverts commit c8e334d8ab23d3dd8f2f0f3a3104b836bcc9d1d0. * refactor: action icon --- .../plugin-auth/src/client/settings/schemas/authenticators.ts | 1 + .../@nocobase/plugin-file-manager/src/client/FileStorage.tsx | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/plugins/@nocobase/plugin-auth/src/client/settings/schemas/authenticators.ts b/packages/plugins/@nocobase/plugin-auth/src/client/settings/schemas/authenticators.ts index c2689ba7f..e9225fa5a 100644 --- a/packages/plugins/@nocobase/plugin-auth/src/client/settings/schemas/authenticators.ts +++ b/packages/plugins/@nocobase/plugin-auth/src/client/settings/schemas/authenticators.ts @@ -191,6 +191,7 @@ export const authenticatorsSchema: ISchema = { title: '{{t("Delete")}}', 'x-component': 'Action', 'x-component-props': { + icon: 'DeleteOutlined', useAction: '{{ cm.useBulkDestroyAction }}', confirm: { title: "{{t('Delete')}}", diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/client/FileStorage.tsx b/packages/plugins/@nocobase/plugin-file-manager/src/client/FileStorage.tsx index 18279f4fc..83ab7d0f9 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/client/FileStorage.tsx +++ b/packages/plugins/@nocobase/plugin-file-manager/src/client/FileStorage.tsx @@ -1,4 +1,4 @@ -import { PlusOutlined } from '@ant-design/icons'; +import { PlusOutlined, DownOutlined } from '@ant-design/icons'; import { uid } from '@formily/shared'; import { ActionContext, SchemaComponent, useCompile, usePlugin, useRecord } from '@nocobase/client'; import { Button, Card, Dropdown } from 'antd'; @@ -73,7 +73,7 @@ export const CreateStorage = () => { }} >