Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

shadow-toast

c_shadow7MIT1.0.2

A Vue.js project

readme

vue-shadow-toast

A Vue.js project

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

For detailed explanation on how things work, consult the docs for vue-loader.

toast插件

使用方法

import xx from shadow-toast
Vue.use(xx)

调用

this.$shadowToast({ tips: '坑可真多', defaultType: 'top', duration: '3500' });

参数

1.tips:传的message
2.defaultType:默认位置 目前可选top,center,bottom.不传默认center
3.duration:持续时间,不传默认3000