onCopy:复制成果的回调
text:复制的内容
import {CopyToClipboard} from 'react-copy-to-clipboard'
let text = {app_store_name:'咖啡厅',type:'游戏',remark:'备注'}
let str = `APP名称:${text.app_store_name}\n任务类型:${text.type}\n备注:${text.remark}`
<CopyToClipboard
onCopy={()=>message.success('复制成功')}
text={str}
>
<span>复制文本</span>
</CopyToClipboard>