24 lines
513 B
HTML
24 lines
513 B
HTML
{{#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')
|
|
if (makeProps) {
|
|
let props = await makeProps(key)
|
|
this.set({props: props})
|
|
}
|
|
},
|
|
components: {
|
|
VirtualListItem
|
|
}
|
|
}
|
|
</script> |