chore: add runtime in register k8s command

This commit is contained in:
jialin
2026-02-09 15:58:29 +08:00
parent e7890dda3d
commit 198a52e230
4 changed files with 31 additions and 14 deletions
+9 -4
View File
@@ -31,25 +31,30 @@ const CopyButton: React.FC<CopyButtonProps & TextProps> = ({
];
}, [intl]);
const onCopy = () => {
console.log('copied');
};
return (
<Typography.Text
style={{ ...btnStyle }}
<Typography.Paragraph
style={{ ...btnStyle, marginBottom: 0 }}
{...rest}
copyable={{
text: text,
format: format,
tooltips: tooltips,
onCopy: onCopy,
icon: [
<CopyOutlined style={{ fontSize: fontSize, ...style }} key="copy" />,
<CheckCircleFilled
style={{ color: 'var(--ant-color-success)', fontSize: fontSize }}
key="check"
key="copied"
/>
]
}}
>
{children}
</Typography.Text>
</Typography.Paragraph>
);
};