Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xiaojundebug/vue-toast
A toast plugin for Vue.js
https://github.com/xiaojundebug/vue-toast
toast vue
Last synced: 21 days ago
JSON representation
A toast plugin for Vue.js
- Host: GitHub
- URL: https://github.com/xiaojundebug/vue-toast
- Owner: xiaojundebug
- Created: 2018-10-24T09:49:11.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-03-15T03:26:56.000Z (10 months ago)
- Last Synced: 2024-03-15T04:34:21.061Z (10 months ago)
- Topics: toast, vue
- Language: JavaScript
- Homepage:
- Size: 57.6 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vue-toast(已废弃)
A toast plugin for Vue.js
## install
```bash
npm install vue-toast --save
```## usage
```js
import Vue from "vue";
import Toast from "vue-toast";Vue.use(Toast, {
// 'top'|'center'|'bottom'
position: "center", // default 'bottom'
duration: 3000 // default '2500'
});
``````js
this.$toast("hello world!");
this.$toast("hello world!", "top");
this.$toast("hello world!", "center");
this.$toast("hello world!", "bottom");this.$toast.top("hello world!");
this.$toast.center("hello world!");
this.$toast.bottom("hello world!");
```