mirror of https://github.com/ElemeFE/element
Tabs: fixed last TabNav unable to be deleted (#13039)
parent
edb3c9b785
commit
efcfbdde0f
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue