优化 table 某些情况在 Firefox 的报错问题

pull/1413/head
贤心 2023-10-31 08:28:39 +08:00
parent 8406f4944b
commit 0a6fff466a
1 changed files with 3 additions and 0 deletions

View File

@ -896,6 +896,9 @@ layui.define(['lay', 'laytpl', 'laypage', 'form', 'util'], function(exports){
// 重置表格尺寸/结构
Class.prototype.resize = function(){
var that = this;
if (!that.layMain) return;
that.fullSize(); // 让表格铺满
that.setColsWidth(); // 自适应列宽
that.scrollPatch(); // 滚动条补丁