git fix modal
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div :id="id" class="modal">
|
<div :id="id" class="modal" data-bs-focus="false" tabindex="-1">
|
||||||
<div class="modal-dialog" :class="class_other">
|
<div class="modal-dialog" :class="class_other" v-if="modelValue">
|
||||||
<div v-if="modal" class="modal-content">
|
<div class="modal-content">
|
||||||
<div v-if="title" class="modal-header">
|
<div v-if="title" class="modal-header">
|
||||||
<h4 class="modal-title" v-html="title" />
|
<h4 class="modal-title" v-html="title" />
|
||||||
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close" />
|
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close" />
|
||||||
@@ -22,7 +22,7 @@ export default {
|
|||||||
props: ['modelValue', 'title', 'class_other'],
|
props: ['modelValue', 'title', 'class_other'],
|
||||||
emits: ['change', 'update:modelValue', 'hide'],
|
emits: ['change', 'update:modelValue', 'hide'],
|
||||||
setup(props, { emit }) {
|
setup(props, { emit }) {
|
||||||
const id = 'modal' + Math.round(Math.random() * 100000)
|
const id = 'modalpgb' + Math.round(Math.random() * 100000)
|
||||||
const modal = ref(null)
|
const modal = ref(null)
|
||||||
|
|
||||||
const triggerModal = (value, emitEvent = true) => {
|
const triggerModal = (value, emitEvent = true) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user