vue-toast-confirm
1.2.4 • Public • Published 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()
},
cancel: () => {
console.log('Your callback')
this.$close()
}
})
type |
toast |
confirm |
side |
(null) |
|
|
|
error |
|
|
|
success |
|
|
|
warnning |
|
|
|
Package Sidebar
Install
Weekly Downloads