We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a504c71 commit a91e4fdCopy full SHA for a91e4fd
src/components/modal/CModal.vue
@@ -36,7 +36,7 @@
36
<button
37
type="button"
38
:class="btnClasses"
39
- @click="hide($event)"
+ @click="hide($event, true)"
40
>
41
OK
42
</button>
@@ -145,8 +145,8 @@ export default {
145
this.hide(e)
146
}
147
},
148
- hide (e) {
149
- this.$emit('update:show', false, e)
+ hide (e, accept = false) {
+ this.$emit('update:show', false, e, accept)
150
151
toggle (newVal) {
152
setTimeout(() => { this.visible = newVal }, 0)
0 commit comments