init
This commit is contained in:
2025-06-30 10:55:05 +08:00
parent bd6402478b
commit 7130be7194
11 changed files with 180 additions and 557 deletions
@@ -22,7 +22,7 @@
import { useUserStore } from '/@/store/modules/user';
import { getEnvInfo } from '/@/utils/getEnv';
const HEADER_HEIGHT = getEnvInfo().VITE_PLATFORM === 'YT' ? 60 : 80;
const HEADER_HEIGHT = 80;
// updateBy:sunjianlei---updateDate:2021-09-03---修改tab切换栏样式:更改高度
const TABS_HEIGHT = 32;
@@ -45,7 +45,8 @@
const { getShowMultipleTab, getTabsTheme } = useMultipleTabSetting();
const HEADER_HEIGHT_SPECIAL_PATH = ref<number>(
getEnvInfo().VITE_PLATFORM === 'YT' && !['2', '4', '5', '6'].includes(useUserStore().getUserInfo.personType) ? 50 : 0
// getEnvInfo().VITE_PLATFORM === 'YT' && !['2', '4', '5', '6'].includes(useUserStore().getUserInfo.personType) ? 50 : 0
0
);
const getShowTabs = computed(() => {
-4
View File
@@ -2,10 +2,6 @@
<Header
:class="getHeaderClass"
style="overflow: hidden"
:style="{
backgroundColor: getEnvInfo().VITE_PLATFORM === 'YT' ? '#9eb7e3 !important' : '',
height: getEnvInfo().VITE_PLATFORM === 'YT' ? '60px !important' : '80px !important',
}"
>
<!-- left start -->
<div :class="`${prefixCls}-left`">
-2
View File
@@ -3,8 +3,6 @@
<LayoutFeatures />
<LayoutHeader fixed v-if="getShowFullHeaderRef" />
<div
v-if="showNL && getEnvInfo().VITE_PLATFORM === 'YT' && !['2', '4', '5', '6'].includes(useUserStore().getUserInfo.personType)"
:style="{ top: getEnvInfo().VITE_PLATFORM === 'YT' ? '60px' : '80px' }"
class="menu-list-outer"
>
<div class="menu-list-outer-inner">
+9 -20
View File
@@ -1,7 +1,7 @@
<script lang="tsx">
import type { CSSProperties, PropType } from 'vue';
import { computed, defineComponent, toRef, unref } from 'vue';
import { BasicMenu1, BasicMenu2 } from '/@/components/Menu';
import { BasicMenu } from '/@/components/Menu';
import { SimpleMenu } from '/@/components/SimpleMenu';
import { AppLogo } from '/@/components/Application';
@@ -187,25 +187,14 @@
// if (!menus || !menus.length) return null;
return !props.isHorizontal ? (
<SimpleMenu {...menuProps} isSplitMenu={unref(getSplit)} items={menus || []} />
) : isYT() ? (
<BasicMenu1
{...(menuProps as any)}
isHorizontal={props.isHorizontal}
type={unref(getMenuType)}
showLogo={unref(getIsShowLogo)}
mode={unref(getComputedMenuMode as any)}
items={menus || []}
/>
) : (
<BasicMenu2
{...(menuProps as any)}
isHorizontal={props.isHorizontal}
type={unref(getMenuType)}
showLogo={unref(getIsShowLogo)}
mode={unref(getComputedMenuMode as any)}
items={menus || []}
/>
);
) : (<BasicMenu
{...(menuProps as any)}
isHorizontal={props.isHorizontal}
type={unref(getMenuType)}
showLogo={unref(getIsShowLogo)}
mode={unref(getComputedMenuMode as any)}
items={menus || []}
/>);
}
return () => {