Quellcode durchsuchen

左右冻结列同时启用显示问题

RuoYi vor 6 Jahren
Ursprung
Commit
0145494497

+ 3 - 1
ruoyi-admin/src/main/resources/static/ajax/libs/bootstrap-table/extensions/columns/bootstrap-table-fixed-columns.js

@@ -44,11 +44,13 @@
                 '<tbody style="background-color: #fff;"></tbody>',
                 '</table>',
                 '</div>'].join(''));
-
             this.$rightfixedBody.find('table').attr('class', this.$el.attr('class'));
             this.$rightfixedHeaderColumns = this.$rightfixedBody.find('thead');
             this.$rightfixedBodyColumns = this.$rightfixedBody.find('tbody');
             this.$tableBody.before(this.$rightfixedBody);
+            if (this.options.fixedColumns) {
+                $('.right-fixed-table-columns').attr('style','right:0px');
+            }
         }
     };