/** * @author linhd * @date 2023/5/9 13:56 * @description 复制文本 */ import { FunctionComponent, ReactNode } from 'react'; import { TextFieldProps } from '../TextField'; import './index.scss'; export interface CopyTextProps { className?: string; /** * 类型 * 输入框:input * 文本:text * */ type?: 'input' | 'text'; /** 输入框Props */ textFieldProps?: Omit; /** 标题 */ label?: ReactNode; /** 显示值 输入框类型的,必须传string类型 */ value?: ReactNode; /** 复制值 */ copyValue?: string; /** 复制图标 */ copyIcon?: ReactNode; /** 延时 */ timeout?: number; /** 复制事件 */ onCopy?: () => Promise | string | void; } declare const CopyText: FunctionComponent; export default CopyText;