Skip to content

Input

Single-line text input, with multiple field types and Bridge focus commands.

Examples

Basic

Input types

Plain text, number, password, and more

API

Props

属性说明类型默认值
typeInput typetext | number | digit | idcardtext
valueCurrent valuestring-
placeholderPlaceholder textstring-
maxlengthMaximum lengthnumber140
disabledWhether disabledbooleanfalse
passwordPassword inputbooleanfalse
focusAuto-focusbooleanfalse
confirm-typeLabel for the keyboard return keystringdone

Events

属性说明类型默认值
inputFired on keyboard input{ value, cursor }-
focusFired on focus{ value }-
blurFired on blur{ value }-
confirmFired when the user confirms{ value }-

MiniDev Studio — Mini-app Development Toolkit