2018-01-30 18:38:14 +01:00
|
|
|
<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}}
|
2018-01-30 04:22:28 +01:00
|
|
|
</div>
|
|
|
|
<script>
|
|
|
|
|
|
|
|
export default {
|
|
|
|
oncreate() {
|
2018-01-30 18:38:14 +01:00
|
|
|
let intersectionObserver = this.get('intersectionObserver')
|
|
|
|
intersectionObserver.observe(this.refs.node)
|
2018-01-30 04:22:28 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|