# input - [权限列表](#zh-cn_topic_0000001173324647_section11257113618419) - [子组件](#zh-cn_topic_0000001173324647_section9288143101012) - [属性](#zh-cn_topic_0000001173324647_section2907183951110) - [样式](#zh-cn_topic_0000001173324647_section066012492913) - [事件](#zh-cn_topic_0000001173324647_section1721512551218) - [方法](#zh-cn_topic_0000001173324647_section47669296127) - [示例](#zh-cn_topic_0000001173324647_section106355275448) 交互式组件,包括单选框,多选框,按钮和单行文本输入框。 ## 权限列表 无 ## 子组件 不支持。 ## 属性 除支持[通用属性](js-components-common-attributes.md#ZH-CN_TOPIC_0000001163812208)外,还支持如下属性:
input组件类型,可选值为text,email,date,time,number,password,button,checkbox,radio。 其中text,email,date,time,number,password这六种类型之间支持动态切换修改。 button,checkbox,radio不支持动态修改。可选值定义如下:
|
||||
|
||||
在文本输入前的图标资源路径,该图标不支持点击事件(button,checkbox和radio不生效),图标格式为jpg,png和svg。 |
||||
Array<MenuOption> |
||||
单行输入框或者按钮的字体粗细,见text组件font-weight的样式属性。 |
||||
使组件获得或者失去焦点,type为text|email|date|time|number|password时,可弹出或收起输入法。 |
||
type为text|email|date|time|number|password时,根据当前光标位置删除文本内容,如果当前输入组件没有光标,默认删除最后一个字符并展示光标。 |