API Docs
Examples
Github
正在准备搜索索引...
@ak2021/react-ui
IInputProps
接口 IInputProps
interface
IInputProps
{
className
?:
string
;
defaultValue
?:
string
;
disabled
?:
boolean
;
maxLength
?:
number
;
onBlur
?:
FocusEventHandler
<
HTMLInputElement
>
;
onChange
?:
ChangeEventHandler
<
HTMLInputElement
>
;
onFocus
?:
FocusEventHandler
<
HTMLInputElement
>
;
onKeyDown
?:
KeyboardEventHandler
<
HTMLInputElement
>
;
onPressEnter
?:
KeyboardEventHandler
<
HTMLInputElement
>
;
placeholder
?:
string
;
size
?:
"small"
|
"middle"
|
"large"
;
style
?:
CSSProperties
;
type
?:
"number"
|
"search"
|
"url"
|
"text"
|
"email"
|
"tel"
|
"password"
;
value
?:
string
;
}
索引
属性
class
Name?
default
Value?
disabled?
max
Length?
on
Blur?
on
Change?
on
Focus?
on
Key
Down?
on
Press
Enter?
placeholder?
size?
style?
type?
value?
属性
可选
class
Name
className
?:
string
可选
default
Value
defaultValue
?:
string
可选
disabled
disabled
?:
boolean
可选
max
Length
maxLength
?:
number
Max character length
可选
on
Blur
onBlur
?:
FocusEventHandler
<
HTMLInputElement
>
可选
on
Change
onChange
?:
ChangeEventHandler
<
HTMLInputElement
>
可选
on
Focus
onFocus
?:
FocusEventHandler
<
HTMLInputElement
>
可选
on
Key
Down
onKeyDown
?:
KeyboardEventHandler
<
HTMLInputElement
>
可选
on
Press
Enter
onPressEnter
?:
KeyboardEventHandler
<
HTMLInputElement
>
可选
placeholder
placeholder
?:
string
可选
size
size
?:
"small"
|
"middle"
|
"large"
Visual size of the input
可选
style
style
?:
CSSProperties
可选
type
type
?:
"number"
|
"search"
|
"url"
|
"text"
|
"email"
|
"tel"
|
"password"
Input type attribute
可选
value
value
?:
string
显示设置
成员可见性
受保护
继承
外部
配色
自动
浅色
深色
目录
属性
class
Name
default
Value
disabled
max
Length
on
Blur
on
Change
on
Focus
on
Key
Down
on
Press
Enter
placeholder
size
style
type
value
Examples
Github
API Docs
加载中……
Max character length