From e2a12aaff02f91648a06a885c8c2a69cef9a98b5 Mon Sep 17 00:00:00 2001 From: yvh <512106269@qq.com> Date: Sat, 7 May 2022 14:39:47 +0800 Subject: [PATCH] Update index.tsx MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 这个命名不对再props上应该是on开头 --- components/input-number/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/input-number/index.tsx b/components/input-number/index.tsx index 909ac20d0a..682ee07516 100644 --- a/components/input-number/index.tsx +++ b/components/input-number/index.tsx @@ -23,7 +23,7 @@ export const inputNumberProps = () => ({ addonBefore: PropTypes.any, addonAfter: PropTypes.any, prefix: PropTypes.any, - 'update:value': baseProps.onChange, + 'onUpdate:value': baseProps.onChange, valueModifiers: Object, });