解释:输入框。v3.105.0 起支持同层渲染。
Web 态说明:在 Web 态中,受浏览器限制,部分浏览器不支持自动获取焦点。如:safari 浏览器、chrome 浏览器;受设备系统或输入法限制,confirm-type 值无法修改键盘右下角按钮文字,右下角按钮内容由设备系统或输入法决定。

| 属性名 | 类型 | 默认值 | 必填 | 说明 | Web 态说明 | 
|---|---|---|---|---|---|
| - | |||||
| - | |||||
| - | |||||
| - | |||||
| - | |||||
| - | |||||
| - | |||||
| - | |||||
| - | |||||
| - | |||||
| - | |||||
| - | |||||
| - | |||||
| - | |||||
| - | |||||
| - | 
| 值 | 说明 | Web 态说明 | 
|---|---|---|
| - | ||
| - | ||
| 值 | 说明 | 
|---|---|
请根据需要录入的内容类型合理设置 input 组件的 type 值,降低用户操作成本,提升用户录入体验
跳转编辑工具
在开发者工具中打开
在 WEB IDE 中打开
扫码体验
代码示例
请使用百度APP扫码
基础用法 
自定义输入控制 自动聚焦 placeholder='focus="true"'selection-start="3"selection-end="7"focus="{{true}}"confirm-hold="false"confirm-type="send"bindfocus="bindKeyfocus" />控制长度 cursor="100"bindblur="bindKeyblur"bindconfirm="bindKeyconfirm"placeholder='maxlength="10"'maxlength="10" />禁用 带有内容 
自定义输入内容 文本 type="text"placeholder='type="text"'bindinput="{{!isWeb ? '': 'keyBoardText'}}"value="{= textValue =}" />数字 type="number"placeholder='type="number"'bindinput="{{!isWeb ? '': 'keyBoardNumber'}}"value="{= numberValue =}" />身份证 type="idcard"adjust-position="true"placeholder='type="idcard"'bindinput="{{!isWeb ? '': 'keyBoardCard'}}"value="{= cardValue =}" />小数 type="digit"placeholder='type="digit"'bindinput="{{!isWeb ? '': 'keyBoardDigit'}}"value="{= digitValue =}" />
设计指南
错误使用 input 组件的 type 值,会额外增加用户操作成本,影响输入转化。
错误
输入身份证信息时调起默认文本键盘,用户需要切换至数字键盘输入,再切换至字母键盘输入英文字母,共进行 3 次键盘切换才能顺利完成身份证信息输入。
自定义占位符颜色 placeholder-style=color:"#3388FF"class="normalInput"placeholder-class="placeholder"placeholder-style="color:#3388FF"placeholder="请在此输入" />
实时获取输入值 bindinput="bindKeyInput" {{inputValue}} 
                网站题目:创新互联百度小程序教程:input 输入框
                
                标题来源:http://www.csdahua.cn/qtweb/news14/414064.html
            
网站建设、网络推广公司-快上网,是专注品牌与效果的网站制作,网络营销seo公司;服务项目有等
声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 快上网