pref(waitEditor): 优化等待组件的时间选择范围

master
钟良源 2 weeks ago
parent e4695dd503
commit 9f7062250f

@ -13,9 +13,9 @@ interface DurationType {
} }
const WaitEditor: React.FC<NodeEditorProps> = ({ nodeData, updateNodeData }) => { const WaitEditor: React.FC<NodeEditorProps> = ({ nodeData, updateNodeData }) => {
const hourOptions = Array.from({ length: 23 }, (_, i) => i); const hourOptions = Array.from({ length: 24 }, (_, i) => i);
const minuteOptions = Array.from({ length: 59 }, (_, i) => i); const minuteOptions = Array.from({ length: 60 }, (_, i) => i);
const secondOptions = Array.from({ length: 59 }, (_, i) => i); const secondOptions = Array.from({ length: 60 }, (_, i) => i);
const [duration, setDuration] = useState<DurationType>({ const [duration, setDuration] = useState<DurationType>({
hour: 0, hour: 0,
minute: 0, minute: 0,

Loading…
Cancel
Save