From 9aef83d9c4c2e26961585628d68f05da6b081d3c Mon Sep 17 00:00:00 2001 From: colder Date: Fri, 17 Apr 2020 14:41:55 +0800 Subject: [PATCH] =?UTF-8?q?fix(input):=20error=20=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E6=94=B9=E6=88=90=20any?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Input.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Input.tsx b/src/Input.tsx index 4f48f2d..b008266 100644 --- a/src/Input.tsx +++ b/src/Input.tsx @@ -34,12 +34,12 @@ export interface InputProps name?: string required?: boolean readOnly?: boolean - error?: string + error?: any onChange?: _InputProps['onInput'] onFocus?: _InputProps['onFocus'] onBlur?: _InputProps['onBlur'] onClick?(event: ITouchEvent): any - onErrorClick?(error: string): void + onErrorClick?(error: any): void } export const Input: React.FC = (props) => {