Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
vue-long-scroll
Advanced tools
基于vue长列表优化(只3d渲染视窗内元素)。Based on Vue long list optimization (only 3D rendering window elements).
npm i --save vue-long-scroll
import Vue from "vue";
import LongScroll from "vue-long-scroll"
import "vue-long-scroll/lib/vue-long-scroll.css"
<template>
<long-scroll v-model="current" :data="data" :style="{height:'400px'}"></long-scroll>
// or
<long-scroll v-model="current" :data="data" :style="{height:'400px'}">
<template #default="{row}">
{{row.name}}
</template>
</long-scroll>
</template>
<script>
data(){
return {
current:0, // 当前展示的数据第一条索引
data:[] // 数据结构[{name:""}]
}
}
</script>
属性/方法 | 描述 | 默认值 |
---|---|---|
v-model | 当前展示的数据第一条索引 | 0 |
data | 要展示的所有数据 | \ |
current | 当前展示的数据第一条索引 | 0 |
size | 要渲染到Dom的数据条数 | 20 |
valueKey | 行展示默认内容的键 | name |
rowHeight | 每行展示的高度 | 36 |
change | 当前数据改变事件 |
Copyright (c) 2021-present, YangJianFei 1294485765@qq.com
https://github.com/YangJianFei/vue-long-scroll
FAQs
基于vue长列表优化无限滚动(只3d渲染视窗内元素)。Based on Vue long list optimization (only 3D rendering window elements).
The npm package vue-long-scroll receives a total of 2 weekly downloads. As such, vue-long-scroll popularity was classified as not popular.
We found that vue-long-scroll 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.