@@ -15,14 +15,14 @@ import {
15
15
16
16
type PickAtInputProps = Pick <
17
17
AtInputProps ,
18
- 'maxLength ' | 'disabled' | 'password'
18
+ 'maxlength ' | 'disabled' | 'password'
19
19
>
20
20
type GetInputPropsReturn = PickAtInputProps & Pick < InputProps , 'type' >
21
21
22
22
function getInputProps ( props : AtInputProps ) : GetInputPropsReturn {
23
23
const actualProps = {
24
24
type : props . type ,
25
- maxLength : props . maxLength ,
25
+ maxLength : props . maxlength ,
26
26
disabled : props . disabled ,
27
27
password : false
28
28
}
@@ -129,7 +129,7 @@ export default class AtInput extends React.Component<AtInputProps> {
129
129
value,
130
130
required
131
131
} = this . props
132
- const { type, maxLength , disabled, password } = getInputProps ( this . props )
132
+ const { type, maxlength , disabled, password } = getInputProps ( this . props )
133
133
134
134
const rootCls = classNames (
135
135
'at-input' ,
@@ -171,7 +171,7 @@ export default class AtInput extends React.Component<AtInputProps> {
171
171
placeholderClass = { placeholderCls }
172
172
placeholder = { placeholder }
173
173
cursorSpacing = { cursorSpacing }
174
- maxLength = { maxLength }
174
+ maxlength = { maxlength }
175
175
autoFocus = { autoFocus }
176
176
focus = { focus }
177
177
value = { value }
@@ -223,7 +223,7 @@ AtInput.defaultProps = {
223
223
selectionStart : - 1 ,
224
224
selectionEnd : - 1 ,
225
225
adjustPosition : true ,
226
- maxLength : 140 ,
226
+ maxlength : 140 ,
227
227
type : 'text' ,
228
228
disabled : false ,
229
229
border : true ,
@@ -252,7 +252,7 @@ AtInput.propTypes = {
252
252
selectionEnd : PropTypes . oneOfType ( [ PropTypes . string , PropTypes . number ] ) ,
253
253
adjustPosition : PropTypes . bool ,
254
254
cursorSpacing : PropTypes . oneOfType ( [ PropTypes . string , PropTypes . number ] ) ,
255
- maxLength : PropTypes . oneOfType ( [ PropTypes . string , PropTypes . number ] ) ,
255
+ maxlength : PropTypes . oneOfType ( [ PropTypes . string , PropTypes . number ] ) ,
256
256
type : PropTypes . string ,
257
257
disabled : PropTypes . bool ,
258
258
border : PropTypes . bool ,
0 commit comments