style: check compatibility

This commit is contained in:
jialin
2025-04-01 20:47:52 +08:00
parent f5c4749954
commit 5cbb5e7d40
18 changed files with 98 additions and 65 deletions
+3 -1
View File
@@ -11,6 +11,7 @@ type CopyButtonProps = {
type?: 'text' | 'primary' | 'dashed' | 'link' | 'default';
size?: 'small' | 'middle' | 'large';
shape?: 'circle' | 'round' | 'default';
tips?: string;
placement?:
| 'top'
| 'left'
@@ -25,6 +26,7 @@ type CopyButtonProps = {
};
const CopyButton: React.FC<CopyButtonProps> = ({
tips,
text,
disabled,
type = 'text',
@@ -68,7 +70,7 @@ const CopyButton: React.FC<CopyButtonProps> = ({
return (
<Tooltip
title={intl.formatMessage({ id: 'common.button.copy' })}
title={tips ?? intl.formatMessage({ id: 'common.button.copy' })}
placement={placement}
>
<Button