浏览代码

优化列表固定宽度功能

Karson 5 年之前
父节点
当前提交
ebb5d34414

+ 2 - 1
public/assets/js/bootstrap-table-commonsearch.js

@@ -291,7 +291,8 @@
         _initHeader.apply(this, Array.prototype.slice.apply(arguments));
         this.$header.find('th[data-field]').each(function (i) {
             var column = $(this).data();
-            if (typeof column['width'] !== 'undefined') {
+            if (typeof column['width'] !== 'undefined' && column['width'].toString().indexOf("%") === -1) {
+                $(".th-inner", this).outerWidth(column['width']);
                 $(this).css("max-width", column['width']);
             }
         });

文件差异内容过多而无法显示
+ 16 - 16
public/assets/js/require-backend.min.js


文件差异内容过多而无法显示
+ 17 - 17
public/assets/js/require-frontend.min.js