使用方式
已在全局引入,不用在页面引入
在 template
中使用组件
<empty mode="favor" text="暂无收藏"></empty>
<empty mode="favor" text="暂无收藏"></empty>
属性名 | 类型 | 默认值 | 说明 |
---|---|---|---|
text | String | 暂无数据 | |
mode | String | data | 没有数据的类型 data (通用没有数据) address (收货地址) coupon (优惠券) favor (收藏夹) news (新闻) message (消息) |
示例: