must use h in higher babel-plugin-transform-vue-jsx
This commit is contained in:
parent
d7bc1aff1d
commit
b973ee5915
2 changed files with 4 additions and 4 deletions
|
@ -65,7 +65,7 @@ const withLoadMore = ({
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
render (createElement) {
|
render (h) {
|
||||||
const props = {
|
const props = {
|
||||||
props: {
|
props: {
|
||||||
...this.$props,
|
...this.$props,
|
||||||
|
@ -74,7 +74,7 @@ const withLoadMore = ({
|
||||||
on: this.$listeners,
|
on: this.$listeners,
|
||||||
scopedSlots: this.$scopedSlots
|
scopedSlots: this.$scopedSlots
|
||||||
}
|
}
|
||||||
const children = Object.entries(this.$slots).map(([key, value]) => createElement('template', { slot: key }, value))
|
const children = Object.entries(this.$slots).map(([key, value]) => h('template', { slot: key }, value))
|
||||||
return (
|
return (
|
||||||
<div class="with-load-more">
|
<div class="with-load-more">
|
||||||
<WrappedComponent {...props}>
|
<WrappedComponent {...props}>
|
||||||
|
|
|
@ -49,7 +49,7 @@ const withSubscription = ({
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
render (createElement) {
|
render (h) {
|
||||||
if (!this.error && !this.loading) {
|
if (!this.error && !this.loading) {
|
||||||
const props = {
|
const props = {
|
||||||
props: {
|
props: {
|
||||||
|
@ -59,7 +59,7 @@ const withSubscription = ({
|
||||||
on: this.$listeners,
|
on: this.$listeners,
|
||||||
scopedSlots: this.$scopedSlots
|
scopedSlots: this.$scopedSlots
|
||||||
}
|
}
|
||||||
const children = Object.entries(this.$slots).map(([key, value]) => createElement('template', { slot: key }, value))
|
const children = Object.entries(this.$slots).map(([key, value]) => h('template', { slot: key }, value))
|
||||||
return (
|
return (
|
||||||
<div class="with-subscription">
|
<div class="with-subscription">
|
||||||
<WrappedComponent {...props}>
|
<WrappedComponent {...props}>
|
||||||
|
|
Loading…
Reference in a new issue