Explorar el Código

Tabs: fix active bar width when only one tab

Leopoldthecoder hace 7 años
padre
commit
f6ba1efea1
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      packages/tabs/src/tab-bar.vue

+ 1 - 1
packages/tabs/src/tab-bar.vue

@@ -33,7 +33,7 @@
               return true;
             } else {
               tabSize = $el[`client${firstUpperCase(sizeName)}`];
-              if (sizeName === 'width') {
+              if (sizeName === 'width' && this.tabs.length > 1) {
                 tabSize -= (index === 0 || index === this.tabs.length - 1) ? 20 : 40;
               }
               return false;