made withLoadMore work... sorta

This commit is contained in:
Henry Jameson 2022-03-18 13:32:36 +02:00
parent 26bfbdc2ad
commit b3ed29ff02
5 changed files with 13 additions and 14 deletions

View file

@ -82,14 +82,11 @@ const withLoadMore = ({
},
render () {
const props = {
props: {
...this.$props,
[childPropName]: this.entries
},
on: this.$listeners,
scopedSlots: this.$scopedSlots
...this.$props,
[childPropName]: this.entries
// on: this.$listeners // TODO fix listeners
}
const children = Object.entries(this.$slots).map(([key, value]) => h('template', { slot: key }, value))
const children = this.$slots
return (
<div class="with-load-more">
<WrappedComponent {...props}>