fix(amis-ui): 修复inputBox默认值0或者false不回现问题

This commit is contained in:
wibetter 2024-01-09 15:47:05 +08:00 committed by lmaomaoz
parent 577072bf8d
commit e172fcc63e

View File

@ -104,7 +104,7 @@ export class InputBox extends React.Component<InputBoxProps, InputBoxState> {
<Input
{...rest}
value={value || ''}
value={value ?? ''}
onChange={this.handleChange}
placeholder={placeholder}
onFocus={this.handleFocus}