1.1.2 • Published 6 years ago

@yuicer/vue-toast v1.1.2

Weekly downloads
-
License
ISC
Repository
github
Last release
6 years ago

vue-toast

instroction

vue-ui-plugin for mobile,

install

  npm i @yuicer/vue-toast

usage

import toast from '@yuicer/toast'
Vue.use(toast)

// within vue components
this.$toast.alert('hello').then()

// within js , must be used after installed 【Vue.use(toast)】
import { toast } from '@yuicer/toast'
toast
  .confirm('hello')
  .then()
  .catch()

options

toast has three functions【tip, alert confirm】, all of them return a promise with properly value

  toast.tip( msg: String, { durationTime?: Number = 1500 } )
  toast.alert( msg: String, { words? :String = '确定' } )
  toast.confirm( msg: String, { words? :String[2] = ['取消', '确认'] } )

undo

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago