0.0.9 • Published 6 years ago
mui-toast v0.0.9
mui-toast
Install
npm install mui-toast
Use
import {openToast} from 'mui-toast'
openToast('加载中...')
或
import 'mui-toast'
wuage.openToast({
message: '加载中...',
duration: 3000,
zindex: 1,
icon: 'loading'
})
引入mui-toast自动绑定到全局变量wuage上
Param
- message: 内容, 必填
- duration: 持续时间, 默认1500, 单位毫秒
- icon: 图标, 现在仅提供warn,loading, 默认空
- position: 位置top , center, bottom, 默认center
- zindex: 1