/** * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates * SPDX-License-Identifier: MIT */ import { Field } from '@flowgram.ai/free-layout-editor'; import { InputNumber } from '@douyinfe/semi-ui'; import { useNodeRenderContext } from '../../../hooks'; import { FormItem } from '../../../form-components'; export function Timeout() { const { readonly } = useNodeRenderContext(); return (
name="timeout.timeout" defaultValue={10000}> {({ field }) => ( { field.onChange(value as number); }} disabled={readonly} style={{ width: '100%' }} min={0} /> )} name="timeout.retryTimes" defaultValue={1}> {({ field }) => ( { field.onChange(value as number); }} disabled={readonly} style={{ width: '100%' }} min={0} /> )}
); }