Skip to content

适用于vue的一个插件,可通过npm下载

Notifications You must be signed in to change notification settings

zzw918/toast-for-vue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

这是配合vue框架使用的toast,方便引入。 博客介绍: http://www.cnblogs.com/zhuzhenwei918/p/6925943.html

install:

npm install toast-for-vue --save

import Toast from 'toast-for-vue'

import 'toast-for-vue/lib/toast.css'

Vue.use(Toast)

or:

Vue.use(Toast, {

defaultType: "top",

defaultDuration: 15000

})

usage:

this.$toast("success!");

this.$toast.top("error!");

this.$toast.bottom("no!");

About

适用于vue的一个插件,可通过npm下载

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published