<tap-tag>
标签组件。用于标记和分类,支持多种语义色、幽灵/实心样式以及可关闭操作。
Example
Loading...
<tap-tag> 默认标签 </tap-tag> <tap-tag .color=${"positive"}> 成功 </tap-tag> <tap-tag .color=${"informative"}> 信息 </tap-tag> <tap-tag .color=${"notice"}> 警告 </tap-tag> <tap-tag .color=${"negative"}> 错误 </tap-tag> <tap-tag .color=${"informative"} .type=${"reverse"}> 反色样式 </tap-tag> <tap-tag .closable=${true}> 可关闭 </tap-tag>
API
Shadow DOM; Extends GemElement
Instance Properties
| Property(Attribute) | Reactive | Type | Description |
|---|---|---|---|
closable(closable) |
Yes | boolean |
|
color(color) |
Yes | StringList<PresetColor> |
|
modemode |
Yes | 'solid' | 'reverse' |
@deprecated |
type(type) |
Yes | 'solid' | 'reverse' |
|
small(small) |
Yes | boolean |
|
close |
Emitter<null> |
Other
| Type | Value |
|---|---|
| Event | close |
| Slot | unnamed |
