Browse Source

优化列表固定宽度功能

Karson 5 years ago
parent
commit
ebb5d34414

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

@@ -291,7 +291,8 @@
         _initHeader.apply(this, Array.prototype.slice.apply(arguments));
         _initHeader.apply(this, Array.prototype.slice.apply(arguments));
         this.$header.find('th[data-field]').each(function (i) {
         this.$header.find('th[data-field]').each(function (i) {
             var column = $(this).data();
             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']);
                 $(this).css("max-width", column['width']);
             }
             }
         });
         });

File diff suppressed because it is too large
+ 16 - 16
public/assets/js/require-backend.min.js


File diff suppressed because it is too large
+ 17 - 17
public/assets/js/require-frontend.min.js