fix(components): [affix] update logic caused infinite loop (#23599)

* fix(components): [affix] update logic caused infinite loop

* fix: update

* fix: update
This commit is contained in:
btea
2026-02-27 10:54:42 +08:00
committed by GitHub
parent cf6426336f
commit 6ac113696e

View File

@@ -73,6 +73,7 @@ const teleportDisabled = computed(() => {
const rootStyle = computed<CSSProperties>(() => {
return {
display: 'flow-root', // https://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Display/Formatting_contexts#explicitly_creating_a_bfc_using_display_flow-root
height: fixed.value ? `${rootHeight.value}px` : '',
width: fixed.value ? `${rootWidth.value}px` : '',
}