fix:最新
This commit is contained in:
@@ -20,10 +20,13 @@ const props = defineProps<{
|
||||
/** 外部传入时覆盖内部计算(如设备详情页自定义顶部区域) */
|
||||
scrollStyle?: CSSProperties
|
||||
extraBottomPx?: number
|
||||
/** 页面顶部固定区域选择器(导航栏 + 步骤条等),用于计算滚动区高度 */
|
||||
topSelector?: string
|
||||
}>()
|
||||
|
||||
const { scrollStyle: defaultScrollStyle } = usePageScrollHeight({
|
||||
extraBottomPx: props.extraBottomPx ?? 0,
|
||||
topSelector: props.topSelector,
|
||||
})
|
||||
|
||||
const mergedStyle = computed<CSSProperties>(() => props.scrollStyle ?? defaultScrollStyle.value)
|
||||
|
||||
Reference in New Issue
Block a user