2018-01-24 03:15:14 +01:00
|
|
|
{{#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})
|
|
|
|
}
|
2018-01-24 03:15:14 +01:00
|
|
|
},
|
|
|
|
components: {
|
|
|
|
VirtualListItem
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|