Explorar o código

Tabs: fixed last TabNav unable to be deleted (#13039)

hetech %!s(int64=6) %!d(string=hai) anos
pai
achega
efcfbdde0f
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      packages/tabs/src/tabs.vue

+ 2 - 0
packages/tabs/src/tabs.vue

@@ -64,6 +64,8 @@
           if (!(panes.length === this.panes.length && panes.every((pane, index) => pane === this.panes[index]))) {
             this.panes = panes;
           }
+        } else if (this.panes.length !== 0) {
+          this.panes = [];
         }
       },
       handleTabClick(tab, tabName, event) {