
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
virtual-list-engine
Advanced tools
npm install virtual-list-engine --save
// example.vue
<div class="oa-list" id="oa-list">
<div>
<div
v-for="(item, index) in renderList"
:key="index">
......
</div>
</div>
</div>
<script>
import virtuaListEngine from 'virtual-list-engine'
export default{
data(){
return{
pageOpt: {
pageSize: 15,
pageNo: 1,
},
virtuaListEngine: null,
allList: [],
}
},
...
mounted() {
this.virtuaListEngine = new VirtuaListEngine('#oa-list', this.pageOpt, this.getList)
},
computed: {
pointer() {
return {
start: this.virtuaListEngine ? this.virtuaListEngine.pointer.start : 0,
end: this.virtuaListEngine ? this.virtuaListEngine.pointer.end : 0,
}
},
renderList() {
return this.oaList.slice(this.pointer.start, this.pointer.end)
},
},
method:{
// 列表数据获取方法 pageOpt={pageSize,pageNo}
getList(notice,pageOpt){
...
this.allList = this.allList.concat(data.data.rows)
notice && notice(this.allList.length)
...
},
destroyed() {
this.virtuaListEngine.destroy()
},
}
</script>
{
prev: 0, // 上一代指针的开始指针
start: 0, // 开始指针
end: 10, // 结束指针
next: 0, // 下一代指针的结束指针
}
virtuaListEngine.resetPointer() :将指针移动到初始位置
virtuaListEngine.destroy() :销毁实例的滚动条监听
FAQs
virtualListEngine
We found that virtual-list-engine demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.