style: view instance logs

This commit is contained in:
jialin
2024-12-26 12:15:12 +08:00
parent 00c9ef47e9
commit 972ee69fac
10 changed files with 83 additions and 24 deletions
+14 -1
View File
@@ -11,6 +11,15 @@ type CopyButtonProps = {
type?: 'text' | 'primary' | 'dashed' | 'link' | 'default';
size?: 'small' | 'middle' | 'large';
shape?: 'circle' | 'round' | 'default';
placement?:
| 'top'
| 'left'
| 'right'
| 'bottom'
| 'topLeft'
| 'topRight'
| 'bottomLeft'
| 'bottomRight';
style?: React.CSSProperties;
};
@@ -21,6 +30,7 @@ const CopyButton: React.FC<CopyButtonProps> = ({
shape = 'default',
fontSize = '14px',
style,
placement,
size = 'middle'
}) => {
const intl = useIntl();
@@ -55,7 +65,10 @@ const CopyButton: React.FC<CopyButtonProps> = ({
}, [buttonRef]);
return (
<Tooltip title={intl.formatMessage({ id: 'common.button.copy' })}>
<Tooltip
title={intl.formatMessage({ id: 'common.button.copy' })}
placement={placement}
>
<Button
className="copy-button"
ref={buttonRef}