脚本管理移动端支持添加脚本、编辑脚本

This commit is contained in:
whyour
2021-10-16 15:11:23 +08:00
parent d5f619ff74
commit b212762417
3 changed files with 49 additions and 16 deletions
+2 -1
View File
@@ -166,11 +166,12 @@ const Env = ({ headerStyle, isPhone, theme }: any) => {
{
title: '操作',
key: 'action',
width: 100,
align: 'center' as const,
render: (text: string, record: any, index: number) => {
const isPc = !isPhone;
return (
<Space size="middle" style={{ paddingLeft: 8 }}>
<Space size="middle">
<Tooltip title={isPc ? '编辑' : ''}>
<a onClick={() => editEnv(record, index)}>
<EditOutlined />