mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-03 21:29:28 +00:00
23 lines
574 B
JavaScript
23 lines
574 B
JavaScript
import BsAlert from './Alert';
|
|
|
|
export default {
|
|
mixins: [
|
|
BsAlert
|
|
],
|
|
data: () => ({
|
|
result: false
|
|
}),
|
|
popup(msg, options) {
|
|
return BsAlert.popup.bind(this)(msg, options);
|
|
},
|
|
template: `<bs-modal ref="modalContainer" class="bootstrap-confirm" v-bind="$props">
|
|
<template v-slot:default>
|
|
<slot></slot>
|
|
</template>
|
|
<template v-slot:footer>
|
|
<button type="button" class="btn btn-primary" @click="result=true;this.hide()">OK</button>
|
|
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Cancel</button>
|
|
</template>
|
|
</bs-modal>`
|
|
}
|