mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-04-06 03:59:53 +08:00
refactor: 优化layout
This commit is contained in:
commit
d8f327ab44
@ -259,12 +259,12 @@ export default {
|
||||
const currentFixedHeaderRef = computed(
|
||||
() => props.fixedHeader || props.navigation === 'mixin'
|
||||
);
|
||||
const headerStyleRef = computed(() => (currentFixedHeaderRef.value ? { top: `${headerHeightRef.value}px` } : {}));
|
||||
const headerStyleRef = computed(() => (currentFixedHeaderRef.value ? { top: `${headerHeightRef.value}px` } : null));
|
||||
const sideStyleRef = computed(() => (props.fixedSideBar
|
||||
? {
|
||||
left: collapsedRef.value ? '48px' : `${props.sideWidth}px`
|
||||
}
|
||||
: {}));
|
||||
: null));
|
||||
return {
|
||||
headerRef,
|
||||
headerHeightRef,
|
||||
|
Loading…
x
Reference in New Issue
Block a user