minor
This commit is contained in:
parent
663eff8474
commit
5f86239f2c
1 changed files with 3 additions and 3 deletions
|
@ -6,7 +6,7 @@
|
|||
:max-width='options.width'
|
||||
:style="{ zIndex: options.zIndex, position: 'absolute' }"
|
||||
@keydown.esc='cancel')
|
||||
v-card
|
||||
v-card(color='secondary')
|
||||
v-card-title {{ title }}
|
||||
v-card-text(v-show='!!message') {{ message }}
|
||||
v-card-actions
|
||||
|
@ -61,9 +61,9 @@ export default {
|
|||
this.$root.$confirm = this.open
|
||||
},
|
||||
methods: {
|
||||
open (message, options) {
|
||||
open (message, options = {}) {
|
||||
this.dialog = true
|
||||
this.title = option.title || 'Confirm'
|
||||
this.title = options.title || 'Confirm'
|
||||
this.message = this.$t(message, options)
|
||||
this.options = Object.assign(this.options, options)
|
||||
return new Promise((resolve, reject) => {
|
||||
|
|
Loading…
Reference in a new issue