1.2.4 • Published 7 years ago
vue-toast-confirm
Licence
ISC
Version
1.2.4
Deps
0
Size
154 kB
Vulns
0
Weekly
0
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.
}
})
| type | toast | confirm | side |
|---|---|---|---|
| (null) | ![]() |
||
| error | ![]() |
![]() |
![]() |
| success | ![]() |
![]() |
![]() |
| warnning | ![]() |
![]() |
![]() |









