diff --git a/packages/react-settings-form/src/components/DrawerSetter/index.tsx b/packages/react-settings-form/src/components/DrawerSetter/index.tsx index b7844a15a..3a6fa6361 100644 --- a/packages/react-settings-form/src/components/DrawerSetter/index.tsx +++ b/packages/react-settings-form/src/components/DrawerSetter/index.tsx @@ -3,12 +3,13 @@ import { createPortal } from 'react-dom' import { observer, useField } from '@formily/react' import { FormLayout } from '@formily/antd' import { IconWidget, usePrefix, useTreeNode } from '@designable/react' -import { Button } from 'antd' +import { Button, ButtonProps } from 'antd' import cls from 'classnames' import './styles.less' export interface IDrawerSetterProps { text: React.ReactNode + triggerProps: ButtonProps } export const DrawerSetter: React.FC = observer((props) => { @@ -73,7 +74,7 @@ export const DrawerSetter: React.FC = observer((props) => { return ( - {renderDrawer()}