feat: 宽度小于 768 时禁止固定表头

This commit is contained in:
Argo Zhang 2020-01-18 21:58:30 +08:00
parent 57170ae810
commit 863eb5ef09
No known key found for this signature in database
GPG Key ID: 152E398953DDF19F
1 changed files with 2 additions and 2 deletions

View File

@ -435,8 +435,8 @@
});
}
// 判断是否固定表头
var fixHeader = this.attr('data-fixedHeader') === '';
// 判断是否固定表头 小屏幕禁止固定表头功能
var fixHeader = this.attr('data-fixedHeader') === '' && $(window).width() >= 768;
var $tabContainer = $(settings.tableContainer);
if (fixHeader && settings.height === undefined) {
var calcPrevHeight = function (element) {