<tap-button>

移动端按钮组件。支持不同语义颜色、尺寸、幽灵/反色样式以及圆角。

Example

API

Shadow DOM; Extends GemElement

Instance Properties

Property(Attribute) Reactive Type
type(type) Yes 'solid' | 'reverse'
color(color) Yes StringList<'normal' | 'danger' | 'cancel'>
small(small) Yes boolean
round(round) Yes boolean
square(square) Yes boolean
disabled(disabled) Yes boolean
borderless(borderless) Yes boolean
route Yes RouteItem
params Yes Record<string, string>
query Yes Record<string, string>
icon Yes string | Element | DocumentFragment

Other

Type Value
Slot unnamed
Part button
CSS State active