fix: some bugs
This commit is contained in:
@@ -317,6 +317,7 @@ const contentStyle = computed((): CSSProperties => {
|
||||
(!isHeaderAuto.value || scrollY.value < headerWrapperHeight.value)
|
||||
? `${headerWrapperHeight.value}px`
|
||||
: 0,
|
||||
paddingBottom: `${props.footerVisible ? props.footerHeight : 0}px`,
|
||||
};
|
||||
});
|
||||
|
||||
|
@@ -90,7 +90,7 @@ li a::after {
|
||||
}
|
||||
|
||||
li a::before {
|
||||
@apply -left-7 z-[-1] border-l-transparent;
|
||||
@apply -left-7 z-10 border-l-transparent;
|
||||
}
|
||||
|
||||
li a::after {
|
||||
|
@@ -45,7 +45,7 @@ function handleClick(path?: string) {
|
||||
<TransitionGroup name="breadcrumb-transition">
|
||||
<template
|
||||
v-for="(item, index) in breadcrumbs"
|
||||
:key="`${item.title}-${item.path}-${index}`"
|
||||
:key="`${item.path}-${item.title}-${index}`"
|
||||
>
|
||||
<BreadcrumbItem>
|
||||
<div v-if="item.items?.length ?? 0 > 0">
|
||||
@@ -97,12 +97,10 @@ function handleClick(path?: string) {
|
||||
{{ item.title }}
|
||||
</div>
|
||||
</BreadcrumbPage>
|
||||
<BreadcrumbSeparator
|
||||
v-if="index < breadcrumbs.length - 1 && !item.isHome"
|
||||
/>
|
||||
</BreadcrumbItem>
|
||||
<BreadcrumbSeparator
|
||||
v-if="index < breadcrumbs.length - 1 && !item.isHome"
|
||||
>
|
||||
/
|
||||
</BreadcrumbSeparator>
|
||||
</template>
|
||||
</TransitionGroup>
|
||||
</BreadcrumbList>
|
||||
|
@@ -25,7 +25,7 @@ const props = withDefaults(defineProps<Props>(), {
|
||||
|
||||
const slots = useSlots();
|
||||
|
||||
const showTooltip = computed(() => !!slots.tooltip || props.tooltip);
|
||||
const showTooltip = computed(() => !!slots.tooltip || !!props.tooltip);
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
Reference in New Issue
Block a user