<tap-input>

文本输入框组件。支持清除按钮、各种输入类型(密码、数字、多行文本等)以及禁用状态。

Example

API

Shadow DOM; Extends GemElement

Instance Properties

Property(Attribute) Reactive Type
change Emitter<string>
clear Emitter<string>
name(name) Yes string
value(value) Yes string
type(type) Yes 'search' | 'password' | 'email' | 'url' | 'tel' | 'text' | 'textarea' | 'number'
placeholder(placeholder) Yes string
spellcheck(spellcheck) Yes boolean
required(required) Yes boolean
disabled(disabled) Yes boolean
readonly(readonly) Yes boolean
autofocus(autofocus) Yes boolean
clearable(clearable) Yes boolean
alwayclearable(alwayclearable) Yes boolean
rows(rows) Yes number
step(step) Yes number
min(min) Yes number
max(max) Yes number
dataList Yes DataList
icon Yes string | Element | DocumentFragment

Other

Type Value
Event change, clear
Part input, clear
CSS State filled, composing