refactor: input number component

This commit is contained in:
AkaraChen
2024-11-26 15:29:31 +08:00
parent b7d9987953
commit 1843f6ccb6
3 changed files with 11 additions and 16 deletions

View File

@ -672,11 +672,11 @@ const StepTwo = ({
onChange={e => setSegmentIdentifier(e.target.value)}
/>
<MaxLengthInput
defaultValue={max}
value={max}
onChange={setMax}
/>
<OverlapInput
defaultValue={overlap}
value={overlap}
min={1}
onChange={setOverlap}
/>
@ -749,7 +749,7 @@ const StepTwo = ({
})}
/>
<MaxLengthInput
defaultValue={parentChildConfig.parent.maxLength}
value={parentChildConfig.parent.maxLength}
onChange={value => setParentChildConfig({
...parentChildConfig,
parent: {
@ -791,8 +791,7 @@ const StepTwo = ({
})}
/>
<MaxLengthInput
defaultValue={parentChildConfig.child.maxLength}
value={parentChildConfig.child.maxLength}
onChange={value => setParentChildConfig({
...parentChildConfig,
child: {