mirror of
https://gitee.com/layui/layui.git
synced 2025-04-05 17:38:02 +08:00
修改 table 一处变量声明,以兼容 ie
This commit is contained in:
parent
be325adb20
commit
3e349823fe
@ -794,7 +794,7 @@ layui.define(['laytpl', 'laypage', 'form', 'util'], function(exports){
|
||||
// 如果表格内容为空(无数据 或 请求异常)
|
||||
if (that.layMain.find('tbody').is(":empty")) {
|
||||
// 将表格宽度设置为跟表头一样的宽度,使之可以出现底部滚动条,以便滚动查看所有字段
|
||||
const headerWidth = that.layHeader.first().children('table').width()
|
||||
var headerWidth = that.layHeader.first().children('table').width()
|
||||
that.layMain.find('table').width(headerWidth);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user