From d03d77d870b85d7fea47ebedad27e4d7f5f66596 Mon Sep 17 00:00:00 2001 From: yejiezhao Date: Mon, 17 Jul 2023 15:40:35 +0800 Subject: [PATCH] fix: bug inputType --- packages/ui/src/ui-component/input/Input.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ui/src/ui-component/input/Input.js b/packages/ui/src/ui-component/input/Input.js index e77447641..5a7f45b7b 100644 --- a/packages/ui/src/ui-component/input/Input.js +++ b/packages/ui/src/ui-component/input/Input.js @@ -61,7 +61,7 @@ export const Input = ({ inputParam, value, onChange, disabled = false, showDialo Input.propTypes = { inputParam: PropTypes.object, - value: PropTypes.string, + value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), onChange: PropTypes.func, disabled: PropTypes.bool, showDialog: PropTypes.bool,