# easy-toast

> vue simple toast component

Latest version **1.1.1** (published 2018-08-28) · ISC license · 0 weekly downloads

## Install

```sh
npm install easy-toast
pnpm add easy-toast
yarn add easy-toast
bun add easy-toast
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2018-08-28 |
| First published | 2018-06-15 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 6.0.0 |
| Dependencies | 3 |
| Unpacked size | 34.5 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | marco |
| Maintainers | marco927 |
| Keywords | vue, toast |

## Links

- npm: https://www.npmjs.com/package/easy-toast
- Repository: https://github.com/summer-yyy/easy-toast
- Homepage: https://github.com/summer-yyy/easy-toast#readme
- Issues: https://github.com/summer-yyy/easy-toast/issues
- npm.io page: https://npm.io/package/easy-toast

## Dependencies (3)

- [vue](https://npm.io/package/vue.md) ^2.5.2
- [less](https://npm.io/package/less.md) ^2.7.3
- [less-loader](https://npm.io/package/less-loader.md) ^4.1.0

## Alternatives

- [update-check](https://npm.io/package/update-check.md) — 4.0M weekly downloads
- [react-native-onesignal](https://npm.io/package/react-native-onesignal.md) — 134.5K weekly downloads
- [react-redux-toastr](https://npm.io/package/react-redux-toastr.md) — 33.7K weekly downloads
- [@nocobase/plugin-notification-manager](https://npm.io/package/@nocobase/plugin-notification-manager.md) — 2.0K weekly downloads
- [react-simple-toasts](https://npm.io/package/react-simple-toasts.md) — 1.9K weekly downloads

## Recent versions

- 1.1.1 (latest) — 2018-08-28
- 1.0.11 — 2018-08-27
- 1.0.10 — 2018-08-27
- 1.0.9 — 2018-08-27
- 1.0.8 — 2018-08-27
- 1.0.7 — 2018-08-27
- 1.0.6 — 2018-08-27
- 1.0.5 — 2018-08-27
- 1.0.4 — 2018-08-27
- 1.0.3 — 2018-08-27
- 1.0.2 — 2018-06-15
- 1.0.1 — 2018-06-15
- 1.0.0 — 2018-06-15

## README

# easy-toast
vue simple toast component


# install 
npm i easy-toast

# use
```
import Vue from 'vue'  
import Toast from 'easy-toast';  
Vue.use(Toast, {duration: 1500 // 消失间隔，可以不传，默认1.5s});  
```

# option
## Object  
  ### type 
  图标类型Sting： success，fail, warning，默认不显示  
  ### title 
  标题String:  默认：""  
  ### message
  内容String:  默认：""  
## 
### 或者直接传String类，直接显示内容  
 
# methods
### 手动关闭的方法:
```
this.$toast.hide();
```

 # example
```
this.$toast({
  type: "warning",
  title: "警告",
  message: "这是警告信息"
});
this.$toast({
  type: "success",
  title: "成功",
  message: "这是条信息"
});
this.$toast({
  type: "fail",
  title: "失败",
  message: "这是条信息"
});
this.$toast("这是条信息");
 ```
![warning](https://i.loli.net/2018/08/28/5b850b02bb860.png)
![success](https://i.loli.net/2018/08/28/5b850b02bb3b2.png)
![fail](https://i.loli.net/2018/08/28/5b850b02c83e0.png)
![info](https://i.loli.net/2018/08/28/5b850b02c83bb.png)

---
_Source: https://npm.io/package/easy-toast · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
