disable tab remove when tab disabled (#4042)

* when tab  is disabled, disable remove handle.

* disable remove when tab disabled
pull/4080/head
Jerret321 2017-04-08 11:38:59 +08:00 committed by baiyaaaaa
parent 9c21be25e7
commit 6ca99c4f8f
1 changed files with 1 additions and 0 deletions

View File

@ -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);