From ef798ae30c2ca599e50443fdef7d122c02560eed Mon Sep 17 00:00:00 2001 From: liaoxuezhi Date: Fri, 15 Nov 2019 12:37:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=20Input=20=E6=B3=A8=E9=87=8A?= =?UTF-8?q?=E6=96=87=E6=A1=A3.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Input.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/Input.tsx b/src/components/Input.tsx index ac3891fe..c3487bab 100644 --- a/src/components/Input.tsx +++ b/src/components/Input.tsx @@ -1,3 +1,8 @@ +/** + * @file 这个 Input 与系统默认的 input 不同的地方在于, + * 中文输入过程中不会触发 onChange 事件。对于 autoComplete + * 功能很有必要。 + */ import React from 'react'; import {autobind} from '../utils/helper'; @@ -60,4 +65,4 @@ class InputInner extends React.Component { export default React.forwardRef((props, ref) => { return ; -}) as React.ReactType>; \ No newline at end of file +}) as React.ReactType>;