22 lines
519 B
HTML
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>
|