fix: when multiple pop-ups exist at the same time, clicking will close all (#4548)
parent
d1e1256202
commit
3572ce1538
@ -1,11 +1,14 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
import { inject } from 'vue';
|
||||||
|
|
||||||
import { useScrollLock } from '@vben-core/composables';
|
import { useScrollLock } from '@vben-core/composables';
|
||||||
|
|
||||||
useScrollLock();
|
useScrollLock();
|
||||||
|
const id = inject('DISMISSABLE_MODAL_ID');
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<div
|
<div
|
||||||
|
:data-dismissable-modal="id"
|
||||||
class="bg-overlay fixed inset-0 z-[1000]"
|
class="bg-overlay fixed inset-0 z-[1000]"
|
||||||
data-dismissable-modal="true"
|
|
||||||
></div>
|
></div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@ -1,11 +1,14 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
import { inject } from 'vue';
|
||||||
|
|
||||||
import { useScrollLock } from '@vben-core/composables';
|
import { useScrollLock } from '@vben-core/composables';
|
||||||
|
|
||||||
useScrollLock();
|
useScrollLock();
|
||||||
|
const id = inject('DISMISSABLE_DRAWER_ID');
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<div
|
<div
|
||||||
|
:data-dismissable-drawer="id"
|
||||||
class="bg-overlay fixed inset-0 z-[1000]"
|
class="bg-overlay fixed inset-0 z-[1000]"
|
||||||
data-dismissable-drawer="true"
|
|
||||||
></div>
|
></div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Loading…
Reference in new issue