wujingjing
2024-09-28 4f370d449a9cce09e665da664051c5443bc8f235
height<100
已修改1个文件
6 ■■■■■ 文件已修改
src/components/chat/chatComponents/summaryCom/components/deviceLastValue/DeviceLastValueCom.vue 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/chat/chatComponents/summaryCom/components/deviceLastValue/DeviceLastValueCom.vue
@@ -176,9 +176,15 @@
};
let maxColsNum = ref<number>(null);
const resizeEvent = ({ width, height }) => {
    if (width === 0 || height === 0) {
        return;
    }
    // 刷新时,重新打开, height可能太小
    if(height<100){
        height = 0.7 * document.body.clientHeight
    }
    // 按最大宽度算最大列数
    maxColsNum.value = Math.floor(
        (width - THICK_BORDER_WIDTH + colHeaderCellContentWidth.value - rowHeaderCellContentWidth.value) /