您当前的位置: 首页 >  ar

java持续实践

暂无认证

  • 1浏览

    0关注

    746博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

React 中使用copy-to-clipboard

java持续实践 发布时间:2021-02-01 17:34:05 ,浏览量:1

import copy from 'copy-to-clipboard';
  const handleCopyPageLink = (record: any) => {
    const { id } = record;
    const articleLink = `${pageLink}/${id}`;
    if (copy(`${articleLink}`)) {
      message.success('已复制');
    }
  };
     {
      title: '文章链接',
      dataIndex: 'id',
      width: '250px',
      ellipsis: {
        showTitle: false,
      },
      render: (content: string | any, record: any) => (
        
           handleCopyPageLink(record)}>
            复制
          
          
            {`${pageLink}/${content}`}
          
        
      ),
    },
关注
打赏
1658054974
查看更多评论
立即登录/注册

微信扫码登录

0.5184s