1.0.14 • Published 6 years ago

@bbjxl/wxc-toast v1.0.14

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

wxc-toast

MinUI 小程序组件 - 提示框

Install

$ min install @bbjxl/wxc-toast

API

Toast【props】

名称描述
is-show说明toast 显示控制字段。类型:Boolean默认值:false
text说明:提示的文案,必填。类型:String默认值:""
icon说明:图标。类型:String默认值:"" 可选值详见 wxc-icon 组件中的 type 属性
icon-image说明:【已废弃,请使用 src 】自定义图标图片的路径,优先级高于 icon。类型:String默认值:""
src说明:自定义图标图片的路径,优先级高于 icon。类型:String默认值:""
icon-color说明:图标颜色。类型:String默认值:"#fff"
duration说明:提示的延迟时间,单位毫秒。类型:Number默认值:2000
bind:success说明:调用成功的回调函数。

Toast【methods】

名称描述
show(msg)说明:显示toast。类型Function参数String返回void

Link

地址
toast 组件文档 https://meili.github.io/min/docs/minui/index.html#toast
toast 组件源码 https://github.com/bbjxl/minui/tree/master/packages/wxc-toast
MinUI 组件库 https://github.com/meili/minui

Preview

toast

ChangeLog

v1.0.8(2018.03.29)

  • show() 方法增加 message 参数

v1.0.7(2018.01.16)

  • icon-image 属性更改为 src,1.0.7 及以上版本的 min 支持本地图片路径

v1.0.6(2018.01.09)

  • z-index 层级规范方案修改

v1.0.3(2018.01.04)

  • 修复自定义 icon 时,icon 的颜色样式问题,规范 z-index 规范

v1.0.2(2017.11.02)

  • update .npmignore

v1.0.1(2017.10.24)

  • 初始版本