Commit 6ca99c4f authored by Jerret321's avatar Jerret321 Committed by baiyaaaaa

disable tab remove when tab disabled (#4042)

* when tab  is disabled, disable remove handle.

* disable remove when tab disabled
parent 9c21be25
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment