feat(flowEditor): 调整节点输入输出显示格式

master
钟良源 3 months ago
parent 6faa206b8a
commit 54875eed9d

@ -286,7 +286,7 @@ const NodeContent = ({ data }: { data: NodeContentData }) => {
color: group ? group.color : '#000' color: group ? group.color : '#000'
}} }}
> >
{isValidData(input) ? (input.name || input.id || `输入${index + 1}`) : ''} {isValidData(input) ? `${input.name || input.id} ${input?.dataType}` : ''}
</div> </div>
); );
})} })}
@ -307,7 +307,7 @@ const NodeContent = ({ data }: { data: NodeContentData }) => {
color: group ? group.color : '#000' color: group ? group.color : '#000'
}} }}
> >
{isValidData(output) ? (output.name || output.id || `输出${index + 1}`) : ''} {isValidData(output) ? `${output.dataType} ${output.name || output.id}` : ''}
</div> </div>
); );
})} })}

Loading…
Cancel
Save