Skip to content

Commit 9f37f21

Browse files
committed
Update version
1 parent c0ee3c4 commit 9f37f21

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
{
22
"name": "vue-virtual-scroll-list",
3-
"version": "1.3.4",
3+
"version": "1.3.5",
44
"description": "A vue component support big amount data list with high scroll performance.",
5-
"main": "/dist/index.js",
5+
"main": "./src/index.js",
66
"files": [
7-
"/scr/index.js",
8-
"/dist/index.js"
7+
"./src/index.js"
98
],
109
"scripts": {
1110
"test": "rm -rf coverage && jest",

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,8 +274,8 @@
274274
index = parseInt(index, 10)
275275
index = Math.max(0, index)
276276

277-
var lastStart = delta.total - delta.keeps
278-
var isLast = (index <= delta.total && index >= lastStart) || (index > delta.total)
277+
const lastStart = delta.total - delta.keeps
278+
const isLast = (index <= delta.total && index >= lastStart) || (index > delta.total)
279279
if (isLast) {
280280
end = delta.total - 1
281281
start = Math.max(0, lastStart)

0 commit comments

Comments
 (0)