From 003de576c0689a69ea1ebaca353e630840ba675f Mon Sep 17 00:00:00 2001 From: nekic Date: Fri, 5 Nov 2021 16:19:11 +0800 Subject: [PATCH] feat(settings-form): add DrawerSetter's trigger props (#122) --- .../src/components/DrawerSetter/index.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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()}