Explorar o código

disable tab remove when tab disabled (#4042)

* when tab  is disabled, disable remove handle.

* disable remove when tab disabled
Jerret321 %!s(int64=8) %!d(string=hai) anos
pai
achega
6ca99c4f8f
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      packages/tabs/src/tabs.vue

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

@@ -47,6 +47,7 @@
         this.$emit('tab-click', tab, event);
       },
       handleTabRemove(pane, ev) {
+        if (pane.disabled) return;
         ev.stopPropagation();
         this.$emit('edit', pane.name, 'remove');
         this.$emit('tab-remove', pane.name);