@dlophin/vue-toast

1.1.1 • Public • Published

vue-toast

A Vue.js project

Build Setup

# install dependencies
npm install -D @dlophin/vue-toast

# import
import vueToast from '@dlophin/vue-toast'
Vue.use(vueToast)

# use
this.$showToast({
  content: 'this is a toast' //
  duration: 3000              // stop time
  success: ()=>{}            // transfer success function
  end: ()=>{}                //  the toast remove  function
})

# also choice postion
this.$showToast.top();
this.$showToast.center();
this.$showToast.bottom();

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

Readme

Keywords

Package Sidebar

Install

npm i @dlophin/vue-toast

Weekly Downloads

0

Version

1.1.1

License

MIT

Unpacked Size

9.16 kB

Total Files

5

Last publish

Collaborators

  • yellowbeee