fix: drawer header is missing (#4846)

This commit is contained in:
Vben
2024-11-09 20:00:09 +08:00
committed by GitHub
parent 26bec4222f
commit 5e44aa9283
12 changed files with 282 additions and 62 deletions

View File

@@ -84,7 +84,7 @@
"@types/lodash.get": "catalog:",
"@vue/shared": "catalog:",
"clsx": "catalog:",
"dayjs": "^1.11.13",
"dayjs": "catalog:",
"defu": "catalog:",
"lodash.clonedeep": "catalog:",
"lodash.get": "catalog:",

View File

@@ -36,6 +36,7 @@ export class DrawerApi {
confirmLoading: false,
contentClass: '',
footer: true,
header: true,
isOpen: false,
loading: false,
modal: true,

View File

@@ -179,12 +179,6 @@ function handleFocusOutside(e: Event) {
</div>
</SheetHeader>
<template v-else>
<VisuallyHidden>
<SheetTitle />
<SheetDescription />
</VisuallyHidden>
</template>
<div
ref="wrapperRef"
:class="

View File

@@ -65,7 +65,7 @@ const tabsView = computed(() => {
:style="style"
class="tabs-chrome !flex h-full w-max overflow-y-hidden pr-6"
>
<TransitionGroup name="slide-down">
<TransitionGroup name="slide-left">
<div
v-for="(tab, i) in tabsView"
:key="tab.key"

View File

@@ -67,9 +67,9 @@ const tabsView = computed(() => {
<template>
<div
:class="contentClass"
class="relative !flex h-full w-max items-center overflow-y-hidden pr-6"
class="relative !flex h-full w-max items-center overflow-hidden pr-6"
>
<TransitionGroup name="slide-down">
<TransitionGroup name="slide-left">
<div
v-for="(tab, i) in tabsView"
:key="tab.key"