@94ai/nf-virtual-select 8.3.7 → 8.3.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2835,7 +2835,7 @@ const _sfc_main = {
|
|
|
2835
2835
|
const multiple_elements = selectArr.filter((item) => this.currentVal.includes(item[this.keyValue[1]]));
|
|
2836
2836
|
selectArr = [...multiple_elements, ...selectArr.filter((item) => !multiple_elements.includes(item))];
|
|
2837
2837
|
} else {
|
|
2838
|
-
const index2 = selectArr.findIndex((item) => item.
|
|
2838
|
+
const index2 = selectArr.findIndex((item) => item[this.keyValue[1]] === this.currentVal);
|
|
2839
2839
|
if (index2 !== -1) {
|
|
2840
2840
|
const obj = selectArr.splice(index2, 1)[0];
|
|
2841
2841
|
selectArr.unshift(obj);
|
|
@@ -2833,7 +2833,7 @@ const _sfc_main = {
|
|
|
2833
2833
|
const multiple_elements = selectArr.filter((item) => this.currentVal.includes(item[this.keyValue[1]]));
|
|
2834
2834
|
selectArr = [...multiple_elements, ...selectArr.filter((item) => !multiple_elements.includes(item))];
|
|
2835
2835
|
} else {
|
|
2836
|
-
const index2 = selectArr.findIndex((item) => item.
|
|
2836
|
+
const index2 = selectArr.findIndex((item) => item[this.keyValue[1]] === this.currentVal);
|
|
2837
2837
|
if (index2 !== -1) {
|
|
2838
2838
|
const obj = selectArr.splice(index2, 1)[0];
|
|
2839
2839
|
selectArr.unshift(obj);
|
|
@@ -570,7 +570,7 @@ export default {
|
|
|
570
570
|
selectArr = [...multiple_elements, ...selectArr.filter(item => !multiple_elements.includes(item))]
|
|
571
571
|
} else {
|
|
572
572
|
// 单选
|
|
573
|
-
const index = selectArr.findIndex(item => item.
|
|
573
|
+
const index = selectArr.findIndex(item => item[this.keyValue[1]] === this.currentVal)
|
|
574
574
|
if (index !== -1) {
|
|
575
575
|
const obj = selectArr.splice(index, 1)[0]
|
|
576
576
|
selectArr.unshift(obj)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@94ai/nf-virtual-select",
|
|
3
|
-
"version": "8.3.
|
|
3
|
+
"version": "8.3.10",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "zoujiahe <zoujiahe@94ai.com>,DESKTOP-1EDDQ79\\dev026 <liuxiangxiang@94ai.com>",
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"url": "http://94ai.gitlab.com/zoujiahe/common-ui.git"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@94ai/common-utils": "^8.3.
|
|
18
|
-
"@94ai/nf-theme-chalk": "^8.3.
|
|
17
|
+
"@94ai/common-utils": "^8.3.10",
|
|
18
|
+
"@94ai/nf-theme-chalk": "^8.3.10",
|
|
19
19
|
"lodash-es": "^4.17.21",
|
|
20
20
|
"sortablejs": "^1.15.3",
|
|
21
21
|
"vue-demi": "^0.14.5",
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"types": "lib/index.d.ts",
|
|
35
35
|
"main": "lib/nf-virtual-select.cjs.js",
|
|
36
36
|
"module": "lib/nf-virtual-select.esm-bundler.js",
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "6affefa4036fd77f4cf3ade94993077481835bd1"
|
|
38
38
|
}
|