补充 Input 注释文档.
This commit is contained in:
parent
993c9c7e77
commit
ef798ae30c
|
@ -1,3 +1,8 @@
|
||||||
|
/**
|
||||||
|
* @file 这个 Input 与系统默认的 input 不同的地方在于,
|
||||||
|
* 中文输入过程中不会触发 onChange 事件。对于 autoComplete
|
||||||
|
* 功能很有必要。
|
||||||
|
*/
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import {autobind} from '../utils/helper';
|
import {autobind} from '../utils/helper';
|
||||||
|
|
||||||
|
@ -60,4 +65,4 @@ class InputInner extends React.Component<InputProps, InputState> {
|
||||||
|
|
||||||
export default React.forwardRef<HTMLInputElement>((props, ref) => {
|
export default React.forwardRef<HTMLInputElement>((props, ref) => {
|
||||||
return <InputInner {...props} forwardedRef={ref} />;
|
return <InputInner {...props} forwardedRef={ref} />;
|
||||||
}) as React.ReactType<React.InputHTMLAttributes<HTMLInputElement>>;
|
}) as React.ReactType<React.InputHTMLAttributes<HTMLInputElement>>;
|
||||||
|
|
Loading…
Reference in New Issue