feat: migrate Tab component

This commit is contained in:
chenjiahan
2020-07-26 15:29:52 +08:00
parent 4ad0c396ef
commit d2291f3710
10 changed files with 97 additions and 88 deletions
+3 -3
View File
@@ -53,11 +53,11 @@ export default createComponent({
},
},
render(h) {
const { slots, parent, isActive } = this;
render() {
const { parent, isActive } = this;
const shouldRender = this.inited || parent.scrollspy || !parent.lazyRender;
const show = parent.scrollspy || isActive;
const Content = shouldRender ? slots() : h();
const Content = shouldRender ? this.$slots.default?.() : null;
if (parent.animated) {
return (