style: apply vsh lint formatting (#7923)

This commit is contained in:
leo
2026-05-19 13:40:13 +08:00
committed by GitHub
parent 84e77f64ea
commit d71c81e8ff
20 changed files with 193 additions and 193 deletions

View File

@@ -12,8 +12,11 @@ defineOptions({
name: 'Page',
});
const { autoContentHeight = false, heightOffset = 0, footerFixed = false } =
defineProps<PageProps>();
const {
autoContentHeight = false,
heightOffset = 0,
footerFixed = false,
} = defineProps<PageProps>();
const headerHeight = ref(0);
const footerHeight = ref(0);
@@ -40,7 +43,7 @@ async function calcContentHeight() {
await nextTick();
headerHeight.value = headerRef.value?.offsetHeight || 0;
footerHeight.value = footerFixed ? 0 : (footerRef.value?.offsetHeight || 0);
footerHeight.value = footerFixed ? 0 : footerRef.value?.offsetHeight || 0;
setTimeout(() => {
shouldAutoHeight.value = true;