@94ai/nf-virtual-select 3.3.23 → 3.3.25
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.
|
@@ -382,15 +382,13 @@ const _sfc_main = {
|
|
|
382
382
|
multiple: this.isMultipleSelect,
|
|
383
383
|
options: this.optionsList
|
|
384
384
|
};
|
|
385
|
-
if (obj.
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
};
|
|
391
|
-
}
|
|
392
|
-
delete obj.options;
|
|
385
|
+
if (obj.multiple) {
|
|
386
|
+
obj = {
|
|
387
|
+
"collapse-tags": true,
|
|
388
|
+
...obj
|
|
389
|
+
};
|
|
393
390
|
}
|
|
391
|
+
delete obj.options;
|
|
394
392
|
return obj;
|
|
395
393
|
},
|
|
396
394
|
// 绑定方法
|
|
@@ -615,7 +613,7 @@ var _sfc_render = function render2() {
|
|
|
615
613
|
var _vm = this, _c = _vm._self._c;
|
|
616
614
|
return _c("virtual-select-container", _vm._g({
|
|
617
615
|
ref: "nfVirtualSelectContainer",
|
|
618
|
-
class: ["nf-virtual-select nf-virtual-select-el-select", _vm.bindProps["collapse-tags"] ? "nf-virtual-select-collapse-tags" : ""],
|
|
616
|
+
class: ["nf-virtual-select nf-virtual-select-el-select", _vm.bindProps["collapse-tags"] ? "nf-virtual-select-collapse-tags" : "", _vm.bindProps.multiple && _vm.currentVal.length > 1 ? "nf-virtual-select-select-one-more" : ""],
|
|
619
617
|
attrs: {
|
|
620
618
|
"config": _vm.config,
|
|
621
619
|
"tag": _vm.tag
|
|
@@ -380,15 +380,13 @@ const _sfc_main = {
|
|
|
380
380
|
multiple: this.isMultipleSelect,
|
|
381
381
|
options: this.optionsList
|
|
382
382
|
};
|
|
383
|
-
if (obj.
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
};
|
|
389
|
-
}
|
|
390
|
-
delete obj.options;
|
|
383
|
+
if (obj.multiple) {
|
|
384
|
+
obj = {
|
|
385
|
+
"collapse-tags": true,
|
|
386
|
+
...obj
|
|
387
|
+
};
|
|
391
388
|
}
|
|
389
|
+
delete obj.options;
|
|
392
390
|
return obj;
|
|
393
391
|
},
|
|
394
392
|
// 绑定方法
|
|
@@ -613,7 +611,7 @@ var _sfc_render = function render2() {
|
|
|
613
611
|
var _vm = this, _c = _vm._self._c;
|
|
614
612
|
return _c("virtual-select-container", _vm._g({
|
|
615
613
|
ref: "nfVirtualSelectContainer",
|
|
616
|
-
class: ["nf-virtual-select nf-virtual-select-el-select", _vm.bindProps["collapse-tags"] ? "nf-virtual-select-collapse-tags" : ""],
|
|
614
|
+
class: ["nf-virtual-select nf-virtual-select-el-select", _vm.bindProps["collapse-tags"] ? "nf-virtual-select-collapse-tags" : "", _vm.bindProps.multiple && _vm.currentVal.length > 1 ? "nf-virtual-select-select-one-more" : ""],
|
|
617
615
|
attrs: {
|
|
618
616
|
"config": _vm.config,
|
|
619
617
|
"tag": _vm.tag
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
v-on="bindEvents"
|
|
5
5
|
@visible-change="visibleChange"
|
|
6
6
|
ref="nfVirtualSelectContainer"
|
|
7
|
-
:class="['nf-virtual-select nf-virtual-select-el-select', bindProps['collapse-tags'] ? 'nf-virtual-select-collapse-tags' : '']"
|
|
7
|
+
:class="['nf-virtual-select nf-virtual-select-el-select', bindProps['collapse-tags'] ? 'nf-virtual-select-collapse-tags' : '', bindProps.multiple && currentVal.length > 1 ? 'nf-virtual-select-select-one-more' : '']"
|
|
8
8
|
:config="config"
|
|
9
9
|
:tag="tag"
|
|
10
10
|
>
|
|
@@ -345,15 +345,13 @@ export default {
|
|
|
345
345
|
multiple: this.isMultipleSelect,
|
|
346
346
|
options: this.optionsList
|
|
347
347
|
}
|
|
348
|
-
if (obj.
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
...obj
|
|
353
|
-
}
|
|
348
|
+
if (obj.multiple) {
|
|
349
|
+
obj = {
|
|
350
|
+
'collapse-tags': true,
|
|
351
|
+
...obj
|
|
354
352
|
}
|
|
355
|
-
delete obj.options
|
|
356
353
|
}
|
|
354
|
+
delete obj.options
|
|
357
355
|
return obj
|
|
358
356
|
},
|
|
359
357
|
// 绑定方法
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@94ai/nf-virtual-select",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.25",
|
|
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": "^3.3.
|
|
18
|
-
"@94ai/nf-theme-chalk": "^3.3.
|
|
17
|
+
"@94ai/common-utils": "^3.3.25",
|
|
18
|
+
"@94ai/nf-theme-chalk": "^3.3.25",
|
|
19
19
|
"lodash-es": "^4.17.21",
|
|
20
20
|
"vue-demi": "^0.14.5",
|
|
21
21
|
"vue-virtual-scroll-list": "^2.3.5"
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"types": "lib/index.d.ts",
|
|
34
34
|
"main": "lib/nf-virtual-select.cjs.js",
|
|
35
35
|
"module": "lib/nf-virtual-select.esm-bundler.js",
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "098b43c351cb8caed4fac2c7950bd12cb4585ebb"
|
|
37
37
|
}
|