fix: improve the display of modal and drawer on mobile (#4237)

This commit is contained in:
Vben
2024-08-26 20:54:20 +08:00
committed by GitHub
parent 577cc85851
commit fd7b3479b4
19 changed files with 99 additions and 34 deletions

View File

@@ -159,7 +159,7 @@ function toggleUnlockForm() {
</transition>
<div
class="enter-y absolute bottom-5 w-full text-center text-gray-300 xl:text-xl 2xl:text-3xl"
class="enter-y absolute bottom-5 w-full text-center xl:text-xl 2xl:text-3xl"
>
<div v-if="showUnlockForm" class="enter-x mb-2 text-3xl">
{{ hour }}:{{ minute }} <span class="text-lg">{{ meridiem }}</span>

View File

@@ -55,7 +55,7 @@ const listen = computed(() => {
</script>
<template>
<div>
<Drawer v-bind="attrs" v-on="listen" />
<Drawer v-bind="{ ...$attrs, ...attrs }" v-on="listen" />
<div @click="() => drawerApi.open()">
<slot>