kopia lustrzana https://github.com/nolanlawson/pinafore
31 wiersze
676 B
HTML
31 wiersze
676 B
HTML
{#if props}
|
|
<VirtualListItem {component}
|
|
{offset}
|
|
{props}
|
|
{key}
|
|
{index}
|
|
/>
|
|
{/if}
|
|
<script>
|
|
import VirtualListItem from './VirtualListItem'
|
|
import { mark, stop } from '../../_utils/marks'
|
|
|
|
export default {
|
|
async oncreate () {
|
|
const { makeProps, key } = this.get()
|
|
if (makeProps) {
|
|
const props = await makeProps(key)
|
|
mark('VirtualListLazyItem set props')
|
|
this.set({ props: props })
|
|
stop('VirtualListLazyItem set props')
|
|
}
|
|
},
|
|
data: () => ({
|
|
props: undefined
|
|
}),
|
|
components: {
|
|
VirtualListItem
|
|
}
|
|
}
|
|
</script>
|