@94ai/nf-search-form 8.0.22 → 8.0.24
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.
|
@@ -559,6 +559,13 @@ __sfc_main$3.setup = (__props, __ctx) => {
|
|
|
559
559
|
var _a2, _b;
|
|
560
560
|
if ((_b = (_a2 = props.itemOptions) == null ? void 0 : _a2.events) == null ? void 0 : _b.keyup) {
|
|
561
561
|
props.itemOptions.events.keyup(event, instance);
|
|
562
|
+
} else if (typeof event === "string") {
|
|
563
|
+
currentVal.value = event.trim();
|
|
564
|
+
}
|
|
565
|
+
};
|
|
566
|
+
const trimInput = (event) => {
|
|
567
|
+
if (typeof event.target.value === "string") {
|
|
568
|
+
event.target.value = event.target.value.trim();
|
|
562
569
|
}
|
|
563
570
|
};
|
|
564
571
|
return {
|
|
@@ -600,7 +607,8 @@ __sfc_main$3.setup = (__props, __ctx) => {
|
|
|
600
607
|
isNumberRange,
|
|
601
608
|
isTransferSelect,
|
|
602
609
|
handleChange,
|
|
603
|
-
handleInput
|
|
610
|
+
handleInput,
|
|
611
|
+
trimInput
|
|
604
612
|
};
|
|
605
613
|
};
|
|
606
614
|
__sfc_main$3.components = Object.assign({
|
|
@@ -663,6 +671,11 @@ var _sfc_render$3 = function render3() {
|
|
|
663
671
|
on: {
|
|
664
672
|
"change": _vm.handleChange
|
|
665
673
|
},
|
|
674
|
+
nativeOn: {
|
|
675
|
+
"input": function($event) {
|
|
676
|
+
return _vm.trimInput.apply(null, arguments);
|
|
677
|
+
}
|
|
678
|
+
},
|
|
666
679
|
model: {
|
|
667
680
|
value: _vm.currentVal,
|
|
668
681
|
callback: function($$v) {
|
|
@@ -679,6 +692,11 @@ var _sfc_render$3 = function render3() {
|
|
|
679
692
|
on: {
|
|
680
693
|
"change": _vm.handleChange
|
|
681
694
|
},
|
|
695
|
+
nativeOn: {
|
|
696
|
+
"input": function($event) {
|
|
697
|
+
return _vm.trimInput.apply(null, arguments);
|
|
698
|
+
}
|
|
699
|
+
},
|
|
682
700
|
model: {
|
|
683
701
|
value: _vm.currentVal,
|
|
684
702
|
callback: function($$v) {
|
|
@@ -8356,7 +8374,7 @@ var _sfc_render = function render6() {
|
|
|
8356
8374
|
"size": _vm.resolveValue(item.size || _vm.size, _vm.nfSearchFormModel),
|
|
8357
8375
|
"round": _vm.resolveValue(item.round || _vm.queryBtnRound, _vm.nfSearchFormModel),
|
|
8358
8376
|
"circle": _vm.resolveValue(item.circle || _vm.queryBtnCircle, _vm.nfSearchFormModel),
|
|
8359
|
-
"loading": _vm.resolveValue(item.loading || _vm.queryBtnLoading, _vm.nfSearchFormModel
|
|
8377
|
+
"loading": _vm.resolveValue(item.loading || _vm.queryBtnLoading, _vm.nfSearchFormModel),
|
|
8360
8378
|
"disabled": _vm.resolveValue(item.disabled || _vm.queryBtnDisabled, _vm.nfSearchFormModel)
|
|
8361
8379
|
},
|
|
8362
8380
|
on: {
|
|
@@ -557,6 +557,13 @@ __sfc_main$3.setup = (__props, __ctx) => {
|
|
|
557
557
|
var _a2, _b;
|
|
558
558
|
if ((_b = (_a2 = props.itemOptions) == null ? void 0 : _a2.events) == null ? void 0 : _b.keyup) {
|
|
559
559
|
props.itemOptions.events.keyup(event, instance);
|
|
560
|
+
} else if (typeof event === "string") {
|
|
561
|
+
currentVal.value = event.trim();
|
|
562
|
+
}
|
|
563
|
+
};
|
|
564
|
+
const trimInput = (event) => {
|
|
565
|
+
if (typeof event.target.value === "string") {
|
|
566
|
+
event.target.value = event.target.value.trim();
|
|
560
567
|
}
|
|
561
568
|
};
|
|
562
569
|
return {
|
|
@@ -598,7 +605,8 @@ __sfc_main$3.setup = (__props, __ctx) => {
|
|
|
598
605
|
isNumberRange,
|
|
599
606
|
isTransferSelect,
|
|
600
607
|
handleChange,
|
|
601
|
-
handleInput
|
|
608
|
+
handleInput,
|
|
609
|
+
trimInput
|
|
602
610
|
};
|
|
603
611
|
};
|
|
604
612
|
__sfc_main$3.components = Object.assign({
|
|
@@ -661,6 +669,11 @@ var _sfc_render$3 = function render3() {
|
|
|
661
669
|
on: {
|
|
662
670
|
"change": _vm.handleChange
|
|
663
671
|
},
|
|
672
|
+
nativeOn: {
|
|
673
|
+
"input": function($event) {
|
|
674
|
+
return _vm.trimInput.apply(null, arguments);
|
|
675
|
+
}
|
|
676
|
+
},
|
|
664
677
|
model: {
|
|
665
678
|
value: _vm.currentVal,
|
|
666
679
|
callback: function($$v) {
|
|
@@ -677,6 +690,11 @@ var _sfc_render$3 = function render3() {
|
|
|
677
690
|
on: {
|
|
678
691
|
"change": _vm.handleChange
|
|
679
692
|
},
|
|
693
|
+
nativeOn: {
|
|
694
|
+
"input": function($event) {
|
|
695
|
+
return _vm.trimInput.apply(null, arguments);
|
|
696
|
+
}
|
|
697
|
+
},
|
|
680
698
|
model: {
|
|
681
699
|
value: _vm.currentVal,
|
|
682
700
|
callback: function($$v) {
|
|
@@ -8354,7 +8372,7 @@ var _sfc_render = function render6() {
|
|
|
8354
8372
|
"size": _vm.resolveValue(item.size || _vm.size, _vm.nfSearchFormModel),
|
|
8355
8373
|
"round": _vm.resolveValue(item.round || _vm.queryBtnRound, _vm.nfSearchFormModel),
|
|
8356
8374
|
"circle": _vm.resolveValue(item.circle || _vm.queryBtnCircle, _vm.nfSearchFormModel),
|
|
8357
|
-
"loading": _vm.resolveValue(item.loading || _vm.queryBtnLoading, _vm.nfSearchFormModel
|
|
8375
|
+
"loading": _vm.resolveValue(item.loading || _vm.queryBtnLoading, _vm.nfSearchFormModel),
|
|
8358
8376
|
"disabled": _vm.resolveValue(item.disabled || _vm.queryBtnDisabled, _vm.nfSearchFormModel)
|
|
8359
8377
|
},
|
|
8360
8378
|
on: {
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
</el-input-number>
|
|
32
32
|
|
|
33
33
|
<nf-virtual-select
|
|
34
|
+
@input.native="trimInput"
|
|
34
35
|
v-if="isSelect"
|
|
35
36
|
:width="width"
|
|
36
37
|
v-model="currentVal"
|
|
@@ -42,6 +43,7 @@
|
|
|
42
43
|
/>
|
|
43
44
|
|
|
44
45
|
<nf-lazy-select
|
|
46
|
+
@input.native="trimInput"
|
|
45
47
|
v-if="isLazySelect"
|
|
46
48
|
:width="width"
|
|
47
49
|
v-model="currentVal"
|
|
@@ -580,7 +582,14 @@ const handleChange = (event) => {
|
|
|
580
582
|
const handleInput = (event) => {
|
|
581
583
|
if (props.itemOptions?.events?.keyup) { // 新增keyup事件
|
|
582
584
|
props.itemOptions.events.keyup(event, instance)
|
|
585
|
+
} else if (typeof event === 'string') {
|
|
586
|
+
currentVal.value = event.trim()
|
|
583
587
|
}
|
|
584
588
|
}
|
|
585
589
|
|
|
590
|
+
const trimInput = (event) => { // 表单类trim左右空格方便复制粘贴
|
|
591
|
+
if (typeof event.target.value === 'string') {
|
|
592
|
+
event.target.value = event.target.value.trim()
|
|
593
|
+
}
|
|
594
|
+
}
|
|
586
595
|
</script>
|
|
@@ -234,7 +234,7 @@
|
|
|
234
234
|
:size="resolveValue(item.size || size, nfSearchFormModel)"
|
|
235
235
|
:round="resolveValue(item.round || queryBtnRound, nfSearchFormModel)"
|
|
236
236
|
:circle="resolveValue(item.circle || queryBtnCircle, nfSearchFormModel)"
|
|
237
|
-
:loading="resolveValue(item.loading || queryBtnLoading, nfSearchFormModel
|
|
237
|
+
:loading="resolveValue(item.loading || queryBtnLoading, nfSearchFormModel)"
|
|
238
238
|
:disabled="resolveValue(item.disabled || queryBtnDisabled, nfSearchFormModel)"
|
|
239
239
|
:class="resolveValue(item.class, nfSearchFormModel)"
|
|
240
240
|
@click="onNfSearchFormClick(item)"
|
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.24",
|
|
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.24",
|
|
18
|
+
"@94ai/common-utils": "^8.0.24",
|
|
19
|
+
"@94ai/nf-button": "^8.0.24",
|
|
20
|
+
"@94ai/nf-double-half-year": "^8.0.24",
|
|
21
|
+
"@94ai/nf-double-quarter": "^8.0.24",
|
|
22
|
+
"@94ai/nf-double-week": "^8.0.24",
|
|
23
|
+
"@94ai/nf-double-year": "^8.0.24",
|
|
24
|
+
"@94ai/nf-drawer": "^8.0.24",
|
|
25
|
+
"@94ai/nf-form": "^8.0.24",
|
|
26
|
+
"@94ai/nf-form-item": "^8.0.24",
|
|
27
|
+
"@94ai/nf-half-year-picker": "^8.0.24",
|
|
28
|
+
"@94ai/nf-lazy-select": "^8.0.24",
|
|
29
|
+
"@94ai/nf-message": "^8.0.24",
|
|
30
|
+
"@94ai/nf-quarter-picker": "^8.0.24",
|
|
31
|
+
"@94ai/nf-theme-chalk": "^8.0.24",
|
|
32
|
+
"@94ai/nf-transfer-select": "^8.0.24",
|
|
33
|
+
"@94ai/nf-virtual-select": "^8.0.24",
|
|
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": "58d8f063bac2c55b8c88b78b7438f01e3c1f89bc"
|
|
54
54
|
}
|