调整导览楼层切换布局

This commit is contained in:
lyf
2026-06-29 21:21:56 +08:00
parent 93bd1ddab3
commit d0367289ca
2 changed files with 12 additions and 14 deletions

View File

@@ -282,6 +282,7 @@ const props = withDefaults(defineProps<{
layerMode?: LayerDisplayMode
searchTop?: string
floorTop?: string
floorBottom?: string
floorMaxHeight?: string
layerModeToggleTop?: string
toolsTop?: string
@@ -330,6 +331,7 @@ const props = withDefaults(defineProps<{
layerMode: 'single',
searchTop: '16px',
floorTop: '164px',
floorBottom: '',
floorMaxHeight: '',
layerModeToggleTop: '154px',
toolsTop: '406px',
@@ -439,7 +441,7 @@ const searchFieldStyle = computed(() => ({
}))
const floorSwitcherStyle = computed(() => ({
top: props.floorTop,
...(props.floorBottom ? { bottom: props.floorBottom } : { top: props.floorTop }),
...(props.floorMaxHeight ? { maxHeight: props.floorMaxHeight } : {})
}))