@94ai/nf-virtual-select 3.2.66 → 3.2.67
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.
- package/lib/el-option-node.vue.d.ts +2 -2
- package/lib/index.d.ts +3 -0
- package/lib/nf-virtual-select.cjs.js +6 -1
- package/lib/nf-virtual-select.esm-bundler.js +6 -1
- package/lib/nf-virtual-select.vue.d.ts +1 -0
- package/package/el-option-node.vue +1 -1
- package/package/nf-virtual-select.vue +5 -0
- package/package.json +4 -3
|
@@ -12,7 +12,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
12
12
|
required: true;
|
|
13
13
|
};
|
|
14
14
|
value: {
|
|
15
|
-
type: StringConstructor;
|
|
15
|
+
type: (NumberConstructor | StringConstructor | ArrayConstructor)[];
|
|
16
16
|
required: true;
|
|
17
17
|
};
|
|
18
18
|
showTip: {
|
|
@@ -33,7 +33,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
33
33
|
required: true;
|
|
34
34
|
};
|
|
35
35
|
value: {
|
|
36
|
-
type: StringConstructor;
|
|
36
|
+
type: (NumberConstructor | StringConstructor | ArrayConstructor)[];
|
|
37
37
|
required: true;
|
|
38
38
|
};
|
|
39
39
|
showTip: {
|
package/lib/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PluginObject } from 'vue-demi';
|
|
2
2
|
declare const _default: import("vue/types/v3-component-public-instance").ComponentPublicInstanceConstructor<import("vue/types/v3-component-public-instance").Vue3Instance<{
|
|
3
|
+
refresh: number;
|
|
3
4
|
itemComponent: any;
|
|
4
5
|
selectArr: never[];
|
|
5
6
|
}, Readonly<import("vue-demi").ExtractPropTypes<{
|
|
@@ -485,6 +486,7 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
|
|
|
485
486
|
default: string;
|
|
486
487
|
};
|
|
487
488
|
}>>> & import("vue-demi").ShallowUnwrapRef<{}> & {
|
|
489
|
+
refresh: number;
|
|
488
490
|
itemComponent: any;
|
|
489
491
|
selectArr: never[];
|
|
490
492
|
} & import("vue/types/v3-component-options").ExtractComputedReturns<{
|
|
@@ -796,6 +798,7 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
|
|
|
796
798
|
default: string;
|
|
797
799
|
};
|
|
798
800
|
}>>, {}, {
|
|
801
|
+
refresh: number;
|
|
799
802
|
itemComponent: any;
|
|
800
803
|
selectArr: never[];
|
|
801
804
|
}, {
|
|
@@ -25,7 +25,7 @@ const _sfc_main$1 = {
|
|
|
25
25
|
},
|
|
26
26
|
value: {
|
|
27
27
|
// 绑定的值
|
|
28
|
-
type: String,
|
|
28
|
+
type: [String, Number, Array],
|
|
29
29
|
required: true
|
|
30
30
|
},
|
|
31
31
|
showTip: {
|
|
@@ -269,6 +269,7 @@ const _sfc_main = {
|
|
|
269
269
|
}
|
|
270
270
|
};
|
|
271
271
|
return {
|
|
272
|
+
refresh: Date.now(),
|
|
272
273
|
itemComponent: this.dataComponent ?? ElOption,
|
|
273
274
|
selectArr: []
|
|
274
275
|
};
|
|
@@ -457,6 +458,9 @@ const _sfc_main = {
|
|
|
457
458
|
let interrupt = false;
|
|
458
459
|
if (filterHandler) {
|
|
459
460
|
interrupt = await filterHandler(query);
|
|
461
|
+
if (!interrupt) {
|
|
462
|
+
this.refresh = Date.now();
|
|
463
|
+
}
|
|
460
464
|
}
|
|
461
465
|
if (interrupt) {
|
|
462
466
|
return;
|
|
@@ -542,6 +546,7 @@ var _sfc_render = function render2() {
|
|
|
542
546
|
}), _vm._t("empty", null, {
|
|
543
547
|
"slot": "empty"
|
|
544
548
|
}), _c("virtual-list", {
|
|
549
|
+
key: _vm.refresh,
|
|
545
550
|
ref: "virtualSelectList",
|
|
546
551
|
staticClass: "nf-virtual-select-list",
|
|
547
552
|
style: `max-height: ${_vm.height};min-width: ${_vm.width};max-width: ${_vm.maxWidth};overflow-y: auto;`,
|
|
@@ -23,7 +23,7 @@ const _sfc_main$1 = {
|
|
|
23
23
|
},
|
|
24
24
|
value: {
|
|
25
25
|
// 绑定的值
|
|
26
|
-
type: String,
|
|
26
|
+
type: [String, Number, Array],
|
|
27
27
|
required: true
|
|
28
28
|
},
|
|
29
29
|
showTip: {
|
|
@@ -267,6 +267,7 @@ const _sfc_main = {
|
|
|
267
267
|
}
|
|
268
268
|
};
|
|
269
269
|
return {
|
|
270
|
+
refresh: Date.now(),
|
|
270
271
|
itemComponent: this.dataComponent ?? ElOption,
|
|
271
272
|
selectArr: []
|
|
272
273
|
};
|
|
@@ -455,6 +456,9 @@ const _sfc_main = {
|
|
|
455
456
|
let interrupt = false;
|
|
456
457
|
if (filterHandler) {
|
|
457
458
|
interrupt = await filterHandler(query);
|
|
459
|
+
if (!interrupt) {
|
|
460
|
+
this.refresh = Date.now();
|
|
461
|
+
}
|
|
458
462
|
}
|
|
459
463
|
if (interrupt) {
|
|
460
464
|
return;
|
|
@@ -540,6 +544,7 @@ var _sfc_render = function render2() {
|
|
|
540
544
|
}), _vm._t("empty", null, {
|
|
541
545
|
"slot": "empty"
|
|
542
546
|
}), _c("virtual-list", {
|
|
547
|
+
key: _vm.refresh,
|
|
543
548
|
ref: "virtualSelectList",
|
|
544
549
|
staticClass: "nf-virtual-select-list",
|
|
545
550
|
style: `max-height: ${_vm.height};min-width: ${_vm.width};max-width: ${_vm.maxWidth};overflow-y: auto;`,
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
<slot name="prefix" slot="prefix" />
|
|
16
16
|
<slot name="empty" slot="empty" />
|
|
17
17
|
<virtual-list
|
|
18
|
+
:key="refresh"
|
|
18
19
|
:offset="offset"
|
|
19
20
|
:start="start"
|
|
20
21
|
:page-mode="pageMode"
|
|
@@ -305,6 +306,7 @@ export default {
|
|
|
305
306
|
}
|
|
306
307
|
}
|
|
307
308
|
return {
|
|
309
|
+
refresh: Date.now(),
|
|
308
310
|
itemComponent: this.dataComponent ?? ElOption,
|
|
309
311
|
selectArr: []
|
|
310
312
|
}
|
|
@@ -492,6 +494,9 @@ export default {
|
|
|
492
494
|
let interrupt = false
|
|
493
495
|
if (filterHandler) {
|
|
494
496
|
interrupt = await filterHandler(query)
|
|
497
|
+
if (!interrupt) {
|
|
498
|
+
this.refresh = Date.now()
|
|
499
|
+
}
|
|
495
500
|
}
|
|
496
501
|
if (interrupt) {
|
|
497
502
|
return
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@94ai/nf-virtual-select",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.67",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "DESKTOP-1EDDQ79\\dev026 <liuxiangxiang@94ai.com>",
|
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
"url": "http://94ai.gitlab.com/zoujiahe/common-ui.git"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@94ai/
|
|
17
|
+
"@94ai/common-utils": "^3.2.67",
|
|
18
|
+
"@94ai/nf-theme-chalk": "^3.2.67",
|
|
18
19
|
"lodash-es": "^4.17.21",
|
|
19
20
|
"vue-demi": "^0.14.5",
|
|
20
21
|
"vue-virtual-scroll-list": "^2.3.5"
|
|
@@ -32,5 +33,5 @@
|
|
|
32
33
|
"types": "lib/index.d.ts",
|
|
33
34
|
"main": "lib/nf-virtual-select.cjs.js",
|
|
34
35
|
"module": "lib/nf-virtual-select.esm-bundler.js",
|
|
35
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "8358310d86c4490fff7acb7ba2cf1d7b1230f80d"
|
|
36
37
|
}
|