|
|
|
@ -1,7 +1,7 @@
|
|
|
|
import React, { useMemo } from 'react';
|
|
|
|
import React, { useMemo } from 'react';
|
|
|
|
import styles from '@/components/FlowEditor/node/style/baseOther.module.less';
|
|
|
|
import styles from '@/components/FlowEditor/node/style/baseOther.module.less';
|
|
|
|
import { Handle, Position, useStore } from '@xyflow/react';
|
|
|
|
import { Handle, Position, useStore } from '@xyflow/react';
|
|
|
|
import { deserializeValue, isJSON } from '@/utils/common';
|
|
|
|
import { deserializeValue, formatDataType, isJSON } from '@/utils/common';
|
|
|
|
|
|
|
|
|
|
|
|
interface NodeContentData {
|
|
|
|
interface NodeContentData {
|
|
|
|
parameters?: {
|
|
|
|
parameters?: {
|
|
|
|
@ -294,7 +294,7 @@ const NodeContent = ({ data }: { data: NodeContentData }) => {
|
|
|
|
color: group ? group.color : '#000'
|
|
|
|
color: group ? group.color : '#000'
|
|
|
|
}}
|
|
|
|
}}
|
|
|
|
>
|
|
|
|
>
|
|
|
|
{isValidData(input) ? `${input.name || input.id} ${input?.dataType}` : ''}
|
|
|
|
{isValidData(input) ? `${input.name || input.id} ${formatDataType(input?.dataType)}` : ''}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
);
|
|
|
|
})}
|
|
|
|
})}
|
|
|
|
@ -315,7 +315,7 @@ const NodeContent = ({ data }: { data: NodeContentData }) => {
|
|
|
|
color: group ? group.color : '#000'
|
|
|
|
color: group ? group.color : '#000'
|
|
|
|
}}
|
|
|
|
}}
|
|
|
|
>
|
|
|
|
>
|
|
|
|
{isValidData(output) ? `${output.dataType} ${output.name || output.id}` : ''}
|
|
|
|
{isValidData(output) ? `${formatDataType(output.dataType)} ${output.name || output.id}` : ''}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
);
|
|
|
|
})}
|
|
|
|
})}
|
|
|
|
|