From 971197d595105b02c42612f860743b300def1906 Mon Sep 17 00:00:00 2001 From: balibabu Date: Wed, 19 Nov 2025 13:59:43 +0800 Subject: [PATCH] Feat: Set the outputs type of list operation. #10427 (#11366) ### What problem does this PR solve? Feat: Set the outputs type of list operation. #10427 ### Type of change - [x] New Feature (non-breaking change which adds functionality) --- web/src/components/originui/number-input.tsx | 3 + web/src/locales/en.ts | 2 +- web/src/pages/agent/constant/index.tsx | 38 ++++-- .../pages/agent/form/iteration-form/index.tsx | 4 +- .../agent/form/list-operations-form/index.tsx | 117 +++++++++++++++--- .../dynamic-variables.tsx | 9 +- .../agent/gobal-variable-sheet/constant.ts | 13 +- web/src/pages/agent/utils.ts | 4 + 8 files changed, 148 insertions(+), 42 deletions(-) diff --git a/web/src/components/originui/number-input.tsx b/web/src/components/originui/number-input.tsx index 9f7ad6869..8017d32c7 100644 --- a/web/src/components/originui/number-input.tsx +++ b/web/src/components/originui/number-input.tsx @@ -6,6 +6,7 @@ interface NumberInputProps { value?: number; onChange?: (value: number) => void; height?: number | string; + min?: number; } const NumberInput: React.FC = ({ @@ -13,6 +14,7 @@ const NumberInput: React.FC = ({ value: initialValue, onChange, height, + min = 0, }) => { const [value, setValue] = useState(() => { return initialValue ?? 0; @@ -76,6 +78,7 @@ const NumberInput: React.FC = ({ onChange={handleChange} className="w-full flex-1 text-center bg-transparent focus:outline-none" style={style} + min={min} />