Browse Source

fix(table): 修复 table 在 Firefox 中偶现行闪烁的问题 (#2260)

2.x
morning-star 1 month ago committed by GitHub
parent
commit
6fb41478a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      src/css/layui.css
  2. 2
      src/modules/table.js

3
src/css/layui.css

@ -1081,8 +1081,7 @@ hr.layui-border-black{border-width: 0 0 1px;}
.layui-table-view .layui-form-checkbox[lay-skin="primary"] i{width: 18px; height: 18px; line-height: 16px;}
.layui-table-view .layui-form-radio{line-height: 0; padding: 0;}
.layui-table-view .layui-form-radio>i{margin: 0; font-size: 20px;}
.layui-table-init{position: absolute; left: 0; top: 0; right: 0; bottom: 0; margin: 0; z-index: 199; transition: opacity .1s; user-select: none; opacity: 1;}
.layui-table-init.layui-hide-v{opacity: 0;}
.layui-table-init{position: absolute; left: 0; top: 0; right: 0; bottom: 0; margin: 0; z-index: 199; transition: opacity .1s; user-select: none;}
.layui-table-loading-icon{position: absolute; width: 100%\0; left: 50%; left:auto\0; top: 50%; margin-top: -15px\0; transform: translate(-50%, -50%); transform: none\0; text-align: center;}
.layui-table-loading-icon .layui-icon{font-size: 30px; color: #c2c2c2;}
.layui-table-header{border-width: 0; border-bottom-width: 1px; overflow: hidden;}

2
src/modules/table.js

@ -1927,7 +1927,7 @@ layui.define(['lay', 'laytpl', 'laypage', 'form', 'util'], function(exports){
var options = that.config;
if(options.loading){
that.layBox.find(ELEM_INIT).toggleClass(HIDE_V, !show);
that.layBox.find(ELEM_INIT).toggleClass(HIDE, !show);
}
};

Loading…
Cancel
Save