<tap-searchbar>

移动端搜索栏组件。聚焦时带有取消按钮动画,支持与 <tap-page> 滚动配合。

Example

API

Shadow DOM; Extends GemElement

Instance Properties

Property(Attribute) Reactive Type
value(value) Yes string
placeholder(placeholder) Yes string
cancelText(cancel-text) Yes string
autofocus(autofocus) Yes boolean
disabled(disabled) Yes boolean
disableCancel(disable-cancel) Yes boolean
change Emitter<string>
search Emitter<string>
submit Emitter<string>
cancel Emitter
focus (options?: FocusOptions) => void | undefined
blur () => void | undefined

Other

Type Value
Event change, search, submit, cancel
Part input, cancel
CSS State fullscreen