1.0.10 • Published 7 years ago

react-simple-toast v1.0.10

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

Toast

说明

Toast 为一款基于react的移动端轻提示组件

安装

// npm
npm install --save react-simple-toast

// cnpm 
cnpm install --save react-simple-toast

// yarn
yarn add react-simple-toast

使用方法

import Toast from 'react-simple-toast';

...

Toast({
    type: "msg",  // 类型
    msg: "文本提示", // 文字内容
    duration: 2000 // 显示时间
})

参数说明

type 的值可以为 msg | loading | success | fail | offline

msg 即弹出框中所显示的提示内容

duration 为弹出框存留的时间,如不设置,则为1500ms

typeStatustypeloading 时使用,typeStatus1 时正在加载,typeStatus2 时加载完毕

具体使用方法可以查看example

example 图片示例

example图片示例

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago