<tap-empty>
空状态组件。在页面或列表无数据时提供占位提示和说明。
Example
Loading...
<tap-empty></tap-empty> <tap-empty .text=${"暂无搜索结果"}></tap-empty> <tap-empty .text=${"购物车空空如也"}></tap-empty>
API
Shadow DOM; Extends GemElement
Instance Properties
| Property(Attribute) | Reactive | Type |
|---|---|---|
icon |
Yes | string | Element | DocumentFragment |
text(text) |
Yes | string |
slotName(slot-name) |
Yes | string |
Other
| Type | Value |
|---|---|
| Slot | unnamed |
