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