fix: 页面表格容器高度计算优化
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user