Ver código fonte

Merge pull request #82 from QingWei-Li/master

Table: fix gutter width,  #80, #78
杨奕 9 anos atrás
pai
commit
158c680226
1 arquivos alterados com 2 adições e 8 exclusões
  1. 2 8
      packages/table/src/table-header.js

+ 2 - 8
packages/table/src/table-header.js

@@ -41,14 +41,8 @@ export default {
                           ]
                         }
                       </th>
-                    ).concat(<th
-                              class="gutter"
-                              style={{
-                                width: (this.$parent.showVScrollBar
-                                          ? this.$parent.currentGutterWidth
-                                          : 0
-                                        ) + 'px'
-                              }}>&nbsp;</th>)
+                    ).concat(this.$parent.showVScrollBar && this.$parent.currentGutterWidth ? <th class="gutter"
+                              style={{ width: this.$parent.currentGutterWidth + 'px' }}></th> : '')
                   }
                 </tr>
               </thead>