src/components/chat/chatComponents/summaryCom/components/deviceLastValue/DeviceLastValueCom.vue | ●●●●● 补丁 | 查看 | 原始文档 | 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) /