mirror of
https://git.rape.pet/ulith/amputoma-fe.git
synced 2025-02-08 06:12:39 +01:00
Use Object.entries instead of Object.keys
This commit is contained in:
parent
37eec09b9b
commit
eb22e7f462
2 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ const withLoadMore = ({
|
||||||
on: this.$listeners,
|
on: this.$listeners,
|
||||||
scopedSlots: this.$scopedSlots
|
scopedSlots: this.$scopedSlots
|
||||||
}
|
}
|
||||||
const children = Object.keys(this.$slots).map(slot => createElement('template', { slot }, this.$slots[slot]))
|
const children = Object.entries(this.$slots).map(([key, value]) => createElement('template', { slot: key }, value))
|
||||||
return (
|
return (
|
||||||
<div class="with-load-more">
|
<div class="with-load-more">
|
||||||
<WrappedComponent {...props}>
|
<WrappedComponent {...props}>
|
||||||
|
|
|
@ -27,7 +27,7 @@ const withSubscription = ({
|
||||||
on: this.$listeners,
|
on: this.$listeners,
|
||||||
scopedSlots: this.$scopedSlots
|
scopedSlots: this.$scopedSlots
|
||||||
}
|
}
|
||||||
const children = Object.keys(this.$slots).map(slot => createElement('template', { slot }, this.$slots[slot]))
|
const children = Object.entries(this.$slots).map(([key, value]) => createElement('template', { slot: key }, value))
|
||||||
return (
|
return (
|
||||||
<div class="with-subscription">
|
<div class="with-subscription">
|
||||||
<WrappedComponent {...props}>
|
<WrappedComponent {...props}>
|
||||||
|
|
Loading…
Add table
Reference in a new issue