0.2.0 • Published 8 years ago

archer-vue-toast v0.2.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

archer-vue-toast

A toast component for qingcheng mobile project

demo

Usage

var VueToast = require('archer-vue-toast');
Vue.use(VueToast);

Basic use:

/*
* @usage
* vm.$toast(options);
*/
vm.$toast({
    txt: 'upload error', //default: "error"
    transition: 'fadeup', //default: 'fade'
    time: 1000, //default: 2000ms
    style: {"margin-top": "200px"}
})

Use options

/*
* @usage
* var VueToast = require('archer-vue-toast');
* Vue.use(VueToast, [options])
* options work on the toast Element, supporting txt, transition, time and style
*/
var VueToast = require('archer-vue-toast');
Vue.use(VueToast, {txt: "error", transition: "fadeup", time: 1000, style: {"margin-top": "150px"}});
0.2.0

8 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago