fix: some bugs

This commit is contained in:
vben 2024-05-21 23:23:48 +08:00
parent b9a7eefcb5
commit e83adf0697
9 changed files with 13 additions and 14 deletions

View File

@ -91,6 +91,7 @@
"**/.gitignore": true, "**/.gitignore": true,
"**/.svn": true, "**/.svn": true,
"**/.DS_Store": true, "**/.DS_Store": true,
"**/.vitepress/cache": true,
"**/.idea": true, "**/.idea": true,
"**/.vscode": false, "**/.vscode": false,
"**/.yarn": true, "**/.yarn": true,

View File

@ -317,6 +317,7 @@ const contentStyle = computed((): CSSProperties => {
(!isHeaderAuto.value || scrollY.value < headerWrapperHeight.value) (!isHeaderAuto.value || scrollY.value < headerWrapperHeight.value)
? `${headerWrapperHeight.value}px` ? `${headerWrapperHeight.value}px`
: 0, : 0,
paddingBottom: `${props.footerVisible ? props.footerHeight : 0}px`,
}; };
}); });

View File

@ -90,7 +90,7 @@ li a::after {
} }
li a::before { li a::before {
@apply -left-7 z-[-1] border-l-transparent; @apply -left-7 z-10 border-l-transparent;
} }
li a::after { li a::after {

View File

@ -45,7 +45,7 @@ function handleClick(path?: string) {
<TransitionGroup name="breadcrumb-transition"> <TransitionGroup name="breadcrumb-transition">
<template <template
v-for="(item, index) in breadcrumbs" v-for="(item, index) in breadcrumbs"
:key="`${item.title}-${item.path}-${index}`" :key="`${item.path}-${item.title}-${index}`"
> >
<BreadcrumbItem> <BreadcrumbItem>
<div v-if="item.items?.length ?? 0 > 0"> <div v-if="item.items?.length ?? 0 > 0">
@ -97,12 +97,10 @@ function handleClick(path?: string) {
{{ item.title }} {{ item.title }}
</div> </div>
</BreadcrumbPage> </BreadcrumbPage>
<BreadcrumbSeparator
v-if="index < breadcrumbs.length - 1 && !item.isHome"
/>
</BreadcrumbItem> </BreadcrumbItem>
<BreadcrumbSeparator
v-if="index < breadcrumbs.length - 1 && !item.isHome"
>
/
</BreadcrumbSeparator>
</template> </template>
</TransitionGroup> </TransitionGroup>
</BreadcrumbList> </BreadcrumbList>

View File

@ -25,7 +25,7 @@ const props = withDefaults(defineProps<Props>(), {
const slots = useSlots(); const slots = useSlots();
const showTooltip = computed(() => !!slots.tooltip || props.tooltip); const showTooltip = computed(() => !!slots.tooltip || !!props.tooltip);
</script> </script>
<template> <template>

View File

@ -81,7 +81,7 @@ function handleGo(path: string) {
</script> </script>
<template> <template>
<div> <div @keypress.enter="handleSubmit">
<Title> <Title>
{{ $t('authentication.welcome-back') }} 👋🏻 {{ $t('authentication.welcome-back') }} 👋🏻
<template #desc> <template #desc>
@ -99,8 +99,8 @@ function handleGo(path: string) {
name="username" name="username"
:placeholder="$t('authentication.username')" :placeholder="$t('authentication.username')"
type="text" type="text"
required
:autofocus="false" :autofocus="false"
@keyup.enter="handleSubmit"
/> />
<VbenInputPassword <VbenInputPassword
v-model="formState.password" v-model="formState.password"
@ -111,7 +111,6 @@ function handleGo(path: string) {
:placeholder="$t('authentication.password')" :placeholder="$t('authentication.password')"
required required
type="password" type="password"
@keyup.enter="handleSubmit"
/> />
<div class="mb-6 mt-4 flex justify-between"> <div class="mb-6 mt-4 flex justify-between">

View File

@ -19,7 +19,7 @@ defineOptions({
withDefaults( withDefaults(
defineProps<{ defineProps<{
disabled: boolean; disabled?: boolean;
items?: SelectListItem[]; items?: SelectListItem[];
placeholder?: string; placeholder?: string;
}>(), }>(),

View File

@ -8,7 +8,7 @@ defineOptions({
name: 'PreferenceSwitchItem', name: 'PreferenceSwitchItem',
}); });
withDefaults(defineProps<{ disabled: boolean }>(), { withDefaults(defineProps<{ disabled?: boolean }>(), {
disabled: false, disabled: false,
}); });

View File

@ -7,7 +7,7 @@ defineOptions({
name: 'PreferenceToggleItem', name: 'PreferenceToggleItem',
}); });
withDefaults(defineProps<{ disabled: boolean; items: SelectListItem[] }>(), { withDefaults(defineProps<{ disabled?: boolean; items: SelectListItem[] }>(), {
disabled: false, disabled: false,
items: () => [], items: () => [],
}); });