xiaojundebug / vue-toast

A toast plugin for Vue.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vue-toast(已废弃)

An toast plugin for Vue.js

install

npm install vue-toast --save

usage

import Vue from "vue";
import Toast from "vue-toast";

Vue.use(Toast, {
  // 'top'|'center'|'bottom'
  position: "center", // default 'bottom'
  duration: 3000 // default '2500'
});
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!");

About

A toast plugin for Vue.js


Languages

Language:JavaScript 71.7%Language:CSS 28.3%