1.2.4 • Published 6 years ago

vue-toast-confirm v1.2.4

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

vue-toast-confirm

A simple dialog plugin that supports both dialog and toast modes, with customizable types and button texts, etc.

this.$toast()

this.$toast({
  type: 'error',
  msg: 'hahahaha',
  duration: 3000
})

this.$side()

this.$side({
  type: 'error',
  msg: 'hahahaha',
  duration: 3000
})

this.$confirm()

this.$confirm({
  type: 'error',
  title: 'This is title',
  content: 'This is the message area!',
  confirmText: 'ok',
  cancelText: 'no',
  confirm: () => {
    console.log('Your callback')
    this.$close()  //If you don't want to close the dialog, you can not use it.
  },
  cancel: () => {
    console.log('Your callback')
    this.$close()  //If you don't want to close the dialog, you can not use it.
  }
})
typetoastconfirmside
(null)alt
erroraltaltalt
successaltaltalt
warnningaltaltalt
1.2.4

6 years ago

1.2.3

6 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago