feat: modify button component

This commit is contained in:
QiShaoXuan
2022-12-09 19:00:42 +08:00
parent 57f19ee4a7
commit 4699f8f3bf
5 changed files with 8 additions and 2 deletions
+2 -1
View File
@@ -24,12 +24,12 @@ export const Button = forwardRef<HTMLButtonElement, ButtonProps>(
icon,
type = 'default',
children,
bold = false,
...props
},
ref
) => {
const { iconSize } = getSize(size);
console.log('type', type);
return (
<StyledButton
@@ -42,6 +42,7 @@ export const Button = forwardRef<HTMLButtonElement, ButtonProps>(
hoverStyle={hoverStyle}
// @ts-ignore
type={type}
bold={bold}
{...props}
>
{icon &&