@94ai/nf-search-form 8.0.17 → 8.0.20
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.
|
@@ -557,16 +557,8 @@ __sfc_main$3.setup = (__props, __ctx) => {
|
|
|
557
557
|
};
|
|
558
558
|
const handleInput = (event) => {
|
|
559
559
|
var _a2, _b;
|
|
560
|
-
if (typeof event === "string") {
|
|
561
|
-
currentVal.value = event.trim();
|
|
562
|
-
}
|
|
563
560
|
if ((_b = (_a2 = props.itemOptions) == null ? void 0 : _a2.events) == null ? void 0 : _b.keyup) {
|
|
564
|
-
props.itemOptions.events.keyup(
|
|
565
|
-
}
|
|
566
|
-
};
|
|
567
|
-
const trimInput = (event) => {
|
|
568
|
-
if (typeof event.target.value === "string") {
|
|
569
|
-
event.target.value = event.target.value.trim();
|
|
561
|
+
props.itemOptions.events.keyup(event, instance);
|
|
570
562
|
}
|
|
571
563
|
};
|
|
572
564
|
return {
|
|
@@ -608,8 +600,7 @@ __sfc_main$3.setup = (__props, __ctx) => {
|
|
|
608
600
|
isNumberRange,
|
|
609
601
|
isTransferSelect,
|
|
610
602
|
handleChange,
|
|
611
|
-
handleInput
|
|
612
|
-
trimInput
|
|
603
|
+
handleInput
|
|
613
604
|
};
|
|
614
605
|
};
|
|
615
606
|
__sfc_main$3.components = Object.assign({
|
|
@@ -672,11 +663,6 @@ var _sfc_render$3 = function render3() {
|
|
|
672
663
|
on: {
|
|
673
664
|
"change": _vm.handleChange
|
|
674
665
|
},
|
|
675
|
-
nativeOn: {
|
|
676
|
-
"input": function($event) {
|
|
677
|
-
return _vm.trimInput.apply(null, arguments);
|
|
678
|
-
}
|
|
679
|
-
},
|
|
680
666
|
model: {
|
|
681
667
|
value: _vm.currentVal,
|
|
682
668
|
callback: function($$v) {
|
|
@@ -693,11 +679,6 @@ var _sfc_render$3 = function render3() {
|
|
|
693
679
|
on: {
|
|
694
680
|
"change": _vm.handleChange
|
|
695
681
|
},
|
|
696
|
-
nativeOn: {
|
|
697
|
-
"input": function($event) {
|
|
698
|
-
return _vm.trimInput.apply(null, arguments);
|
|
699
|
-
}
|
|
700
|
-
},
|
|
701
682
|
model: {
|
|
702
683
|
value: _vm.currentVal,
|
|
703
684
|
callback: function($$v) {
|
|
@@ -555,16 +555,8 @@ __sfc_main$3.setup = (__props, __ctx) => {
|
|
|
555
555
|
};
|
|
556
556
|
const handleInput = (event) => {
|
|
557
557
|
var _a2, _b;
|
|
558
|
-
if (typeof event === "string") {
|
|
559
|
-
currentVal.value = event.trim();
|
|
560
|
-
}
|
|
561
558
|
if ((_b = (_a2 = props.itemOptions) == null ? void 0 : _a2.events) == null ? void 0 : _b.keyup) {
|
|
562
|
-
props.itemOptions.events.keyup(
|
|
563
|
-
}
|
|
564
|
-
};
|
|
565
|
-
const trimInput = (event) => {
|
|
566
|
-
if (typeof event.target.value === "string") {
|
|
567
|
-
event.target.value = event.target.value.trim();
|
|
559
|
+
props.itemOptions.events.keyup(event, instance);
|
|
568
560
|
}
|
|
569
561
|
};
|
|
570
562
|
return {
|
|
@@ -606,8 +598,7 @@ __sfc_main$3.setup = (__props, __ctx) => {
|
|
|
606
598
|
isNumberRange,
|
|
607
599
|
isTransferSelect,
|
|
608
600
|
handleChange,
|
|
609
|
-
handleInput
|
|
610
|
-
trimInput
|
|
601
|
+
handleInput
|
|
611
602
|
};
|
|
612
603
|
};
|
|
613
604
|
__sfc_main$3.components = Object.assign({
|
|
@@ -670,11 +661,6 @@ var _sfc_render$3 = function render3() {
|
|
|
670
661
|
on: {
|
|
671
662
|
"change": _vm.handleChange
|
|
672
663
|
},
|
|
673
|
-
nativeOn: {
|
|
674
|
-
"input": function($event) {
|
|
675
|
-
return _vm.trimInput.apply(null, arguments);
|
|
676
|
-
}
|
|
677
|
-
},
|
|
678
664
|
model: {
|
|
679
665
|
value: _vm.currentVal,
|
|
680
666
|
callback: function($$v) {
|
|
@@ -691,11 +677,6 @@ var _sfc_render$3 = function render3() {
|
|
|
691
677
|
on: {
|
|
692
678
|
"change": _vm.handleChange
|
|
693
679
|
},
|
|
694
|
-
nativeOn: {
|
|
695
|
-
"input": function($event) {
|
|
696
|
-
return _vm.trimInput.apply(null, arguments);
|
|
697
|
-
}
|
|
698
|
-
},
|
|
699
680
|
model: {
|
|
700
681
|
value: _vm.currentVal,
|
|
701
682
|
callback: function($$v) {
|
|
@@ -31,7 +31,6 @@
|
|
|
31
31
|
</el-input-number>
|
|
32
32
|
|
|
33
33
|
<nf-virtual-select
|
|
34
|
-
@input.native="trimInput"
|
|
35
34
|
v-if="isSelect"
|
|
36
35
|
:width="width"
|
|
37
36
|
v-model="currentVal"
|
|
@@ -43,7 +42,6 @@
|
|
|
43
42
|
/>
|
|
44
43
|
|
|
45
44
|
<nf-lazy-select
|
|
46
|
-
@input.native="trimInput"
|
|
47
45
|
v-if="isLazySelect"
|
|
48
46
|
:width="width"
|
|
49
47
|
v-model="currentVal"
|
|
@@ -580,17 +578,8 @@ const handleChange = (event) => {
|
|
|
580
578
|
}
|
|
581
579
|
}
|
|
582
580
|
const handleInput = (event) => {
|
|
583
|
-
if (typeof event === 'string') {
|
|
584
|
-
currentVal.value = event.trim()
|
|
585
|
-
}
|
|
586
581
|
if (props.itemOptions?.events?.keyup) { // 新增keyup事件
|
|
587
|
-
props.itemOptions.events.keyup(
|
|
588
|
-
}
|
|
589
|
-
}
|
|
590
|
-
|
|
591
|
-
const trimInput = (event) => { // 表单类trim左右空格方便复制粘贴
|
|
592
|
-
if (typeof event.target.value === 'string') {
|
|
593
|
-
event.target.value = event.target.value.trim()
|
|
582
|
+
props.itemOptions.events.keyup(event, instance)
|
|
594
583
|
}
|
|
595
584
|
}
|
|
596
585
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@94ai/nf-search-form",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.20",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "zoujiahe <zoujiahe@94ai.com>",
|
|
@@ -14,23 +14,23 @@
|
|
|
14
14
|
"url": "http://94ai.gitlab.com/zoujiahe/common-ui.git"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@94ai/common-constants": "^8.0.
|
|
18
|
-
"@94ai/common-utils": "^8.0.
|
|
19
|
-
"@94ai/nf-button": "^8.0.
|
|
20
|
-
"@94ai/nf-double-half-year": "^8.0.
|
|
21
|
-
"@94ai/nf-double-quarter": "^8.0.
|
|
22
|
-
"@94ai/nf-double-week": "^8.0.
|
|
23
|
-
"@94ai/nf-double-year": "^8.0.
|
|
24
|
-
"@94ai/nf-drawer": "^8.0.
|
|
25
|
-
"@94ai/nf-form": "^8.0.
|
|
26
|
-
"@94ai/nf-form-item": "^8.0.
|
|
27
|
-
"@94ai/nf-half-year-picker": "^8.0.
|
|
28
|
-
"@94ai/nf-lazy-select": "^8.0.
|
|
29
|
-
"@94ai/nf-message": "^8.0.
|
|
30
|
-
"@94ai/nf-quarter-picker": "^8.0.
|
|
31
|
-
"@94ai/nf-theme-chalk": "^8.0.
|
|
32
|
-
"@94ai/nf-transfer-select": "^8.0.
|
|
33
|
-
"@94ai/nf-virtual-select": "^8.0.
|
|
17
|
+
"@94ai/common-constants": "^8.0.20",
|
|
18
|
+
"@94ai/common-utils": "^8.0.20",
|
|
19
|
+
"@94ai/nf-button": "^8.0.20",
|
|
20
|
+
"@94ai/nf-double-half-year": "^8.0.20",
|
|
21
|
+
"@94ai/nf-double-quarter": "^8.0.20",
|
|
22
|
+
"@94ai/nf-double-week": "^8.0.20",
|
|
23
|
+
"@94ai/nf-double-year": "^8.0.20",
|
|
24
|
+
"@94ai/nf-drawer": "^8.0.20",
|
|
25
|
+
"@94ai/nf-form": "^8.0.20",
|
|
26
|
+
"@94ai/nf-form-item": "^8.0.20",
|
|
27
|
+
"@94ai/nf-half-year-picker": "^8.0.20",
|
|
28
|
+
"@94ai/nf-lazy-select": "^8.0.20",
|
|
29
|
+
"@94ai/nf-message": "^8.0.20",
|
|
30
|
+
"@94ai/nf-quarter-picker": "^8.0.20",
|
|
31
|
+
"@94ai/nf-theme-chalk": "^8.0.20",
|
|
32
|
+
"@94ai/nf-transfer-select": "^8.0.20",
|
|
33
|
+
"@94ai/nf-virtual-select": "^8.0.20",
|
|
34
34
|
"idb-keyval": "^6.2.1",
|
|
35
35
|
"resize-observer-polyfill": "^1.5.1",
|
|
36
36
|
"vue-demi": "^0.14.5",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"types": "lib/index.d.ts",
|
|
51
51
|
"main": "lib/nf-search-form.cjs.js",
|
|
52
52
|
"module": "lib/nf-search-form.esm-bundler.js",
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "36fdf69b81d00748678d9ec73a2ffa7214990b83"
|
|
54
54
|
}
|