mirror of
https://gitee.com/layui/layui.git
synced 2025-10-27 11:19:13 +08:00
修改 table 一处变量声明,以兼容 ie
This commit is contained in:
@@ -794,7 +794,7 @@ layui.define(['laytpl', 'laypage', 'form', 'util'], function(exports){
|
|||||||
// 如果表格内容为空(无数据 或 请求异常)
|
// 如果表格内容为空(无数据 或 请求异常)
|
||||||
if (that.layMain.find('tbody').is(":empty")) {
|
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);
|
that.layMain.find('table').width(headerWidth);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user