|
|
@ -8,6 +8,7 @@ import AppView from './AppView.vue' |
|
|
|
import ToolHeader from './ToolHeader.vue' |
|
|
|
import { ElScrollbar } from 'element-plus' |
|
|
|
import { useDesign } from '@/hooks/web/useDesign' |
|
|
|
import RouterSearch from '@/components/RouterSearch/index.vue' |
|
|
|
|
|
|
|
const { getPrefixCls } = useDesign() |
|
|
|
|
|
|
@ -35,6 +36,9 @@ const mobile = computed(() => appStore.getMobile) |
|
|
|
// 固定菜单
|
|
|
|
const fixedMenu = computed(() => appStore.getFixedMenu) |
|
|
|
|
|
|
|
// 搜索图片
|
|
|
|
const search = computed(() => appStore.search) |
|
|
|
|
|
|
|
export const useRenderLayout = () => { |
|
|
|
const renderClassic = () => { |
|
|
|
return ( |
|
|
@ -58,7 +62,18 @@ export const useRenderLayout = () => { |
|
|
|
style="transition: all var(--transition-time-02);" |
|
|
|
></Logo> |
|
|
|
) : undefined} |
|
|
|
<Menu class={[{ '!h-[calc(100%-var(--logo-height))]': logo.value }]}></Menu> |
|
|
|
{/* {search.value && !appStore.getCollapse? (<div class={[ |
|
|
|
prefixCls, |
|
|
|
'h-[var(--top-tool-height)] relative px-[var(--top-tool-p-x)] flex items-center justify-between' |
|
|
|
]}> <RouterSearch class={[ |
|
|
|
'bg-[var(--left-menu-bg-color)] relative', |
|
|
|
{ |
|
|
|
'!pl-0': mobile.value && collapse.value, |
|
|
|
'w-[var(--left-menu-min-width)]': appStore.getCollapse, |
|
|
|
'w-[var(--left-menu-max-width)]': !appStore.getCollapse |
|
|
|
} |
|
|
|
]} isModal={false} /> </div>) : undefined} */} |
|
|
|
<Menu class={[{ '!h-[calc(100% - 50px - var(--logo-height)))]': logo.value }]}></Menu> |
|
|
|
</div> |
|
|
|
<div |
|
|
|
class={[ |
|
|
|