diff --git a/web/apps/web/src/stores/workflow/utils/data-transformer.ts b/web/apps/web/src/stores/workflow/utils/data-transformer.ts index 189be35f..7bd35f8a 100644 --- a/web/apps/web/src/stores/workflow/utils/data-transformer.ts +++ b/web/apps/web/src/stores/workflow/utils/data-transformer.ts @@ -189,7 +189,7 @@ export const genReactFlow: ( if (workflow.type === 'workflow') { // start节点 let x = 0; - const y = 0; + const y = 100; nodes.push({ id: NodeIdEnum.start, type: NodeTypeEnum.start, @@ -341,7 +341,7 @@ export const genReactFlow: ( nodes, edges, viewport: { - x: 0, + x: 100, y: 100, zoom: 0.4, }, diff --git a/web/packages/form-engine/src/index.tsx b/web/packages/form-engine/src/index.tsx index d72db38f..6ebc82d3 100644 --- a/web/packages/form-engine/src/index.tsx +++ b/web/packages/form-engine/src/index.tsx @@ -81,7 +81,7 @@ const FormEngine = forwardRef((props, ref) => { if (onChange) { onChange(values); } - }, 500), + }, 300), ); return () => subscription.unsubscribe(); diff --git a/web/packages/ui/src/components/ui/number-input/number-input-utils.ts b/web/packages/ui/src/components/ui/number-input/number-input-utils.ts index 94e10100..6687ca2d 100644 --- a/web/packages/ui/src/components/ui/number-input/number-input-utils.ts +++ b/web/packages/ui/src/components/ui/number-input/number-input-utils.ts @@ -44,5 +44,5 @@ export function calculateNearestValue( const decimalBaseValue = new Decimal(baseValue); const decimalStep = new Decimal(step); nearestValue = decimalBaseValue.add(finalSteps.times(decimalStep)).toNumber(); - return nearestValue; + return Number.isNaN(nearestValue) ? value : nearestValue; }