mirror of
https://github.com/youzan/vant.git
synced 2025-10-17 08:37:23 +00:00
fix(Lazyload): lazy-component not work
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user