环境变量名称增加复制功能

This commit is contained in:
whyour 2023-09-22 00:47:36 +08:00
parent a864a56917
commit 956cfe18be

View File

@ -82,6 +82,16 @@ const Env = () => {
dataIndex: 'name',
key: 'name',
sorter: (a: any, b: any) => a.name.localeCompare(b.name),
render: (text: string, record: any) => {
return (
<div style={{ display: 'flex', alignItems: 'center' }}>
<Tooltip title={text} placement="topLeft">
<div className="text-ellipsis">{text}</div>
</Tooltip>
<Copy text={text} />
</div>
);
},
},
{
title: intl.get('值'),