mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 07:25:15 +00:00
fix: actionSchemaToolbar support x-toolbar-props (#4286)
* fix: actionSchemaToolbar support x-toolbar-props * fix: bug
This commit is contained in:
parent
f1923d25cd
commit
3074dbcb67
@ -7,9 +7,19 @@
|
|||||||
* For more information, please refer to: https://www.nocobase.com/agreement.
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { useFieldSchema } from '@formily/react';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { SchemaToolbar } from '../../schema-settings/GeneralSchemaDesigner';
|
import { SchemaToolbar } from '../../schema-settings/GeneralSchemaDesigner';
|
||||||
|
|
||||||
export const ActionSchemaToolbar = (props) => {
|
export const ActionSchemaToolbar = (props) => {
|
||||||
return <SchemaToolbar initializer={false} showBorder={false} showBackground {...props} />;
|
const fieldSchema = useFieldSchema();
|
||||||
|
return (
|
||||||
|
<SchemaToolbar
|
||||||
|
initializer={false}
|
||||||
|
showBorder={false}
|
||||||
|
showBackground
|
||||||
|
{...props}
|
||||||
|
{...fieldSchema['x-toolbar-props']}
|
||||||
|
/>
|
||||||
|
);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user