mirror of https://github.com/layui/layui
优化 table 隐藏固定列的判断逻辑
parent
235d9fd40f
commit
4ce74ef4e9
|
@ -1728,7 +1728,7 @@ layui.define(['lay', 'laytpl', 'laypage', 'form', 'util'], function(exports){
|
||||||
|
|
||||||
// 表格宽度小于容器宽度时,隐藏固定列
|
// 表格宽度小于容器宽度时,隐藏固定列
|
||||||
that.layFixRight[
|
that.layFixRight[
|
||||||
table.cache[that.key].length && outWidth > 0
|
(table.cache[that.key] && table.cache[that.key].length) && outWidth > 0
|
||||||
? 'removeClass'
|
? 'removeClass'
|
||||||
: 'addClass'
|
: 'addClass'
|
||||||
](HIDE);
|
](HIDE);
|
||||||
|
|
Loading…
Reference in New Issue