Commit fe59eadc by shilin Committed by GitHub

fix: 数字输入框无法输入0 (#3641)

parent 946bd20d
...@@ -250,7 +250,7 @@ const InputTypeConfig = ({ ...@@ -250,7 +250,7 @@ const InputTypeConfig = ({
max={50000} max={50000}
onChange={(e) => { onChange={(e) => {
// @ts-ignore // @ts-ignore
setValue('maxLength', e || ''); setValue('maxLength', e ?? '');
}} }}
/> />
</Flex> </Flex>
...@@ -266,7 +266,7 @@ const InputTypeConfig = ({ ...@@ -266,7 +266,7 @@ const InputTypeConfig = ({
value={max} value={max}
onChange={(e) => { onChange={(e) => {
// @ts-ignore // @ts-ignore
setValue('max', e || ''); setValue('max', e ?? '');
}} }}
/> />
</Flex> </Flex>
...@@ -278,7 +278,7 @@ const InputTypeConfig = ({ ...@@ -278,7 +278,7 @@ const InputTypeConfig = ({
value={min} value={min}
onChange={(e) => { onChange={(e) => {
// @ts-ignore // @ts-ignore
setValue('min', e || ''); setValue('min', e ?? '');
}} }}
/> />
</Flex> </Flex>
...@@ -298,7 +298,7 @@ const InputTypeConfig = ({ ...@@ -298,7 +298,7 @@ const InputTypeConfig = ({
max={max} max={max}
onChange={(e) => { onChange={(e) => {
// @ts-ignore // @ts-ignore
setValue('defaultValue', e || ''); setValue('defaultValue', e ?? '');
}} }}
/> />
)} )}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment