wxc-abnor
MinUI 小程序组件 - 异常流提示
Install
$ min install @minui/wxc-abnor
API
Abnor【props】
名称 | 描述 |
---|---|
type |
[说明]:异常状态类型,其优先级低于其他属性。 [类型]: String 默认值: "" [可选值]: REQUEST_ERROR, NOT_FOUND, DATA, FOLLOW, FEED,SHOP, WEIBO, SEARCH, TAG, MESSAGE, LIVE, ORDER, CART, FOOTPRINT, COUPON
|
image |
[说明]:背景图。若与 type 同时指定,将覆盖 type 对应的 image 。[类型]: String [默认值]: "" |
title |
[说明]:标题。若与 type 同时指定,将覆盖 type 对应的 title 。[类型]: String [默认值]: "" |
tip |
[说明]:副标题。若与 type 同时指定,将覆盖 type 对应的 tip 。[类型]: String [默认值]: "" |
button |
[说明]:按钮文案。若与 type 同时指定,将覆盖 type 对应的 button 。[类型]: String [默认值]: "" |
bindabnortap |
[说明]:按钮事件。若配置了 button 属性,则需要指定事件。其中 REQUEST_ERROR, NOT_FOUND 两种 type 中均设置了默认的按钮文案 |
Link
地址 | |
---|---|
abnor 组件文档 https://meili.github.io/min/docs/minui/index.html#abnor |
|
abnor 组件源码 https://github.com/meili/minui/tree/master/packages/wxc-abnor |
|
MinUI 组件库 https://github.com/meili/minui |
Preview
ChangeLog
v1.0.3(2018.01.04)
- 补全配置,避免报错
v1.0.2(2017.11.02)
- update .npmignore
v1.0.1(2017.10.24)
- 初始版本