[bugfix] Tab: may cause error when render title slot (#3631)

This commit is contained in:
neverland
2019-06-25 16:29:28 +08:00
committed by GitHub
parent fbd751a641
commit 51105f4194
3 changed files with 103 additions and 117 deletions
+2 -1
View File
@@ -318,7 +318,8 @@ export default sfc({
renderTitle(el, index) {
this.$nextTick(() => {
const title = this.$refs.title[index];
title.parentNode.replaceChild(el, title);
title.innerHTML = '';
title.appendChild(el);
});
},