diff --git a/src/components/FlowEditor/nodeEditors/components/ParamsTable.tsx b/src/components/FlowEditor/nodeEditors/components/ParamsTable.tsx index 683748e..1263994 100644 --- a/src/components/FlowEditor/nodeEditors/components/ParamsTable.tsx +++ b/src/components/FlowEditor/nodeEditors/components/ParamsTable.tsx @@ -76,6 +76,7 @@ const ParamsTable: React.FC = ({ ) : ( handleSave({ ...record, id: value })} /> ) @@ -89,7 +90,7 @@ const ParamsTable: React.FC = ({ {record.dataType === 'INTEGER' ? '整数' : record.dataType} ) : ( handleSave({ ...record, arrayType: value })} placeholder="请选择数组类型" /> ) : ( - +
-
) ) }, @@ -151,9 +152,10 @@ const ParamsTable: React.FC = ({ allowClear options={options} style={{ width: '100%', minWidth: 100 }} + autoWidth={{ minWidth: 150, maxWidth: 200 }} /> handleSave({ ...record, defaultValue: value })} placeholder="请输入默认值" @@ -166,6 +168,7 @@ const ParamsTable: React.FC = ({ if (record.id === 'maxTime') { return ( = ({ return ( handleSave({ ...record, defaultValue: value })} placeholder="请输入默认值" @@ -189,7 +193,8 @@ const ParamsTable: React.FC = ({ title: '操作', dataIndex: 'op', render: (_: any, record: TableDataItem) => ( - record.id !== 'maxTime' && ) diff --git a/src/pages/flowEditor/components/nodeEditModal.tsx b/src/pages/flowEditor/components/nodeEditModal.tsx index 2163ac9..27cf54e 100644 --- a/src/pages/flowEditor/components/nodeEditModal.tsx +++ b/src/pages/flowEditor/components/nodeEditModal.tsx @@ -87,8 +87,8 @@ const NodeEditModal: React.FC = ({ boxShadow: '0 5px 15px rgba(0, 0, 0, 0.2)', minWidth: 300, width: 'max-content', - maxWidth: '80vw', - height: '95%', + maxWidth: '80%', + height: '90%', bottom: 0, borderRadius: 10 }} diff --git a/src/pages/ideContainer/style/index.module.less b/src/pages/ideContainer/style/index.module.less index b080d54..97efa2f 100644 --- a/src/pages/ideContainer/style/index.module.less +++ b/src/pages/ideContainer/style/index.module.less @@ -23,7 +23,7 @@ flex-direction: column; position: relative; flex: 1; - overflow: auto; + overflow: hidden; } }