@94ai/nf-search-form 8.0.21 → 8.0.23
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/nf-search-form.cjs.js +99 -81
- package/lib/nf-search-form.esm-bundler.js +99 -81
- package/package/nf-search-form-item.vue +9 -0
- package/package/nf-search-form.vue +80 -80
- package/package.json +19 -19
|
@@ -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) {
|
|
@@ -8196,16 +8214,16 @@ var _sfc_render = function render6() {
|
|
|
8196
8214
|
var _a, _b, _c2;
|
|
8197
8215
|
return [((_a = item.btnType) == null ? void 0 : _a.includes("search")) ? _c("nf-button", {
|
|
8198
8216
|
key: "btn-" + idx,
|
|
8199
|
-
class: (_vm.queryBtnClass || "") + " nf-btn-search",
|
|
8217
|
+
class: (_vm.resolveValue(_vm.queryBtnClass, _vm.nfSearchFormModel) || "") + " nf-btn-search",
|
|
8200
8218
|
attrs: {
|
|
8201
|
-
"type": _vm.queryBtnType,
|
|
8202
|
-
"icon": _vm.queryBtnIcon,
|
|
8203
|
-
"plain": _vm.queryBtnPlain,
|
|
8204
|
-
"size": _vm.queryBtnSize || _vm.size,
|
|
8205
|
-
"round": _vm.queryBtnRound,
|
|
8206
|
-
"circle": _vm.queryBtnCircle,
|
|
8207
|
-
"loading": _vm.queryBtnLoading,
|
|
8208
|
-
"disabled": _vm.queryBtnDisabled
|
|
8219
|
+
"type": _vm.resolveValue(_vm.queryBtnType, _vm.nfSearchFormModel),
|
|
8220
|
+
"icon": _vm.resolveValue(_vm.queryBtnIcon, _vm.nfSearchFormModel),
|
|
8221
|
+
"plain": _vm.resolveValue(_vm.queryBtnPlain, _vm.nfSearchFormModel),
|
|
8222
|
+
"size": _vm.resolveValue(_vm.queryBtnSize || _vm.size, _vm.nfSearchFormModel),
|
|
8223
|
+
"round": _vm.resolveValue(_vm.queryBtnRound, _vm.nfSearchFormModel),
|
|
8224
|
+
"circle": _vm.resolveValue(_vm.queryBtnCircle, _vm.nfSearchFormModel),
|
|
8225
|
+
"loading": _vm.resolveValue(_vm.queryBtnLoading, _vm.nfSearchFormModel),
|
|
8226
|
+
"disabled": _vm.resolveValue(_vm.queryBtnDisabled, _vm.nfSearchFormModel)
|
|
8209
8227
|
},
|
|
8210
8228
|
on: {
|
|
8211
8229
|
"click": () => {
|
|
@@ -8213,18 +8231,18 @@ var _sfc_render = function render6() {
|
|
|
8213
8231
|
_vm.onNfSearchFormClick(item);
|
|
8214
8232
|
}
|
|
8215
8233
|
}
|
|
8216
|
-
}, [_vm._v(_vm._s(item.name || _vm.queryBtnText) + " ")]) : ((_b = item.btnType) == null ? void 0 : _b.includes("export")) ? _c("nf-button", {
|
|
8234
|
+
}, [_vm._v(_vm._s(_vm.resolveValue(item.name || _vm.queryBtnText, _vm.nfSearchFormModel)) + " ")]) : ((_b = item.btnType) == null ? void 0 : _b.includes("export")) ? _c("nf-button", {
|
|
8217
8235
|
key: "btn-" + idx,
|
|
8218
|
-
class: (_vm.exportBtnClass || "") + " nf-btn-export",
|
|
8236
|
+
class: (_vm.resolveValue(_vm.exportBtnClass, _vm.nfSearchFormModel) || "") + " nf-btn-export",
|
|
8219
8237
|
attrs: {
|
|
8220
|
-
"type": _vm.exportBtnType,
|
|
8221
|
-
"icon": _vm.exportBtnIcon,
|
|
8222
|
-
"plain": _vm.exportBtnPlain,
|
|
8223
|
-
"size": _vm.exportBtnSize || _vm.size,
|
|
8224
|
-
"round": _vm.exportBtnRound,
|
|
8225
|
-
"circle": _vm.exportBtnCircle,
|
|
8226
|
-
"loading": _vm.exportBtnLoading,
|
|
8227
|
-
"disabled": _vm.exportBtnDisabled
|
|
8238
|
+
"type": _vm.resolveValue(_vm.exportBtnType, _vm.nfSearchFormModel),
|
|
8239
|
+
"icon": _vm.resolveValue(_vm.exportBtnIcon, _vm.nfSearchFormModel),
|
|
8240
|
+
"plain": _vm.resolveValue(_vm.exportBtnPlain, _vm.nfSearchFormModel),
|
|
8241
|
+
"size": _vm.resolveValue(_vm.exportBtnSize || _vm.size, _vm.nfSearchFormModel),
|
|
8242
|
+
"round": _vm.resolveValue(_vm.exportBtnRound, _vm.nfSearchFormModel),
|
|
8243
|
+
"circle": _vm.resolveValue(_vm.exportBtnCircle, _vm.nfSearchFormModel),
|
|
8244
|
+
"loading": _vm.resolveValue(_vm.exportBtnLoading, _vm.nfSearchFormModel),
|
|
8245
|
+
"disabled": _vm.resolveValue(_vm.exportBtnDisabled, _vm.nfSearchFormModel)
|
|
8228
8246
|
},
|
|
8229
8247
|
on: {
|
|
8230
8248
|
"click": () => {
|
|
@@ -8232,41 +8250,41 @@ var _sfc_render = function render6() {
|
|
|
8232
8250
|
_vm.onNfSearchFormClick(item);
|
|
8233
8251
|
}
|
|
8234
8252
|
}
|
|
8235
|
-
}, [_vm._v(_vm._s(item.name || _vm.exportBtnText) + " ")]) : ((_c2 = item.btnType) == null ? void 0 : _c2.includes("reset")) ? _c("nf-button", {
|
|
8253
|
+
}, [_vm._v(_vm._s(_vm.resolveValue(item.name || _vm.exportBtnText, _vm.nfSearchFormModel)) + " ")]) : ((_c2 = item.btnType) == null ? void 0 : _c2.includes("reset")) ? _c("nf-button", {
|
|
8236
8254
|
key: "btn-" + idx,
|
|
8237
|
-
class: (_vm.resetBtnClass || "") + " nf-btn-reset",
|
|
8255
|
+
class: (_vm.resolveValue(_vm.resetBtnClass, _vm.nfSearchFormModel) || "") + " nf-btn-reset",
|
|
8238
8256
|
attrs: {
|
|
8239
|
-
"type": _vm.resetBtnType,
|
|
8240
|
-
"icon": _vm.resetBtnIcon,
|
|
8241
|
-
"plain": _vm.resetBtnPlain,
|
|
8242
|
-
"size": _vm.resetBtnSize || _vm.size,
|
|
8243
|
-
"round": _vm.resetBtnRound,
|
|
8244
|
-
"circle": _vm.resetBtnCircle,
|
|
8245
|
-
"loading": _vm.resetBtnLoading,
|
|
8246
|
-
"disabled": _vm.resetBtnDisabled
|
|
8257
|
+
"type": _vm.resolveValue(_vm.resetBtnType, _vm.nfSearchFormModel),
|
|
8258
|
+
"icon": _vm.resolveValue(_vm.resetBtnIcon, _vm.nfSearchFormModel),
|
|
8259
|
+
"plain": _vm.resolveValue(_vm.resetBtnPlain, _vm.nfSearchFormModel),
|
|
8260
|
+
"size": _vm.resolveValue(_vm.resetBtnSize || _vm.size, _vm.nfSearchFormModel),
|
|
8261
|
+
"round": _vm.resolveValue(_vm.resetBtnRound, _vm.nfSearchFormModel),
|
|
8262
|
+
"circle": _vm.resolveValue(_vm.resetBtnCircle, _vm.nfSearchFormModel),
|
|
8263
|
+
"loading": _vm.resolveValue(_vm.resetBtnLoading, _vm.nfSearchFormModel),
|
|
8264
|
+
"disabled": _vm.resolveValue(_vm.resetBtnDisabled, _vm.nfSearchFormModel)
|
|
8247
8265
|
},
|
|
8248
8266
|
on: {
|
|
8249
8267
|
"click": _vm.resetNfSearchFormModel
|
|
8250
8268
|
}
|
|
8251
|
-
}, [_vm._v(_vm._s(item.name || _vm.resetBtnText) + " ")]) : _vm.btnIsShow(item) ? _c("nf-button", {
|
|
8269
|
+
}, [_vm._v(_vm._s(_vm.resolveValue(item.name || _vm.resetBtnText, _vm.nfSearchFormModel)) + " ")]) : _vm.btnIsShow(item) ? _c("nf-button", {
|
|
8252
8270
|
key: "btn-" + idx,
|
|
8253
|
-
class: item.class,
|
|
8271
|
+
class: _vm.resolveValue(item.class, _vm.nfSearchFormModel),
|
|
8254
8272
|
attrs: {
|
|
8255
|
-
"type": item.type || _vm.queryBtnType,
|
|
8256
|
-
"icon": item.icon || _vm.queryBtnIcon,
|
|
8257
|
-
"plain": item.plain || _vm.queryBtnPlain,
|
|
8258
|
-
"size": item.size || _vm.size,
|
|
8259
|
-
"round": item.round || _vm.queryBtnRound,
|
|
8260
|
-
"circle": item.circle || _vm.queryBtnCircle,
|
|
8261
|
-
"loading": item.loading || _vm.queryBtnLoading,
|
|
8262
|
-
"disabled": item.disabled || _vm.queryBtnDisabled
|
|
8273
|
+
"type": _vm.resolveValue(item.type || _vm.queryBtnType, _vm.nfSearchFormModel),
|
|
8274
|
+
"icon": _vm.resolveValue(item.icon || _vm.queryBtnIcon, _vm.nfSearchFormModel),
|
|
8275
|
+
"plain": _vm.resolveValue(item.plain || _vm.queryBtnPlain, _vm.nfSearchFormModel),
|
|
8276
|
+
"size": _vm.resolveValue(item.size || _vm.size, _vm.nfSearchFormModel),
|
|
8277
|
+
"round": _vm.resolveValue(item.round || _vm.queryBtnRound, _vm.nfSearchFormModel),
|
|
8278
|
+
"circle": _vm.resolveValue(item.circle || _vm.queryBtnCircle, _vm.nfSearchFormModel),
|
|
8279
|
+
"loading": _vm.resolveValue(item.loading || _vm.queryBtnLoading, _vm.nfSearchFormModel),
|
|
8280
|
+
"disabled": _vm.resolveValue(item.disabled || _vm.queryBtnDisabled, _vm.nfSearchFormModel)
|
|
8263
8281
|
},
|
|
8264
8282
|
on: {
|
|
8265
8283
|
"click": () => {
|
|
8266
8284
|
_vm.onNfSearchFormClick(item);
|
|
8267
8285
|
}
|
|
8268
8286
|
}
|
|
8269
|
-
}, [_vm._v(_vm._s(item.name) + " ")]) : _vm._e()];
|
|
8287
|
+
}, [_vm._v(_vm._s(_vm.resolveValue(item.name, _vm.nfSearchFormModel)) + " ")]) : _vm._e()];
|
|
8270
8288
|
}), _vm.columnEdit ? _c("nf-button", {
|
|
8271
8289
|
class: (_vm.checkBtnClass || "") + " nf-btn-check",
|
|
8272
8290
|
attrs: {
|
|
@@ -8298,73 +8316,73 @@ var _sfc_render = function render6() {
|
|
|
8298
8316
|
var _a, _b, _c2;
|
|
8299
8317
|
return [((_a = item.btnType) == null ? void 0 : _a.includes("search")) ? _c("nf-button", {
|
|
8300
8318
|
key: "btn-" + idx,
|
|
8301
|
-
class: (_vm.queryBtnClass || "") + " nf-btn-search",
|
|
8319
|
+
class: (_vm.resolveValue(_vm.queryBtnClass, _vm.nfSearchFormModel) || "") + " nf-btn-search",
|
|
8302
8320
|
attrs: {
|
|
8303
|
-
"type": _vm.queryBtnType,
|
|
8304
|
-
"icon": _vm.queryBtnIcon,
|
|
8305
|
-
"plain": _vm.queryBtnPlain,
|
|
8306
|
-
"size": _vm.queryBtnSize || _vm.size,
|
|
8307
|
-
"round": _vm.queryBtnRound,
|
|
8308
|
-
"circle": _vm.queryBtnCircle,
|
|
8309
|
-
"loading": _vm.queryBtnLoading,
|
|
8310
|
-
"disabled": _vm.queryBtnDisabled
|
|
8321
|
+
"type": _vm.resolveValue(_vm.queryBtnType, _vm.nfSearchFormModel),
|
|
8322
|
+
"icon": _vm.resolveValue(_vm.queryBtnIcon, _vm.nfSearchFormModel),
|
|
8323
|
+
"plain": _vm.resolveValue(_vm.queryBtnPlain, _vm.nfSearchFormModel),
|
|
8324
|
+
"size": _vm.resolveValue(_vm.queryBtnSize || _vm.size, _vm.nfSearchFormModel),
|
|
8325
|
+
"round": _vm.resolveValue(_vm.queryBtnRound, _vm.nfSearchFormModel),
|
|
8326
|
+
"circle": _vm.resolveValue(_vm.queryBtnCircle, _vm.nfSearchFormModel),
|
|
8327
|
+
"loading": _vm.resolveValue(_vm.queryBtnLoading, _vm.nfSearchFormModel),
|
|
8328
|
+
"disabled": _vm.resolveValue(_vm.queryBtnDisabled, _vm.nfSearchFormModel)
|
|
8311
8329
|
},
|
|
8312
8330
|
on: {
|
|
8313
8331
|
"click": function($event) {
|
|
8314
8332
|
return _vm.onNfSearchFormSearch(true);
|
|
8315
8333
|
}
|
|
8316
8334
|
}
|
|
8317
|
-
}, [_vm._v(_vm._s(_vm.queryBtnText) + " ")]) : ((_b = item.btnType) == null ? void 0 : _b.includes("export")) ? _c("nf-button", {
|
|
8335
|
+
}, [_vm._v(_vm._s(_vm.resolveValue(_vm.queryBtnText, _vm.nfSearchFormModel)) + " ")]) : ((_b = item.btnType) == null ? void 0 : _b.includes("export")) ? _c("nf-button", {
|
|
8318
8336
|
key: "btn-" + idx,
|
|
8319
|
-
class: (_vm.exportBtnClass || "") + " nf-btn-export",
|
|
8337
|
+
class: (_vm.resolveValue(_vm.exportBtnClass, _vm.nfSearchFormModel) || "") + " nf-btn-export",
|
|
8320
8338
|
attrs: {
|
|
8321
|
-
"type": _vm.exportBtnType,
|
|
8322
|
-
"icon": _vm.exportBtnIcon,
|
|
8323
|
-
"plain": _vm.exportBtnPlain,
|
|
8324
|
-
"size": _vm.exportBtnSize || _vm.size,
|
|
8325
|
-
"round": _vm.exportBtnRound,
|
|
8326
|
-
"circle": _vm.exportBtnCircle,
|
|
8327
|
-
"loading": _vm.exportBtnLoading,
|
|
8328
|
-
"disabled": _vm.exportBtnDisabled
|
|
8339
|
+
"type": _vm.resolveValue(_vm.exportBtnType, _vm.nfSearchFormModel),
|
|
8340
|
+
"icon": _vm.resolveValue(_vm.exportBtnIcon, _vm.nfSearchFormModel),
|
|
8341
|
+
"plain": _vm.resolveValue(_vm.exportBtnPlain, _vm.nfSearchFormModel),
|
|
8342
|
+
"size": _vm.resolveValue(_vm.exportBtnSize || _vm.size, _vm.nfSearchFormModel),
|
|
8343
|
+
"round": _vm.resolveValue(_vm.exportBtnRound, _vm.nfSearchFormModel),
|
|
8344
|
+
"circle": _vm.resolveValue(_vm.exportBtnCircle, _vm.nfSearchFormModel),
|
|
8345
|
+
"loading": _vm.resolveValue(_vm.exportBtnLoading, _vm.nfSearchFormModel),
|
|
8346
|
+
"disabled": _vm.resolveValue(_vm.exportBtnDisabled, _vm.nfSearchFormModel)
|
|
8329
8347
|
},
|
|
8330
8348
|
on: {
|
|
8331
8349
|
"click": _vm.onNfSearchFormExport
|
|
8332
8350
|
}
|
|
8333
|
-
}, [_vm._v(_vm._s(_vm.exportBtnText) + " ")]) : ((_c2 = item.btnType) == null ? void 0 : _c2.includes("reset")) ? _c("nf-button", {
|
|
8351
|
+
}, [_vm._v(_vm._s(_vm.resolveValue(_vm.exportBtnText, _vm.nfSearchFormModel)) + " ")]) : ((_c2 = item.btnType) == null ? void 0 : _c2.includes("reset")) ? _c("nf-button", {
|
|
8334
8352
|
key: "btn-" + idx,
|
|
8335
|
-
class: (_vm.resetBtnClass || "") + " nf-btn-reset",
|
|
8353
|
+
class: (_vm.resolveValue(_vm.resetBtnClass, _vm.nfSearchFormModel) || "") + " nf-btn-reset",
|
|
8336
8354
|
attrs: {
|
|
8337
|
-
"type": _vm.resetBtnType,
|
|
8338
|
-
"icon": _vm.resetBtnIcon,
|
|
8339
|
-
"plain": _vm.resetBtnPlain,
|
|
8340
|
-
"size": _vm.resetBtnSize || _vm.size,
|
|
8341
|
-
"round": _vm.resetBtnRound,
|
|
8342
|
-
"circle": _vm.resetBtnCircle,
|
|
8343
|
-
"loading": _vm.resetBtnLoading,
|
|
8344
|
-
"disabled": _vm.resetBtnDisabled
|
|
8355
|
+
"type": _vm.resolveValue(_vm.resetBtnType, _vm.nfSearchFormModel),
|
|
8356
|
+
"icon": _vm.resolveValue(_vm.resetBtnIcon, _vm.nfSearchFormModel),
|
|
8357
|
+
"plain": _vm.resolveValue(_vm.resetBtnPlain, _vm.nfSearchFormModel),
|
|
8358
|
+
"size": _vm.resolveValue(_vm.resetBtnSize || _vm.size, _vm.nfSearchFormModel),
|
|
8359
|
+
"round": _vm.resolveValue(_vm.resetBtnRound, _vm.nfSearchFormModel),
|
|
8360
|
+
"circle": _vm.resolveValue(_vm.resetBtnCircle, _vm.nfSearchFormModel),
|
|
8361
|
+
"loading": _vm.resolveValue(_vm.resetBtnLoading, _vm.nfSearchFormModel),
|
|
8362
|
+
"disabled": _vm.resolveValue(_vm.resetBtnDisabled, _vm.nfSearchFormModel)
|
|
8345
8363
|
},
|
|
8346
8364
|
on: {
|
|
8347
8365
|
"click": _vm.resetNfSearchFormModel
|
|
8348
8366
|
}
|
|
8349
|
-
}, [_vm._v(_vm._s(_vm.resetBtnText) + " ")]) : _vm.btnIsShow(item) ? _c("nf-button", {
|
|
8367
|
+
}, [_vm._v(_vm._s(_vm.resolveValue(_vm.resetBtnText, _vm.nfSearchFormModel)) + " ")]) : _vm.btnIsShow(item) ? _c("nf-button", {
|
|
8350
8368
|
key: "btn-" + idx,
|
|
8351
|
-
class: item.class,
|
|
8369
|
+
class: _vm.resolveValue(item.class, _vm.nfSearchFormModel),
|
|
8352
8370
|
attrs: {
|
|
8353
|
-
"type": item.type || _vm.queryBtnType,
|
|
8354
|
-
"icon": item.icon || _vm.queryBtnIcon,
|
|
8355
|
-
"plain": item.plain || _vm.queryBtnPlain,
|
|
8356
|
-
"size": item.size || _vm.size,
|
|
8357
|
-
"round": item.round || _vm.queryBtnRound,
|
|
8358
|
-
"circle": item.circle || _vm.queryBtnCircle,
|
|
8359
|
-
"loading": item.loading || _vm.queryBtnLoading,
|
|
8360
|
-
"disabled": item.disabled || _vm.queryBtnDisabled
|
|
8371
|
+
"type": _vm.resolveValue(item.type || _vm.queryBtnType, _vm.nfSearchFormModel),
|
|
8372
|
+
"icon": _vm.resolveValue(item.icon || _vm.queryBtnIcon, _vm.nfSearchFormModel),
|
|
8373
|
+
"plain": _vm.resolveValue(item.plain || _vm.queryBtnPlain, _vm.nfSearchFormModel),
|
|
8374
|
+
"size": _vm.resolveValue(item.size || _vm.size, _vm.nfSearchFormModel),
|
|
8375
|
+
"round": _vm.resolveValue(item.round || _vm.queryBtnRound, _vm.nfSearchFormModel),
|
|
8376
|
+
"circle": _vm.resolveValue(item.circle || _vm.queryBtnCircle, _vm.nfSearchFormModel),
|
|
8377
|
+
"loading": _vm.resolveValue(item.loading || _vm.queryBtnLoading, _vm.nfSearchFormModel, _vm.nfSearchFormModel),
|
|
8378
|
+
"disabled": _vm.resolveValue(item.disabled || _vm.queryBtnDisabled, _vm.nfSearchFormModel)
|
|
8361
8379
|
},
|
|
8362
8380
|
on: {
|
|
8363
8381
|
"click": function($event) {
|
|
8364
8382
|
return _vm.onNfSearchFormClick(item);
|
|
8365
8383
|
}
|
|
8366
8384
|
}
|
|
8367
|
-
}, [_vm._v(_vm._s(item.name) + " ")]) : _vm._e()];
|
|
8385
|
+
}, [_vm._v(_vm._s(_vm.resolveValue(item.name, _vm.nfSearchFormModel)) + " ")]) : _vm._e()];
|
|
8368
8386
|
}), _vm.columnEdit ? _c("nf-button", {
|
|
8369
8387
|
class: (_vm.checkBtnClass || "") + " nf-btn-check",
|
|
8370
8388
|
attrs: {
|
|
@@ -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) {
|
|
@@ -8194,16 +8212,16 @@ var _sfc_render = function render6() {
|
|
|
8194
8212
|
var _a, _b, _c2;
|
|
8195
8213
|
return [((_a = item.btnType) == null ? void 0 : _a.includes("search")) ? _c("nf-button", {
|
|
8196
8214
|
key: "btn-" + idx,
|
|
8197
|
-
class: (_vm.queryBtnClass || "") + " nf-btn-search",
|
|
8215
|
+
class: (_vm.resolveValue(_vm.queryBtnClass, _vm.nfSearchFormModel) || "") + " nf-btn-search",
|
|
8198
8216
|
attrs: {
|
|
8199
|
-
"type": _vm.queryBtnType,
|
|
8200
|
-
"icon": _vm.queryBtnIcon,
|
|
8201
|
-
"plain": _vm.queryBtnPlain,
|
|
8202
|
-
"size": _vm.queryBtnSize || _vm.size,
|
|
8203
|
-
"round": _vm.queryBtnRound,
|
|
8204
|
-
"circle": _vm.queryBtnCircle,
|
|
8205
|
-
"loading": _vm.queryBtnLoading,
|
|
8206
|
-
"disabled": _vm.queryBtnDisabled
|
|
8217
|
+
"type": _vm.resolveValue(_vm.queryBtnType, _vm.nfSearchFormModel),
|
|
8218
|
+
"icon": _vm.resolveValue(_vm.queryBtnIcon, _vm.nfSearchFormModel),
|
|
8219
|
+
"plain": _vm.resolveValue(_vm.queryBtnPlain, _vm.nfSearchFormModel),
|
|
8220
|
+
"size": _vm.resolveValue(_vm.queryBtnSize || _vm.size, _vm.nfSearchFormModel),
|
|
8221
|
+
"round": _vm.resolveValue(_vm.queryBtnRound, _vm.nfSearchFormModel),
|
|
8222
|
+
"circle": _vm.resolveValue(_vm.queryBtnCircle, _vm.nfSearchFormModel),
|
|
8223
|
+
"loading": _vm.resolveValue(_vm.queryBtnLoading, _vm.nfSearchFormModel),
|
|
8224
|
+
"disabled": _vm.resolveValue(_vm.queryBtnDisabled, _vm.nfSearchFormModel)
|
|
8207
8225
|
},
|
|
8208
8226
|
on: {
|
|
8209
8227
|
"click": () => {
|
|
@@ -8211,18 +8229,18 @@ var _sfc_render = function render6() {
|
|
|
8211
8229
|
_vm.onNfSearchFormClick(item);
|
|
8212
8230
|
}
|
|
8213
8231
|
}
|
|
8214
|
-
}, [_vm._v(_vm._s(item.name || _vm.queryBtnText) + " ")]) : ((_b = item.btnType) == null ? void 0 : _b.includes("export")) ? _c("nf-button", {
|
|
8232
|
+
}, [_vm._v(_vm._s(_vm.resolveValue(item.name || _vm.queryBtnText, _vm.nfSearchFormModel)) + " ")]) : ((_b = item.btnType) == null ? void 0 : _b.includes("export")) ? _c("nf-button", {
|
|
8215
8233
|
key: "btn-" + idx,
|
|
8216
|
-
class: (_vm.exportBtnClass || "") + " nf-btn-export",
|
|
8234
|
+
class: (_vm.resolveValue(_vm.exportBtnClass, _vm.nfSearchFormModel) || "") + " nf-btn-export",
|
|
8217
8235
|
attrs: {
|
|
8218
|
-
"type": _vm.exportBtnType,
|
|
8219
|
-
"icon": _vm.exportBtnIcon,
|
|
8220
|
-
"plain": _vm.exportBtnPlain,
|
|
8221
|
-
"size": _vm.exportBtnSize || _vm.size,
|
|
8222
|
-
"round": _vm.exportBtnRound,
|
|
8223
|
-
"circle": _vm.exportBtnCircle,
|
|
8224
|
-
"loading": _vm.exportBtnLoading,
|
|
8225
|
-
"disabled": _vm.exportBtnDisabled
|
|
8236
|
+
"type": _vm.resolveValue(_vm.exportBtnType, _vm.nfSearchFormModel),
|
|
8237
|
+
"icon": _vm.resolveValue(_vm.exportBtnIcon, _vm.nfSearchFormModel),
|
|
8238
|
+
"plain": _vm.resolveValue(_vm.exportBtnPlain, _vm.nfSearchFormModel),
|
|
8239
|
+
"size": _vm.resolveValue(_vm.exportBtnSize || _vm.size, _vm.nfSearchFormModel),
|
|
8240
|
+
"round": _vm.resolveValue(_vm.exportBtnRound, _vm.nfSearchFormModel),
|
|
8241
|
+
"circle": _vm.resolveValue(_vm.exportBtnCircle, _vm.nfSearchFormModel),
|
|
8242
|
+
"loading": _vm.resolveValue(_vm.exportBtnLoading, _vm.nfSearchFormModel),
|
|
8243
|
+
"disabled": _vm.resolveValue(_vm.exportBtnDisabled, _vm.nfSearchFormModel)
|
|
8226
8244
|
},
|
|
8227
8245
|
on: {
|
|
8228
8246
|
"click": () => {
|
|
@@ -8230,41 +8248,41 @@ var _sfc_render = function render6() {
|
|
|
8230
8248
|
_vm.onNfSearchFormClick(item);
|
|
8231
8249
|
}
|
|
8232
8250
|
}
|
|
8233
|
-
}, [_vm._v(_vm._s(item.name || _vm.exportBtnText) + " ")]) : ((_c2 = item.btnType) == null ? void 0 : _c2.includes("reset")) ? _c("nf-button", {
|
|
8251
|
+
}, [_vm._v(_vm._s(_vm.resolveValue(item.name || _vm.exportBtnText, _vm.nfSearchFormModel)) + " ")]) : ((_c2 = item.btnType) == null ? void 0 : _c2.includes("reset")) ? _c("nf-button", {
|
|
8234
8252
|
key: "btn-" + idx,
|
|
8235
|
-
class: (_vm.resetBtnClass || "") + " nf-btn-reset",
|
|
8253
|
+
class: (_vm.resolveValue(_vm.resetBtnClass, _vm.nfSearchFormModel) || "") + " nf-btn-reset",
|
|
8236
8254
|
attrs: {
|
|
8237
|
-
"type": _vm.resetBtnType,
|
|
8238
|
-
"icon": _vm.resetBtnIcon,
|
|
8239
|
-
"plain": _vm.resetBtnPlain,
|
|
8240
|
-
"size": _vm.resetBtnSize || _vm.size,
|
|
8241
|
-
"round": _vm.resetBtnRound,
|
|
8242
|
-
"circle": _vm.resetBtnCircle,
|
|
8243
|
-
"loading": _vm.resetBtnLoading,
|
|
8244
|
-
"disabled": _vm.resetBtnDisabled
|
|
8255
|
+
"type": _vm.resolveValue(_vm.resetBtnType, _vm.nfSearchFormModel),
|
|
8256
|
+
"icon": _vm.resolveValue(_vm.resetBtnIcon, _vm.nfSearchFormModel),
|
|
8257
|
+
"plain": _vm.resolveValue(_vm.resetBtnPlain, _vm.nfSearchFormModel),
|
|
8258
|
+
"size": _vm.resolveValue(_vm.resetBtnSize || _vm.size, _vm.nfSearchFormModel),
|
|
8259
|
+
"round": _vm.resolveValue(_vm.resetBtnRound, _vm.nfSearchFormModel),
|
|
8260
|
+
"circle": _vm.resolveValue(_vm.resetBtnCircle, _vm.nfSearchFormModel),
|
|
8261
|
+
"loading": _vm.resolveValue(_vm.resetBtnLoading, _vm.nfSearchFormModel),
|
|
8262
|
+
"disabled": _vm.resolveValue(_vm.resetBtnDisabled, _vm.nfSearchFormModel)
|
|
8245
8263
|
},
|
|
8246
8264
|
on: {
|
|
8247
8265
|
"click": _vm.resetNfSearchFormModel
|
|
8248
8266
|
}
|
|
8249
|
-
}, [_vm._v(_vm._s(item.name || _vm.resetBtnText) + " ")]) : _vm.btnIsShow(item) ? _c("nf-button", {
|
|
8267
|
+
}, [_vm._v(_vm._s(_vm.resolveValue(item.name || _vm.resetBtnText, _vm.nfSearchFormModel)) + " ")]) : _vm.btnIsShow(item) ? _c("nf-button", {
|
|
8250
8268
|
key: "btn-" + idx,
|
|
8251
|
-
class: item.class,
|
|
8269
|
+
class: _vm.resolveValue(item.class, _vm.nfSearchFormModel),
|
|
8252
8270
|
attrs: {
|
|
8253
|
-
"type": item.type || _vm.queryBtnType,
|
|
8254
|
-
"icon": item.icon || _vm.queryBtnIcon,
|
|
8255
|
-
"plain": item.plain || _vm.queryBtnPlain,
|
|
8256
|
-
"size": item.size || _vm.size,
|
|
8257
|
-
"round": item.round || _vm.queryBtnRound,
|
|
8258
|
-
"circle": item.circle || _vm.queryBtnCircle,
|
|
8259
|
-
"loading": item.loading || _vm.queryBtnLoading,
|
|
8260
|
-
"disabled": item.disabled || _vm.queryBtnDisabled
|
|
8271
|
+
"type": _vm.resolveValue(item.type || _vm.queryBtnType, _vm.nfSearchFormModel),
|
|
8272
|
+
"icon": _vm.resolveValue(item.icon || _vm.queryBtnIcon, _vm.nfSearchFormModel),
|
|
8273
|
+
"plain": _vm.resolveValue(item.plain || _vm.queryBtnPlain, _vm.nfSearchFormModel),
|
|
8274
|
+
"size": _vm.resolveValue(item.size || _vm.size, _vm.nfSearchFormModel),
|
|
8275
|
+
"round": _vm.resolveValue(item.round || _vm.queryBtnRound, _vm.nfSearchFormModel),
|
|
8276
|
+
"circle": _vm.resolveValue(item.circle || _vm.queryBtnCircle, _vm.nfSearchFormModel),
|
|
8277
|
+
"loading": _vm.resolveValue(item.loading || _vm.queryBtnLoading, _vm.nfSearchFormModel),
|
|
8278
|
+
"disabled": _vm.resolveValue(item.disabled || _vm.queryBtnDisabled, _vm.nfSearchFormModel)
|
|
8261
8279
|
},
|
|
8262
8280
|
on: {
|
|
8263
8281
|
"click": () => {
|
|
8264
8282
|
_vm.onNfSearchFormClick(item);
|
|
8265
8283
|
}
|
|
8266
8284
|
}
|
|
8267
|
-
}, [_vm._v(_vm._s(item.name) + " ")]) : _vm._e()];
|
|
8285
|
+
}, [_vm._v(_vm._s(_vm.resolveValue(item.name, _vm.nfSearchFormModel)) + " ")]) : _vm._e()];
|
|
8268
8286
|
}), _vm.columnEdit ? _c("nf-button", {
|
|
8269
8287
|
class: (_vm.checkBtnClass || "") + " nf-btn-check",
|
|
8270
8288
|
attrs: {
|
|
@@ -8296,73 +8314,73 @@ var _sfc_render = function render6() {
|
|
|
8296
8314
|
var _a, _b, _c2;
|
|
8297
8315
|
return [((_a = item.btnType) == null ? void 0 : _a.includes("search")) ? _c("nf-button", {
|
|
8298
8316
|
key: "btn-" + idx,
|
|
8299
|
-
class: (_vm.queryBtnClass || "") + " nf-btn-search",
|
|
8317
|
+
class: (_vm.resolveValue(_vm.queryBtnClass, _vm.nfSearchFormModel) || "") + " nf-btn-search",
|
|
8300
8318
|
attrs: {
|
|
8301
|
-
"type": _vm.queryBtnType,
|
|
8302
|
-
"icon": _vm.queryBtnIcon,
|
|
8303
|
-
"plain": _vm.queryBtnPlain,
|
|
8304
|
-
"size": _vm.queryBtnSize || _vm.size,
|
|
8305
|
-
"round": _vm.queryBtnRound,
|
|
8306
|
-
"circle": _vm.queryBtnCircle,
|
|
8307
|
-
"loading": _vm.queryBtnLoading,
|
|
8308
|
-
"disabled": _vm.queryBtnDisabled
|
|
8319
|
+
"type": _vm.resolveValue(_vm.queryBtnType, _vm.nfSearchFormModel),
|
|
8320
|
+
"icon": _vm.resolveValue(_vm.queryBtnIcon, _vm.nfSearchFormModel),
|
|
8321
|
+
"plain": _vm.resolveValue(_vm.queryBtnPlain, _vm.nfSearchFormModel),
|
|
8322
|
+
"size": _vm.resolveValue(_vm.queryBtnSize || _vm.size, _vm.nfSearchFormModel),
|
|
8323
|
+
"round": _vm.resolveValue(_vm.queryBtnRound, _vm.nfSearchFormModel),
|
|
8324
|
+
"circle": _vm.resolveValue(_vm.queryBtnCircle, _vm.nfSearchFormModel),
|
|
8325
|
+
"loading": _vm.resolveValue(_vm.queryBtnLoading, _vm.nfSearchFormModel),
|
|
8326
|
+
"disabled": _vm.resolveValue(_vm.queryBtnDisabled, _vm.nfSearchFormModel)
|
|
8309
8327
|
},
|
|
8310
8328
|
on: {
|
|
8311
8329
|
"click": function($event) {
|
|
8312
8330
|
return _vm.onNfSearchFormSearch(true);
|
|
8313
8331
|
}
|
|
8314
8332
|
}
|
|
8315
|
-
}, [_vm._v(_vm._s(_vm.queryBtnText) + " ")]) : ((_b = item.btnType) == null ? void 0 : _b.includes("export")) ? _c("nf-button", {
|
|
8333
|
+
}, [_vm._v(_vm._s(_vm.resolveValue(_vm.queryBtnText, _vm.nfSearchFormModel)) + " ")]) : ((_b = item.btnType) == null ? void 0 : _b.includes("export")) ? _c("nf-button", {
|
|
8316
8334
|
key: "btn-" + idx,
|
|
8317
|
-
class: (_vm.exportBtnClass || "") + " nf-btn-export",
|
|
8335
|
+
class: (_vm.resolveValue(_vm.exportBtnClass, _vm.nfSearchFormModel) || "") + " nf-btn-export",
|
|
8318
8336
|
attrs: {
|
|
8319
|
-
"type": _vm.exportBtnType,
|
|
8320
|
-
"icon": _vm.exportBtnIcon,
|
|
8321
|
-
"plain": _vm.exportBtnPlain,
|
|
8322
|
-
"size": _vm.exportBtnSize || _vm.size,
|
|
8323
|
-
"round": _vm.exportBtnRound,
|
|
8324
|
-
"circle": _vm.exportBtnCircle,
|
|
8325
|
-
"loading": _vm.exportBtnLoading,
|
|
8326
|
-
"disabled": _vm.exportBtnDisabled
|
|
8337
|
+
"type": _vm.resolveValue(_vm.exportBtnType, _vm.nfSearchFormModel),
|
|
8338
|
+
"icon": _vm.resolveValue(_vm.exportBtnIcon, _vm.nfSearchFormModel),
|
|
8339
|
+
"plain": _vm.resolveValue(_vm.exportBtnPlain, _vm.nfSearchFormModel),
|
|
8340
|
+
"size": _vm.resolveValue(_vm.exportBtnSize || _vm.size, _vm.nfSearchFormModel),
|
|
8341
|
+
"round": _vm.resolveValue(_vm.exportBtnRound, _vm.nfSearchFormModel),
|
|
8342
|
+
"circle": _vm.resolveValue(_vm.exportBtnCircle, _vm.nfSearchFormModel),
|
|
8343
|
+
"loading": _vm.resolveValue(_vm.exportBtnLoading, _vm.nfSearchFormModel),
|
|
8344
|
+
"disabled": _vm.resolveValue(_vm.exportBtnDisabled, _vm.nfSearchFormModel)
|
|
8327
8345
|
},
|
|
8328
8346
|
on: {
|
|
8329
8347
|
"click": _vm.onNfSearchFormExport
|
|
8330
8348
|
}
|
|
8331
|
-
}, [_vm._v(_vm._s(_vm.exportBtnText) + " ")]) : ((_c2 = item.btnType) == null ? void 0 : _c2.includes("reset")) ? _c("nf-button", {
|
|
8349
|
+
}, [_vm._v(_vm._s(_vm.resolveValue(_vm.exportBtnText, _vm.nfSearchFormModel)) + " ")]) : ((_c2 = item.btnType) == null ? void 0 : _c2.includes("reset")) ? _c("nf-button", {
|
|
8332
8350
|
key: "btn-" + idx,
|
|
8333
|
-
class: (_vm.resetBtnClass || "") + " nf-btn-reset",
|
|
8351
|
+
class: (_vm.resolveValue(_vm.resetBtnClass, _vm.nfSearchFormModel) || "") + " nf-btn-reset",
|
|
8334
8352
|
attrs: {
|
|
8335
|
-
"type": _vm.resetBtnType,
|
|
8336
|
-
"icon": _vm.resetBtnIcon,
|
|
8337
|
-
"plain": _vm.resetBtnPlain,
|
|
8338
|
-
"size": _vm.resetBtnSize || _vm.size,
|
|
8339
|
-
"round": _vm.resetBtnRound,
|
|
8340
|
-
"circle": _vm.resetBtnCircle,
|
|
8341
|
-
"loading": _vm.resetBtnLoading,
|
|
8342
|
-
"disabled": _vm.resetBtnDisabled
|
|
8353
|
+
"type": _vm.resolveValue(_vm.resetBtnType, _vm.nfSearchFormModel),
|
|
8354
|
+
"icon": _vm.resolveValue(_vm.resetBtnIcon, _vm.nfSearchFormModel),
|
|
8355
|
+
"plain": _vm.resolveValue(_vm.resetBtnPlain, _vm.nfSearchFormModel),
|
|
8356
|
+
"size": _vm.resolveValue(_vm.resetBtnSize || _vm.size, _vm.nfSearchFormModel),
|
|
8357
|
+
"round": _vm.resolveValue(_vm.resetBtnRound, _vm.nfSearchFormModel),
|
|
8358
|
+
"circle": _vm.resolveValue(_vm.resetBtnCircle, _vm.nfSearchFormModel),
|
|
8359
|
+
"loading": _vm.resolveValue(_vm.resetBtnLoading, _vm.nfSearchFormModel),
|
|
8360
|
+
"disabled": _vm.resolveValue(_vm.resetBtnDisabled, _vm.nfSearchFormModel)
|
|
8343
8361
|
},
|
|
8344
8362
|
on: {
|
|
8345
8363
|
"click": _vm.resetNfSearchFormModel
|
|
8346
8364
|
}
|
|
8347
|
-
}, [_vm._v(_vm._s(_vm.resetBtnText) + " ")]) : _vm.btnIsShow(item) ? _c("nf-button", {
|
|
8365
|
+
}, [_vm._v(_vm._s(_vm.resolveValue(_vm.resetBtnText, _vm.nfSearchFormModel)) + " ")]) : _vm.btnIsShow(item) ? _c("nf-button", {
|
|
8348
8366
|
key: "btn-" + idx,
|
|
8349
|
-
class: item.class,
|
|
8367
|
+
class: _vm.resolveValue(item.class, _vm.nfSearchFormModel),
|
|
8350
8368
|
attrs: {
|
|
8351
|
-
"type": item.type || _vm.queryBtnType,
|
|
8352
|
-
"icon": item.icon || _vm.queryBtnIcon,
|
|
8353
|
-
"plain": item.plain || _vm.queryBtnPlain,
|
|
8354
|
-
"size": item.size || _vm.size,
|
|
8355
|
-
"round": item.round || _vm.queryBtnRound,
|
|
8356
|
-
"circle": item.circle || _vm.queryBtnCircle,
|
|
8357
|
-
"loading": item.loading || _vm.queryBtnLoading,
|
|
8358
|
-
"disabled": item.disabled || _vm.queryBtnDisabled
|
|
8369
|
+
"type": _vm.resolveValue(item.type || _vm.queryBtnType, _vm.nfSearchFormModel),
|
|
8370
|
+
"icon": _vm.resolveValue(item.icon || _vm.queryBtnIcon, _vm.nfSearchFormModel),
|
|
8371
|
+
"plain": _vm.resolveValue(item.plain || _vm.queryBtnPlain, _vm.nfSearchFormModel),
|
|
8372
|
+
"size": _vm.resolveValue(item.size || _vm.size, _vm.nfSearchFormModel),
|
|
8373
|
+
"round": _vm.resolveValue(item.round || _vm.queryBtnRound, _vm.nfSearchFormModel),
|
|
8374
|
+
"circle": _vm.resolveValue(item.circle || _vm.queryBtnCircle, _vm.nfSearchFormModel),
|
|
8375
|
+
"loading": _vm.resolveValue(item.loading || _vm.queryBtnLoading, _vm.nfSearchFormModel, _vm.nfSearchFormModel),
|
|
8376
|
+
"disabled": _vm.resolveValue(item.disabled || _vm.queryBtnDisabled, _vm.nfSearchFormModel)
|
|
8359
8377
|
},
|
|
8360
8378
|
on: {
|
|
8361
8379
|
"click": function($event) {
|
|
8362
8380
|
return _vm.onNfSearchFormClick(item);
|
|
8363
8381
|
}
|
|
8364
8382
|
}
|
|
8365
|
-
}, [_vm._v(_vm._s(item.name) + " ")]) : _vm._e()];
|
|
8383
|
+
}, [_vm._v(_vm._s(_vm.resolveValue(item.name, _vm.nfSearchFormModel)) + " ")]) : _vm._e()];
|
|
8366
8384
|
}), _vm.columnEdit ? _c("nf-button", {
|
|
8367
8385
|
class: (_vm.checkBtnClass || "") + " nf-btn-check",
|
|
8368
8386
|
attrs: {
|
|
@@ -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>
|
|
@@ -92,70 +92,70 @@
|
|
|
92
92
|
<nf-button
|
|
93
93
|
v-if="item.btnType?.includes('search')"
|
|
94
94
|
:key="'btn-' + idx"
|
|
95
|
-
:type="queryBtnType"
|
|
96
|
-
:icon="queryBtnIcon"
|
|
97
|
-
:plain="queryBtnPlain"
|
|
98
|
-
:size="queryBtnSize || size"
|
|
99
|
-
:round="queryBtnRound"
|
|
100
|
-
:circle="queryBtnCircle"
|
|
101
|
-
:loading="queryBtnLoading"
|
|
102
|
-
:disabled="queryBtnDisabled"
|
|
103
|
-
:class="(queryBtnClass || '') + ' nf-btn-search'"
|
|
95
|
+
:type="resolveValue(queryBtnType, nfSearchFormModel)"
|
|
96
|
+
:icon="resolveValue(queryBtnIcon, nfSearchFormModel)"
|
|
97
|
+
:plain="resolveValue(queryBtnPlain, nfSearchFormModel)"
|
|
98
|
+
:size="resolveValue(queryBtnSize || size, nfSearchFormModel)"
|
|
99
|
+
:round="resolveValue(queryBtnRound, nfSearchFormModel)"
|
|
100
|
+
:circle="resolveValue(queryBtnCircle, nfSearchFormModel)"
|
|
101
|
+
:loading="resolveValue(queryBtnLoading, nfSearchFormModel)"
|
|
102
|
+
:disabled="resolveValue(queryBtnDisabled, nfSearchFormModel)"
|
|
103
|
+
:class="(resolveValue(queryBtnClass, nfSearchFormModel) || '') + ' nf-btn-search'"
|
|
104
104
|
@click="() => {
|
|
105
105
|
onNfSearchFormSearch(true);
|
|
106
106
|
onNfSearchFormClick(item);
|
|
107
107
|
}"
|
|
108
|
-
>{{ item.name || queryBtnText }}
|
|
108
|
+
>{{ resolveValue(item.name || queryBtnText, nfSearchFormModel) }}
|
|
109
109
|
</nf-button>
|
|
110
110
|
<nf-button
|
|
111
111
|
v-else-if="item.btnType?.includes('export')"
|
|
112
112
|
:key="'btn-' + idx"
|
|
113
|
-
:type="exportBtnType"
|
|
114
|
-
:icon="exportBtnIcon"
|
|
115
|
-
:plain="exportBtnPlain"
|
|
116
|
-
:size="exportBtnSize || size"
|
|
117
|
-
:round="exportBtnRound"
|
|
118
|
-
:circle="exportBtnCircle"
|
|
119
|
-
:loading="exportBtnLoading"
|
|
120
|
-
:disabled="exportBtnDisabled"
|
|
121
|
-
:class="(exportBtnClass || '') + ' nf-btn-export'"
|
|
113
|
+
:type="resolveValue(exportBtnType, nfSearchFormModel)"
|
|
114
|
+
:icon="resolveValue(exportBtnIcon, nfSearchFormModel)"
|
|
115
|
+
:plain="resolveValue(exportBtnPlain, nfSearchFormModel)"
|
|
116
|
+
:size="resolveValue(exportBtnSize || size, nfSearchFormModel)"
|
|
117
|
+
:round="resolveValue(exportBtnRound, nfSearchFormModel)"
|
|
118
|
+
:circle="resolveValue(exportBtnCircle, nfSearchFormModel)"
|
|
119
|
+
:loading="resolveValue(exportBtnLoading, nfSearchFormModel)"
|
|
120
|
+
:disabled="resolveValue(exportBtnDisabled, nfSearchFormModel)"
|
|
121
|
+
:class="(resolveValue(exportBtnClass, nfSearchFormModel) || '') + ' nf-btn-export'"
|
|
122
122
|
@click="() => {
|
|
123
123
|
onNfSearchFormExport();
|
|
124
124
|
onNfSearchFormClick(item);
|
|
125
125
|
}"
|
|
126
|
-
>{{ item.name || exportBtnText }}
|
|
126
|
+
>{{ resolveValue(item.name || exportBtnText, nfSearchFormModel) }}
|
|
127
127
|
</nf-button>
|
|
128
128
|
<nf-button
|
|
129
129
|
v-else-if="item.btnType?.includes('reset')"
|
|
130
130
|
:key="'btn-' + idx"
|
|
131
|
-
:type="resetBtnType"
|
|
132
|
-
:icon="resetBtnIcon"
|
|
133
|
-
:plain="resetBtnPlain"
|
|
134
|
-
:size="resetBtnSize || size"
|
|
135
|
-
:round="resetBtnRound"
|
|
136
|
-
:circle="resetBtnCircle"
|
|
137
|
-
:loading="resetBtnLoading"
|
|
138
|
-
:disabled="resetBtnDisabled"
|
|
139
|
-
:class="(resetBtnClass || '') + ' nf-btn-reset'"
|
|
131
|
+
:type="resolveValue(resetBtnType, nfSearchFormModel)"
|
|
132
|
+
:icon="resolveValue(resetBtnIcon, nfSearchFormModel)"
|
|
133
|
+
:plain="resolveValue(resetBtnPlain, nfSearchFormModel)"
|
|
134
|
+
:size="resolveValue(resetBtnSize || size, nfSearchFormModel)"
|
|
135
|
+
:round="resolveValue(resetBtnRound, nfSearchFormModel)"
|
|
136
|
+
:circle="resolveValue(resetBtnCircle, nfSearchFormModel)"
|
|
137
|
+
:loading="resolveValue(resetBtnLoading, nfSearchFormModel)"
|
|
138
|
+
:disabled="resolveValue(resetBtnDisabled, nfSearchFormModel)"
|
|
139
|
+
:class="(resolveValue(resetBtnClass, nfSearchFormModel) || '') + ' nf-btn-reset'"
|
|
140
140
|
@click="resetNfSearchFormModel"
|
|
141
|
-
>{{ item.name || resetBtnText }}
|
|
141
|
+
>{{ resolveValue(item.name || resetBtnText, nfSearchFormModel) }}
|
|
142
142
|
</nf-button>
|
|
143
143
|
<nf-button
|
|
144
144
|
v-else-if="btnIsShow(item)"
|
|
145
145
|
:key="'btn-' + idx"
|
|
146
|
-
:type="item.type || queryBtnType"
|
|
147
|
-
:icon="item.icon || queryBtnIcon"
|
|
148
|
-
:plain="item.plain || queryBtnPlain"
|
|
149
|
-
:size="item.size || size"
|
|
150
|
-
:round="item.round || queryBtnRound"
|
|
151
|
-
:circle="item.circle || queryBtnCircle"
|
|
152
|
-
:loading="item.loading || queryBtnLoading"
|
|
153
|
-
:disabled="item.disabled || queryBtnDisabled"
|
|
154
|
-
:class="item.class"
|
|
146
|
+
:type="resolveValue(item.type || queryBtnType, nfSearchFormModel)"
|
|
147
|
+
:icon="resolveValue(item.icon || queryBtnIcon, nfSearchFormModel)"
|
|
148
|
+
:plain="resolveValue(item.plain || queryBtnPlain, nfSearchFormModel)"
|
|
149
|
+
:size="resolveValue(item.size || size, nfSearchFormModel)"
|
|
150
|
+
:round="resolveValue(item.round || queryBtnRound, nfSearchFormModel)"
|
|
151
|
+
:circle="resolveValue(item.circle || queryBtnCircle, nfSearchFormModel)"
|
|
152
|
+
:loading="resolveValue(item.loading || queryBtnLoading, nfSearchFormModel)"
|
|
153
|
+
:disabled="resolveValue(item.disabled || queryBtnDisabled, nfSearchFormModel)"
|
|
154
|
+
:class="resolveValue(item.class, nfSearchFormModel)"
|
|
155
155
|
@click="() => {
|
|
156
156
|
onNfSearchFormClick(item);
|
|
157
157
|
}"
|
|
158
|
-
>{{ item.name }}
|
|
158
|
+
>{{ resolveValue(item.name, nfSearchFormModel) }}
|
|
159
159
|
</nf-button>
|
|
160
160
|
</template>
|
|
161
161
|
<nf-button :type="checkBtnType"
|
|
@@ -183,62 +183,62 @@
|
|
|
183
183
|
<nf-button
|
|
184
184
|
v-if="item.btnType?.includes('search')"
|
|
185
185
|
:key="'btn-' + idx"
|
|
186
|
-
:type="queryBtnType"
|
|
187
|
-
:icon="queryBtnIcon"
|
|
188
|
-
:plain="queryBtnPlain"
|
|
189
|
-
:size="queryBtnSize || size"
|
|
190
|
-
:round="queryBtnRound"
|
|
191
|
-
:circle="queryBtnCircle"
|
|
192
|
-
:loading="queryBtnLoading"
|
|
193
|
-
:disabled="queryBtnDisabled"
|
|
194
|
-
:class="(queryBtnClass || '') + ' nf-btn-search'"
|
|
186
|
+
:type="resolveValue(queryBtnType, nfSearchFormModel)"
|
|
187
|
+
:icon="resolveValue(queryBtnIcon, nfSearchFormModel)"
|
|
188
|
+
:plain="resolveValue(queryBtnPlain, nfSearchFormModel)"
|
|
189
|
+
:size="resolveValue(queryBtnSize || size, nfSearchFormModel)"
|
|
190
|
+
:round="resolveValue(queryBtnRound, nfSearchFormModel)"
|
|
191
|
+
:circle="resolveValue(queryBtnCircle, nfSearchFormModel)"
|
|
192
|
+
:loading="resolveValue(queryBtnLoading, nfSearchFormModel)"
|
|
193
|
+
:disabled="resolveValue(queryBtnDisabled, nfSearchFormModel)"
|
|
194
|
+
:class="(resolveValue(queryBtnClass, nfSearchFormModel) || '') + ' nf-btn-search'"
|
|
195
195
|
@click="onNfSearchFormSearch(true)"
|
|
196
|
-
>{{ queryBtnText }}
|
|
196
|
+
>{{ resolveValue(queryBtnText, nfSearchFormModel) }}
|
|
197
197
|
</nf-button>
|
|
198
198
|
<nf-button
|
|
199
199
|
v-else-if="item.btnType?.includes('export')"
|
|
200
200
|
:key="'btn-' + idx"
|
|
201
|
-
:type="exportBtnType"
|
|
202
|
-
:icon="exportBtnIcon"
|
|
203
|
-
:plain="exportBtnPlain"
|
|
204
|
-
:size="exportBtnSize || size"
|
|
205
|
-
:round="exportBtnRound"
|
|
206
|
-
:circle="exportBtnCircle"
|
|
207
|
-
:loading="exportBtnLoading"
|
|
208
|
-
:disabled="exportBtnDisabled"
|
|
209
|
-
:class="(exportBtnClass || '') + ' nf-btn-export'"
|
|
201
|
+
:type="resolveValue(exportBtnType, nfSearchFormModel)"
|
|
202
|
+
:icon="resolveValue(exportBtnIcon, nfSearchFormModel)"
|
|
203
|
+
:plain="resolveValue(exportBtnPlain, nfSearchFormModel)"
|
|
204
|
+
:size="resolveValue(exportBtnSize || size, nfSearchFormModel)"
|
|
205
|
+
:round="resolveValue(exportBtnRound, nfSearchFormModel)"
|
|
206
|
+
:circle="resolveValue(exportBtnCircle, nfSearchFormModel)"
|
|
207
|
+
:loading="resolveValue(exportBtnLoading, nfSearchFormModel)"
|
|
208
|
+
:disabled="resolveValue(exportBtnDisabled, nfSearchFormModel)"
|
|
209
|
+
:class="(resolveValue(exportBtnClass, nfSearchFormModel) || '') + ' nf-btn-export'"
|
|
210
210
|
@click="onNfSearchFormExport"
|
|
211
|
-
>{{ exportBtnText }}
|
|
211
|
+
>{{ resolveValue(exportBtnText, nfSearchFormModel) }}
|
|
212
212
|
</nf-button>
|
|
213
213
|
<nf-button
|
|
214
214
|
v-else-if="item.btnType?.includes('reset')"
|
|
215
215
|
:key="'btn-' + idx"
|
|
216
|
-
:type="resetBtnType"
|
|
217
|
-
:icon="resetBtnIcon"
|
|
218
|
-
:plain="resetBtnPlain"
|
|
219
|
-
:size="resetBtnSize || size"
|
|
220
|
-
:round="resetBtnRound"
|
|
221
|
-
:circle="resetBtnCircle"
|
|
222
|
-
:loading="resetBtnLoading"
|
|
223
|
-
:disabled="resetBtnDisabled"
|
|
224
|
-
:class="(resetBtnClass || '') + ' nf-btn-reset'"
|
|
216
|
+
:type="resolveValue(resetBtnType, nfSearchFormModel)"
|
|
217
|
+
:icon="resolveValue(resetBtnIcon, nfSearchFormModel)"
|
|
218
|
+
:plain="resolveValue(resetBtnPlain, nfSearchFormModel)"
|
|
219
|
+
:size="resolveValue(resetBtnSize || size, nfSearchFormModel)"
|
|
220
|
+
:round="resolveValue(resetBtnRound, nfSearchFormModel)"
|
|
221
|
+
:circle="resolveValue(resetBtnCircle, nfSearchFormModel)"
|
|
222
|
+
:loading="resolveValue(resetBtnLoading, nfSearchFormModel)"
|
|
223
|
+
:disabled="resolveValue(resetBtnDisabled, nfSearchFormModel)"
|
|
224
|
+
:class="(resolveValue(resetBtnClass, nfSearchFormModel) || '') + ' nf-btn-reset'"
|
|
225
225
|
@click="resetNfSearchFormModel"
|
|
226
|
-
>{{ resetBtnText }}
|
|
226
|
+
>{{ resolveValue(resetBtnText, nfSearchFormModel) }}
|
|
227
227
|
</nf-button>
|
|
228
228
|
<nf-button
|
|
229
229
|
v-else-if="btnIsShow(item)"
|
|
230
230
|
:key="'btn-' + idx"
|
|
231
|
-
:type="item.type || queryBtnType"
|
|
232
|
-
:icon="item.icon || queryBtnIcon"
|
|
233
|
-
:plain="item.plain || queryBtnPlain"
|
|
234
|
-
:size="item.size || size"
|
|
235
|
-
:round="item.round || queryBtnRound"
|
|
236
|
-
:circle="item.circle || queryBtnCircle"
|
|
237
|
-
:loading="item.loading || queryBtnLoading"
|
|
238
|
-
:disabled="item.disabled || queryBtnDisabled"
|
|
239
|
-
:class="item.class"
|
|
231
|
+
:type="resolveValue(item.type || queryBtnType, nfSearchFormModel)"
|
|
232
|
+
:icon="resolveValue(item.icon || queryBtnIcon, nfSearchFormModel)"
|
|
233
|
+
:plain="resolveValue(item.plain || queryBtnPlain, nfSearchFormModel)"
|
|
234
|
+
:size="resolveValue(item.size || size, nfSearchFormModel)"
|
|
235
|
+
:round="resolveValue(item.round || queryBtnRound, nfSearchFormModel)"
|
|
236
|
+
:circle="resolveValue(item.circle || queryBtnCircle, nfSearchFormModel)"
|
|
237
|
+
:loading="resolveValue(item.loading || queryBtnLoading, nfSearchFormModel, nfSearchFormModel)"
|
|
238
|
+
:disabled="resolveValue(item.disabled || queryBtnDisabled, nfSearchFormModel)"
|
|
239
|
+
:class="resolveValue(item.class, nfSearchFormModel)"
|
|
240
240
|
@click="onNfSearchFormClick(item)"
|
|
241
|
-
>{{ item.name }}
|
|
241
|
+
>{{ resolveValue(item.name, nfSearchFormModel) }}
|
|
242
242
|
</nf-button>
|
|
243
243
|
</template>
|
|
244
244
|
<nf-button :type="checkBtnType"
|
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.23",
|
|
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.23",
|
|
18
|
+
"@94ai/common-utils": "^8.0.23",
|
|
19
|
+
"@94ai/nf-button": "^8.0.23",
|
|
20
|
+
"@94ai/nf-double-half-year": "^8.0.23",
|
|
21
|
+
"@94ai/nf-double-quarter": "^8.0.23",
|
|
22
|
+
"@94ai/nf-double-week": "^8.0.23",
|
|
23
|
+
"@94ai/nf-double-year": "^8.0.23",
|
|
24
|
+
"@94ai/nf-drawer": "^8.0.23",
|
|
25
|
+
"@94ai/nf-form": "^8.0.23",
|
|
26
|
+
"@94ai/nf-form-item": "^8.0.23",
|
|
27
|
+
"@94ai/nf-half-year-picker": "^8.0.23",
|
|
28
|
+
"@94ai/nf-lazy-select": "^8.0.23",
|
|
29
|
+
"@94ai/nf-message": "^8.0.23",
|
|
30
|
+
"@94ai/nf-quarter-picker": "^8.0.23",
|
|
31
|
+
"@94ai/nf-theme-chalk": "^8.0.23",
|
|
32
|
+
"@94ai/nf-transfer-select": "^8.0.23",
|
|
33
|
+
"@94ai/nf-virtual-select": "^8.0.23",
|
|
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": "ca1689a2c0ec736df12a5d3a2c6edc51abb2e89b"
|
|
54
54
|
}
|