diff --git a/packages/vant-lazyload/src/lazy-component.js b/packages/vant-lazyload/src/lazy-component.js index c6e9ac4fe..d01683891 100644 --- a/packages/vant-lazyload/src/lazy-component.js +++ b/packages/vant-lazyload/src/lazy-component.js @@ -11,7 +11,11 @@ export default (lazy) => { }, emits: ['show'], render() { - return h(this.tag, null, this.show ? this.$slots.default : null); + return h( + this.tag, + null, + this.show && this.$slots.default ? this.$slots.default() : null + ); }, data() { return {