Skip to content

Commit

Permalink
环境变量名称增加复制功能
Browse files Browse the repository at this point in the history
  • Loading branch information
whyour committed Sep 21, 2023
1 parent a864a56 commit 956cfe1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/pages/env/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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('值'),
Expand Down

0 comments on commit 956cfe1

Please sign in to comment.