chore: init worker selector

This commit is contained in:
jialin
2025-03-25 17:58:01 +08:00
parent f882fe2c32
commit 8f6c1d0e47
7 changed files with 25 additions and 18 deletions
+4 -1
View File
@@ -2,7 +2,7 @@ import { CheckCircleFilled, CopyOutlined } from '@ant-design/icons';
import { useIntl } from '@umijs/max';
import { Button, Tooltip, message } from 'antd';
import ClipboardJS from 'clipboard';
import { useEffect, useRef, useState } from 'react';
import React, { useEffect, useRef, useState } from 'react';
type CopyButtonProps = {
text: string;
@@ -20,6 +20,7 @@ type CopyButtonProps = {
| 'topRight'
| 'bottomLeft'
| 'bottomRight';
btnStyle?: React.CSSProperties;
style?: React.CSSProperties;
};
@@ -30,6 +31,7 @@ const CopyButton: React.FC<CopyButtonProps> = ({
shape = 'default',
fontSize = '14px',
style,
btnStyle,
placement,
size = 'middle'
}) => {
@@ -77,6 +79,7 @@ const CopyButton: React.FC<CopyButtonProps> = ({
size={size}
disabled={!!disabled}
data-clipboard-text={text}
style={{ ...btnStyle }}
icon={
copied ? (
<CheckCircleFilled