Add ConfirmModal comp

This commit is contained in:
Tusooa Zhu 2022-02-09 15:50:25 -05:00 committed by tusooa
commit 0684f19d1b
No known key found for this signature in database
GPG key ID: 7B467EDE43A08224
2 changed files with 70 additions and 0 deletions

View file

@ -0,0 +1,28 @@
<template>
<dialog-modal
v-if="showing"
:onCancel="onCancel"
>
<template v-slot:header>
<span v-text="title"></span>
</template>
<slot></slot>
<template v-slot:footer>
<button
class="btn button-default"
v-text="confirmText"
@click.prevent="onAccept"
></button>
<button
class="btn button-default"
v-text="cancelText"
@click.prevent="onCancel"
></button>
</template>
</dialog-modal>
</template>
<script src="./confirm_modal.js"></script>