pinafore/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 01:54:16 +00:00
if (makeProps) {
let props = await makeProps(key)
this.set({props: props})
}
},
components: {
VirtualListItem
}
}
</script>