fix: 页面表格容器高度计算优化

This commit is contained in:
ZhuRui
2026-07-27 10:19:45 +08:00
parent 471d868634
commit e238328919
7 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -14,10 +14,10 @@ import { ref, onMounted, onUnmounted, type Ref } from 'vue';
* // </div>
* ```
*
* @param headerOffset 从容器高度中扣除的表头偏移量,默认 45
* @param headerOffset 从容器高度中扣除的表头偏移量,默认 55
*/
export function useContainerSize(options?: { headerOffset?: number }) {
const { headerOffset = 45 } = options ?? {};
const { headerOffset = 55 } = options ?? {};
const containerRef = ref<HTMLElement | null>(null) as Ref<HTMLElement | null>;
const width = ref(0);