第二阶段代码

This commit is contained in:
2026-04-23 11:37:37 +08:00
parent 618bb6699e
commit ef64c3b7fb
937 changed files with 118372 additions and 10248 deletions

View File

@@ -44,7 +44,7 @@ async function calcContentHeight() {
docHeight.value = docRef.value?.offsetHeight || 0;
setTimeout(() => {
shouldAutoHeight.value = true;
}, 30);
}, 50);
}
function isDocAlertEnable(): boolean {
@@ -107,7 +107,7 @@ onMounted(() => {
</div>
</div>
<div :class="cn('h-full p-0', contentClass)" :style="contentStyle">
<div :class="cn('h-full p-0', contentClass)" :style="contentStyle" v-if="shouldAutoHeight || !autoContentHeight">
<slot></slot>
</div>
<div

View File

@@ -198,6 +198,6 @@ defineExpose({
</slot>
<!-- 萌新必读 -->
<DocLink />
<!-- <DocLink /> -->
</div>
</template>

View File

@@ -287,15 +287,24 @@ const headerSlots = computed(() => {
/>
</template>
<template v-if="showHeaderNav" #menu>
<LayoutMenu
:default-active="headerActive"
:menus="wrapperMenus(headerMenus)"
:rounded="isMenuRounded"
:theme="headerTheme"
class="w-full"
mode="horizontal"
@select="handleMenuSelect"
/>
<slot name="menu">
<LayoutTabbar
v-if="preferences.headerTabbar.enable"
:show-icon="preferences.tabbar.showIcon"
:theme="theme"
/>
<LayoutMenu
v-else
:default-active="headerActive"
:menus="wrapperMenus(headerMenus)"
:rounded="isMenuRounded"
:theme="headerTheme"
class="w-full"
mode="horizontal"
@select="handleMenuSelect"
/>
</slot>
</template>
<template #user-dropdown>
<slot name="user-dropdown"></slot>

View File

@@ -87,7 +87,7 @@ const [Modal, modalApi] = useVbenModal({
</VbenButtonGroup>
</div>
<div class="mt-2 flex justify-start">
<!-- <div class="mt-2 flex justify-start">
<p class="w-24 p-2">软件外包:</p>
<img
src="/wx-xingyu.png"
@@ -100,7 +100,7 @@ const [Modal, modalApi] = useVbenModal({
<p class="mt-2 flex justify-center pt-4 text-sm italic">
本项目采用 <Badge class="mx-2" variant="destructive">MIT</Badge>
开源协议个人与企业可100% 免费使用
</p>
</p> -->
</div>
</Modal>
</template>