ソースを参照

Fixed detail view header display error

zhixin 7 年 前
コミット
3df4b98c0f
2 ファイル変更4 行追加2 行削除
  1. 3 1
      src/bootstrap-table.js
  2. 1 1
      src/bootstrap-table.scss

+ 3 - 1
src/bootstrap-table.js

@@ -2238,7 +2238,9 @@
 
         if (this.options.detailView && !this.options.cardView) {
           if (i === 0) {
-            this.$header_.find('th.detail').find('.fht-cell').width($this.innerWidth())
+            const $thDetail = $ths.filter('.detail')
+            const zoomWidth = $thDetail.width() - $thDetail.find('.fht-cell').width()
+            $thDetail.find('.fht-cell').width($this.innerWidth() - zoomWidth)
           }
           index = i - 1
         }

+ 1 - 1
src/bootstrap-table.scss

@@ -139,7 +139,7 @@ $dark-border-color: #32383e;
         }
 
         &.detail {
-          width: 30px;
+          width: 36px;
         }
 
         .th-inner {