mui-toast

0.0.9 • Public • Published

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

  1. message: 内容, 必填
  2. duration: 持续时间, 默认1500, 单位毫秒
  3. icon: 图标, 现在仅提供warn,loading, 默认空
  4. position: 位置top , center, bottom, 默认center
  5. zindex: 1

/mui-toast/

    Package Sidebar

    Install

    npm i mui-toast

    Weekly Downloads

    0

    Version

    0.0.9

    License

    MIT

    Last publish

    Collaborators

    • wanglei8381