1
0
mirror of https://github.com/nolanlawson/pinafore synced 2024-12-13 18:57:02 +01:00
Pinafore-Web-Client-Frontend/routes/_components/virtualList/VirtualListLazyItem.html

24 lines
513 B
HTML
Raw Normal View History

{{#if props}}
<VirtualListItem :component
:offset
:props
:key
:index
/>
{{/if}}
<script>
import VirtualListItem from './VirtualListItem'
export default {
async oncreate() {
let makeProps = this.get('makeProps')
let key = this.get('key')
2018-02-24 02:54:16 +01:00
if (makeProps) {
let props = await makeProps(key)
this.set({props: props})
}
},
components: {
VirtualListItem
}
}
</script>