Back to Uni App

Uniinputelement

docs/api/dom/uniinputelement.md

2.3.31.4 KB
Original Source

UniInputElement

input 组件的 DOM 元素对象。

UniInputElement 兼容性

Web微信小程序AndroidiOSiOS uni-app x UTS 插件HarmonyOS
4.0x4.04.11x4.61
mermaid
graph LR
  
UniInputElement -- Extends --> UniElement
  style UniElement color:#42b983
  click UniElement "https://doc.dcloud.net.cn/uni-app-x/api/dom/unielement.html"

UniInputElement 的属性值 @uniinputelement-values

名称类型必备默认值兼容性描述
namestring-Web: -; 微信小程序: x; Android: 4.0; iOS: 4.11; iOS uni-app x UTS 插件: 4.25; HarmonyOS: -表单的控件名称,作为键值对的一部分与表单(form组件)一同提交
typestring-Web: -; 微信小程序: x; Android: 4.0; iOS: 4.11; iOS uni-app x UTS 插件: 4.25; HarmonyOS: -input的类型
disabledboolean-Web: -; 微信小程序: x; Android: 4.0; iOS: 4.11; iOS uni-app x UTS 插件: 4.25; HarmonyOS: -是否禁用
autofocusboolean-Web: -; 微信小程序: x; Android: 4.0; iOS: 4.11; iOS uni-app x UTS 插件: 4.25; HarmonyOS: -自动获取焦点
valuestring-Web: -; 微信小程序: x; Android: 4.0; iOS: 4.11; iOS uni-app x UTS 插件: 4.25; HarmonyOS: -输入框的初始内容
<!-- CUSTOMTYPEJSON.UniInputElement.example -->