1.0.12 • Published 6 years ago

m-toast-aj v1.0.12

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

m-toast

wap原生toast组件

说明

基于移动端自适应方案 flexible,画板750px 比例 100:1, 即屏宽 750px: 7.5rem、 字体 32px:.32rem;

install

  npm install m-toast-aj --save

use

  import Toast from 'm-toast-aj'

  let ins = new Toast({
    msg: '加载中...',
    // 只支持loading
    type: null,
    // 是否自动隐藏tosat
    autoClose: true,
    // 自动隐藏事件
    autoCloseTime: 3000,
    // css动画事件 目的控制 dom 销毁 新定义style 动画时使用
    animateTime: 500,
    // css module
    style,
    // 事件只有close事件
    event: {
      close () {
        console.log('Event Hide')
      }
    }
  })

  // methods close、destroy
  ins.close()
  ins.destroy()
1.0.12

6 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago