1
0
mirror of https://github.com/nolanlawson/pinafore synced 2025-02-11 00:40:39 +01:00

22 lines
519 B
HTML

<div class="pseudo-virtual-list-item"
pseudo-virtual-list-key="{{key}}"
style="height: {{hide ? `${height}px` : ''}};"
ref:node>
{{#if !hide}}
<:Component {component}
virtualProps="{{props}}"
virtualIndex="{{index}}"
virtualLength="{length}}"
/>
{{/if}}
</div>
<script>
export default {
oncreate() {
let intersectionObserver = this.get('intersectionObserver')
intersectionObserver.observe(this.refs.node)
}
}
</script>