fix: missing button icon (#3832)

* refactor: action icon

* Revert "refactor: action icon (#3831)"

This reverts commit c8e334d8ab.

* refactor: action icon
This commit is contained in:
katherinehhh 2024-03-27 11:37:58 +08:00 committed by GitHub
parent c8e334d8ab
commit 78697e02be
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -191,6 +191,7 @@ export const authenticatorsSchema: 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')}}", title: "{{t('Delete')}}",

View File

@ -1,4 +1,4 @@
import { PlusOutlined } from '@ant-design/icons'; import { PlusOutlined, DownOutlined } from '@ant-design/icons';
import { uid } from '@formily/shared'; import { uid } from '@formily/shared';
import { ActionContext, SchemaComponent, useCompile, usePlugin, useRecord } from '@nocobase/client'; import { ActionContext, SchemaComponent, useCompile, usePlugin, useRecord } from '@nocobase/client';
import { Button, Card, Dropdown } from 'antd'; import { Button, Card, Dropdown } from 'antd';
@ -73,7 +73,7 @@ export const CreateStorage = () => {
}} }}
> >
<Button type={'primary'} icon={<PlusOutlined />}> <Button type={'primary'} icon={<PlusOutlined />}>
{t('Add new')} {t('Add new')} <DownOutlined />
</Button> </Button>
</Dropdown> </Dropdown>
<SchemaComponent scope={{ createOnly: true }} schema={schema} /> <SchemaComponent scope={{ createOnly: true }} schema={schema} />