From 20a85480be2ed4ad03612cf01822f846b069eab7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9D=92=E6=B9=9B?= <0x1304570@gmail.com> Date: Mon, 5 Aug 2024 17:21:36 +1200 Subject: [PATCH] feat: support more props for icon button (#7831) --- config-ui/src/components/action/icon-button/index.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/config-ui/src/components/action/icon-button/index.tsx b/config-ui/src/components/action/icon-button/index.tsx index fb63f60f719..f7bc8b1d94a 100644 --- a/config-ui/src/components/action/icon-button/index.tsx +++ b/config-ui/src/components/action/icon-button/index.tsx @@ -20,7 +20,11 @@ import { forwardRef, Ref } from 'react'; import type { ButtonProps } from 'antd'; import { Tooltip, Button } from 'antd'; -interface Props extends Pick { +interface Props + extends Pick< + ButtonProps, + 'type' | 'icon' | 'size' | 'disabled' | 'loading' | 'ghost' | 'danger' | 'block' | 'onClick' + > { helptip: string; }