合并
This commit is contained in:
@@ -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+')'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user