Skip to content

Commit 6ee7a7d

Browse files
committed
fix: error when dataKey value is 0
1 parent 1cda08b commit 6ee7a7d

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

dist/virtual-list.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*!
2-
* vue-virtual-sortable v3.0.1
2+
* vue-virtual-sortable v3.0.2
33
* open source under the MIT license
4-
* https://github.com/mfuu/vue3-virtual-drag-list#readme
4+
* https://github.com/mfuu/vue3-virtual-sortable#readme
55
*/
66

77
(function (global, factory) {
@@ -899,7 +899,7 @@
899899
return result;
900900
}
901901
function isSameValue(a, b) {
902-
return a == b;
902+
return a === 0 ? a === b : a == b;
903903
}
904904
function getDataKey(item, dataKey) {
905905
return (!Array.isArray(dataKey) ? dataKey.replace(/\[/g, '.').replace(/\]/g, '.').split('.') : dataKey).reduce(function (o, k) {

dist/virtual-list.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-virtual-sortable",
3-
"version": "3.0.1",
3+
"version": "3.0.2",
44
"description": "A virtual scrolling list component that can be sorted by dragging, support vue3",
55
"main": "dist/virtual-list.min.js",
66
"types": "types/index.d.ts",
@@ -9,8 +9,8 @@
99
"types"
1010
],
1111
"scripts": {
12-
"lint": "eslint --fix src --ext .js",
1312
"build": "cross-env mode=production rollup -c rollup.config.js",
13+
"publish": "npm publish --tag=next",
1414
"core:update": "git submodule update --remote",
1515
"docs:dev": "vitepress dev docs",
1616
"docs:build": "vitepress build docs",

src/core

Submodule core updated 1 file

0 commit comments

Comments
 (0)