Pre Merge pull request !502 from 半栈幼儿员/preschooler
commit
498478fff9
|
|
@ -36,26 +36,25 @@ provide('reload', reload)
|
||||||
<template>
|
<template>
|
||||||
<section
|
<section
|
||||||
:class="[
|
:class="[
|
||||||
'p-[var(--app-content-padding)] w-[calc(100%-var(--app-content-padding)-var(--app-content-padding))] bg-[var(--app-content-bg-color)] dark:bg-[var(--el-bg-color)]',
|
'p-[var(--app-content-padding)] w-full bg-[var(--app-content-bg-color)] dark:bg-[var(--el-bg-color)]',
|
||||||
{
|
{
|
||||||
'!min-h-[calc(100%-var(--app-content-padding)-var(--app-content-padding)-var(--app-footer-height))]':
|
'!min-h-[calc(100%-var(--app-footer-height))]':
|
||||||
(fixedHeader &&
|
(fixedHeader &&
|
||||||
(layout === 'classic' || layout === 'topLeft' || layout === 'top') &&
|
(layout === 'classic' || layout === 'topLeft' || layout === 'top') &&
|
||||||
footer) ||
|
footer) ||
|
||||||
(!tagsView && layout === 'top' && footer),
|
(!tagsView && layout === 'top' && footer),
|
||||||
'!min-h-[calc(100%-var(--app-content-padding)-var(--app-content-padding)-var(--app-footer-height)-var(--tags-view-height))]':
|
'!min-h-[calc(100%-var(--app-footer-height)-var(--tags-view-height))]':
|
||||||
tagsView && layout === 'top' && footer,
|
tagsView && layout === 'top' && footer,
|
||||||
|
|
||||||
'!min-h-[calc(100%-var(--tags-view-height)-var(--app-content-padding)-var(--app-content-padding)-var(--top-tool-height)-var(--app-footer-height))]':
|
'!min-h-[calc(100%-var(--tags-view-height)-var(--top-tool-height)-var(--app-footer-height))]':
|
||||||
!fixedHeader && layout === 'classic' && footer,
|
!fixedHeader && layout === 'classic' && footer,
|
||||||
|
|
||||||
'!min-h-[calc(100%-var(--tags-view-height)-var(--app-content-padding)-var(--app-content-padding)-var(--app-footer-height))]':
|
'!min-h-[calc(100%-var(--tags-view-height)-var(--app-footer-height))]':
|
||||||
!fixedHeader && layout === 'topLeft' && footer,
|
!fixedHeader && layout === 'topLeft' && footer,
|
||||||
|
|
||||||
'!min-h-[calc(100%-var(--top-tool-height)-var(--app-content-padding)-var(--app-content-padding))]':
|
'!min-h-[calc(100%-var(--top-tool-height))]': fixedHeader && layout === 'cutMenu' && footer,
|
||||||
fixedHeader && layout === 'cutMenu' && footer,
|
|
||||||
|
|
||||||
'!min-h-[calc(100%-var(--top-tool-height)-var(--app-content-padding)-var(--app-content-padding)-var(--tags-view-height))]':
|
'!min-h-[calc(100%-var(--top-tool-height)-var(--tags-view-height))]':
|
||||||
!fixedHeader && layout === 'cutMenu' && footer
|
!fixedHeader && layout === 'cutMenu' && footer
|
||||||
}
|
}
|
||||||
]"
|
]"
|
||||||
|
|
|
||||||
|
|
@ -280,7 +280,7 @@ watch(
|
||||||
</span>
|
</span>
|
||||||
<div class="flex-1 overflow-hidden">
|
<div class="flex-1 overflow-hidden">
|
||||||
<ElScrollbar ref="scrollbarRef" class="h-full" @scroll="scroll">
|
<ElScrollbar ref="scrollbarRef" class="h-full" @scroll="scroll">
|
||||||
<div class="h-full flex">
|
<div class="h-[var(--tags-view-height)] flex">
|
||||||
<ContextMenu
|
<ContextMenu
|
||||||
:ref="itemRefs.set"
|
:ref="itemRefs.set"
|
||||||
:schema="[
|
:schema="[
|
||||||
|
|
@ -515,7 +515,7 @@ $prefix-cls: #{$namespace}-tags-view;
|
||||||
|
|
||||||
&__item {
|
&__item {
|
||||||
position: relative;
|
position: relative;
|
||||||
top: 2px;
|
top: 3px;
|
||||||
height: calc(100% - 6px);
|
height: calc(100% - 6px);
|
||||||
padding-right: 15px;
|
padding-right: 15px;
|
||||||
margin-left: 4px;
|
margin-left: 4px;
|
||||||
|
|
@ -523,6 +523,7 @@ $prefix-cls: #{$namespace}-tags-view;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
border: 1px solid #d9d9d9;
|
border: 1px solid #d9d9d9;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
|
||||||
&--close {
|
&--close {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|
@ -560,10 +561,11 @@ $prefix-cls: #{$namespace}-tags-view;
|
||||||
}
|
}
|
||||||
|
|
||||||
&__item--immerse {
|
&__item--immerse {
|
||||||
top: 3px;
|
top: 2px;
|
||||||
|
height: calc(100% - 3px);
|
||||||
padding-right: 35px;
|
padding-right: 35px;
|
||||||
margin: 0 -10px;
|
margin: 0 -10px;
|
||||||
border: 1px solid transparent;
|
border: none !important;
|
||||||
-webkit-mask-box-image: url("data:image/svg+xml,%3Csvg width='68' height='34' viewBox='0 0 68 34' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='m27,0c-7.99582,0 -11.95105,0.00205 -12,12l0,6c0,8.284 -0.48549,16.49691 -8.76949,16.49691l54.37857,-0.11145c-8.284,0 -8.60908,-8.10146 -8.60908,-16.38546l0,-6c0.11145,-12.08445 -4.38441,-12 -12,-12l-13,0z' fill='%23409eff'/%3E%3C/svg%3E")
|
-webkit-mask-box-image: url("data:image/svg+xml,%3Csvg width='68' height='34' viewBox='0 0 68 34' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='m27,0c-7.99582,0 -11.95105,0.00205 -12,12l0,6c0,8.284 -0.48549,16.49691 -8.76949,16.49691l54.37857,-0.11145c-8.284,0 -8.60908,-8.10146 -8.60908,-16.38546l0,-6c0.11145,-12.08445 -4.38441,-12 -12,-12l-13,0z' fill='%23409eff'/%3E%3C/svg%3E")
|
||||||
12 27 15;
|
12 27 15;
|
||||||
.#{$prefix-cls}__item--label {
|
.#{$prefix-cls}__item--label {
|
||||||
|
|
|
||||||
|
|
@ -126,7 +126,7 @@ export const useRenderLayout = () => {
|
||||||
|
|
||||||
<ToolHeader class="flex-1"></ToolHeader>
|
<ToolHeader class="flex-1"></ToolHeader>
|
||||||
</div>
|
</div>
|
||||||
<div class="absolute left-0 top-[var(--logo-height)+1px] h-[calc(100%-1px-var(--logo-height))] w-full flex">
|
<div class="absolute left-0 top-[var(--logo-height)] h-[calc(100%-var(--logo-height))] w-full flex">
|
||||||
<Menu class="relative layout-border__right !h-full"></Menu>
|
<Menu class="relative layout-border__right !h-full"></Menu>
|
||||||
<div
|
<div
|
||||||
class={[
|
class={[
|
||||||
|
|
@ -157,9 +157,9 @@ export const useRenderLayout = () => {
|
||||||
'layout-border__bottom absolute',
|
'layout-border__bottom absolute',
|
||||||
{
|
{
|
||||||
'!fixed top-0 left-0 z-10': fixedHeader.value,
|
'!fixed top-0 left-0 z-10': fixedHeader.value,
|
||||||
'w-[calc(100%-var(--left-menu-min-width))] !left-[var(--left-menu-min-width)] mt-[calc(var(--logo-height)+1px)]':
|
'w-[calc(100%-var(--left-menu-min-width))] !left-[var(--left-menu-min-width)] mt-[var(--logo-height)]':
|
||||||
collapse.value && fixedHeader.value,
|
collapse.value && fixedHeader.value,
|
||||||
'w-[calc(100%-var(--left-menu-max-width))] !left-[var(--left-menu-max-width)] mt-[calc(var(--logo-height)+1px)]':
|
'w-[calc(100%-var(--left-menu-max-width))] !left-[var(--left-menu-max-width)] mt-[var(--logo-height)]':
|
||||||
!collapse.value && fixedHeader.value
|
!collapse.value && fixedHeader.value
|
||||||
}
|
}
|
||||||
]}
|
]}
|
||||||
|
|
@ -190,24 +190,14 @@ export const useRenderLayout = () => {
|
||||||
<Menu class="h-[var(--top-tool-height)] flex-1 px-10px"></Menu>
|
<Menu class="h-[var(--top-tool-height)] flex-1 px-10px"></Menu>
|
||||||
<ToolHeader></ToolHeader>
|
<ToolHeader></ToolHeader>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div class={[`${prefixCls}-content`, 'w-full h-[calc(100%-var(--top-tool-height))]']}>
|
||||||
class={[
|
|
||||||
`${prefixCls}-content`,
|
|
||||||
'w-full',
|
|
||||||
{
|
|
||||||
'h-[calc(100%-var(--app-footer-height))]': !fixedHeader.value,
|
|
||||||
'h-[calc(100%-var(--tags-view-height)-var(--app-footer-height))]': fixedHeader.value
|
|
||||||
}
|
|
||||||
]}
|
|
||||||
>
|
|
||||||
<ElScrollbar
|
<ElScrollbar
|
||||||
v-loading={pageLoading.value}
|
v-loading={pageLoading.value}
|
||||||
class={[
|
class={[
|
||||||
`${prefixCls}-content-scrollbar`,
|
`${prefixCls}-content-scrollbar`,
|
||||||
{
|
{
|
||||||
'mt-[var(--tags-view-height)] !pb-[calc(var(--tags-view-height)+var(--app-footer-height))]':
|
'!h-[calc(100%-var(--tags-view-height))] mt-[calc(var(--tags-view-height))]':
|
||||||
fixedHeader.value,
|
fixedHeader.value
|
||||||
'pb-[var(--app-footer-height)]': !fixedHeader.value
|
|
||||||
}
|
}
|
||||||
]}
|
]}
|
||||||
>
|
>
|
||||||
|
|
@ -216,7 +206,7 @@ export const useRenderLayout = () => {
|
||||||
class={[
|
class={[
|
||||||
'layout-border__bottom layout-border__top relative',
|
'layout-border__bottom layout-border__top relative',
|
||||||
{
|
{
|
||||||
'!fixed w-full top-[calc(var(--top-tool-height)+1px)] left-0': fixedHeader.value
|
'!fixed w-full top-[var(--top-tool-height)] left-0': fixedHeader.value
|
||||||
}
|
}
|
||||||
]}
|
]}
|
||||||
style="transition: width var(--transition-time-02), left var(--transition-time-02);"
|
style="transition: width var(--transition-time-02), left var(--transition-time-02);"
|
||||||
|
|
@ -238,7 +228,7 @@ export const useRenderLayout = () => {
|
||||||
|
|
||||||
<ToolHeader class="flex-1"></ToolHeader>
|
<ToolHeader class="flex-1"></ToolHeader>
|
||||||
</div>
|
</div>
|
||||||
<div class="absolute left-0 top-[var(--logo-height)] h-[calc(100%-var(--logo-height))] w-[calc(100%-2px)] flex">
|
<div class="absolute left-0 top-[var(--logo-height)] h-[calc(100%-var(--logo-height))] w-full flex">
|
||||||
<TabMenu></TabMenu>
|
<TabMenu></TabMenu>
|
||||||
<div
|
<div
|
||||||
class={[
|
class={[
|
||||||
|
|
|
||||||
|
|
@ -4,14 +4,3 @@
|
||||||
// .dark .dark\:text-color {
|
// .dark .dark\:text-color {
|
||||||
// color: rgba(255, 255, 255, var(--dark-text-color));
|
// color: rgba(255, 255, 255, var(--dark-text-color));
|
||||||
// }
|
// }
|
||||||
|
|
||||||
// 登录页
|
|
||||||
.dark .login-form {
|
|
||||||
.el-divider__text {
|
|
||||||
background-color: var(--login-bg-color);
|
|
||||||
}
|
|
||||||
|
|
||||||
.el-card {
|
|
||||||
background-color: var(--login-bg-color);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
||||||
|
|
@ -64,3 +64,9 @@ body {
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
-moz-osx-font-smoothing: grayscale;
|
-moz-osx-font-smoothing: grayscale;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
* {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -104,3 +104,15 @@ $prefix-cls: #{$namespace}-login;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
<style lang="scss">
|
||||||
|
.dark .login-form {
|
||||||
|
.el-divider__text {
|
||||||
|
background-color: var(--login-bg-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
.el-card {
|
||||||
|
background-color: var(--login-bg-color);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
@ -12,7 +12,7 @@ export default defineConfig({
|
||||||
${selector} {
|
${selector} {
|
||||||
display: flex;
|
display: flex;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
padding: 1px 10px 0;
|
padding: 0 10px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
transition: background var(--transition-time-02);
|
transition: background var(--transition-time-02);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue