This commit is contained in:
仲么了
2024-01-15 16:16:29 +08:00
14 changed files with 3029 additions and 59 deletions

View File

@@ -7,7 +7,7 @@ import { useConfig } from '@/stores/config'
* @param extra main高度额外减去的px数,可以实现隐藏原有的滚动条
* @returns CSSProperties
*/
export function mainHeight(extra = 0): CSSProperties {
export function mainHeight(extra = 0,divided =1): CSSProperties {
let height = extra
const adminLayoutMainExtraHeight: anyObj = {
Default: 60,
@@ -21,7 +21,7 @@ export function mainHeight(extra = 0): CSSProperties {
}
return {
height: 'calc(100vh - ' + height.toString() + 'px)'
height: 'calc((100vh - ' + height.toString() + 'px) / '+ divided+')'
}
}