@94ai/nf-search-form 3.3.13 → 3.3.15
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/index.d.ts +40 -0
- package/lib/nf-number-range.vue.d.ts +37 -1
- package/lib/nf-search-form-item.vue.d.ts +35 -1
- package/lib/nf-search-form.cjs.js +132 -8
- package/lib/nf-search-form.esm-bundler.js +132 -8
- package/lib/nf-search-form.vue.d.ts +29 -0
- package/lib/types.d.ts +11 -0
- package/package/nf-number-range.vue +21 -5
- package/package/nf-search-form-item.vue +52 -3
- package/package/nf-search-form.vue +9 -0
- package/package/types.ts +12 -0
- package/package.json +18 -18
package/lib/index.d.ts
CHANGED
|
@@ -1387,6 +1387,17 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
|
|
|
1387
1387
|
initValue?: any;
|
|
1388
1388
|
slot?: string | undefined;
|
|
1389
1389
|
labelSlot?: string | undefined;
|
|
1390
|
+
inputSlot?: {
|
|
1391
|
+
prepend?: string | undefined;
|
|
1392
|
+
append?: string | undefined;
|
|
1393
|
+
suffix?: string | undefined;
|
|
1394
|
+
prefix?: string | undefined;
|
|
1395
|
+
doublePrepend?: string | undefined;
|
|
1396
|
+
doubleAppend?: string | undefined;
|
|
1397
|
+
doubleSuffix?: string | undefined;
|
|
1398
|
+
doublePrefix?: string | undefined;
|
|
1399
|
+
doubleSegment?: string | undefined;
|
|
1400
|
+
} | undefined;
|
|
1390
1401
|
class?: string | undefined;
|
|
1391
1402
|
tooltip?: {
|
|
1392
1403
|
slot: string;
|
|
@@ -2293,6 +2304,17 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
|
|
|
2293
2304
|
initValue?: any;
|
|
2294
2305
|
slot?: string | undefined;
|
|
2295
2306
|
labelSlot?: string | undefined;
|
|
2307
|
+
inputSlot?: {
|
|
2308
|
+
prepend?: string | undefined;
|
|
2309
|
+
append?: string | undefined;
|
|
2310
|
+
suffix?: string | undefined;
|
|
2311
|
+
prefix?: string | undefined;
|
|
2312
|
+
doublePrepend?: string | undefined;
|
|
2313
|
+
doubleAppend?: string | undefined;
|
|
2314
|
+
doubleSuffix?: string | undefined;
|
|
2315
|
+
doublePrefix?: string | undefined;
|
|
2316
|
+
doubleSegment?: string | undefined;
|
|
2317
|
+
} | undefined;
|
|
2296
2318
|
class?: string | undefined;
|
|
2297
2319
|
tooltip?: {
|
|
2298
2320
|
slot: string;
|
|
@@ -2868,6 +2890,24 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
|
|
|
2868
2890
|
slot: string;
|
|
2869
2891
|
}) => any>> & Partial<Record<string, (_: {
|
|
2870
2892
|
slot: string;
|
|
2893
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
2894
|
+
slot: string;
|
|
2895
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
2896
|
+
slot: string;
|
|
2897
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
2898
|
+
slot: string;
|
|
2899
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
2900
|
+
slot: string;
|
|
2901
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
2902
|
+
slot: string;
|
|
2903
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
2904
|
+
slot: string;
|
|
2905
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
2906
|
+
slot: string;
|
|
2907
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
2908
|
+
slot: string;
|
|
2909
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
2910
|
+
slot: string;
|
|
2871
2911
|
}) => any>> & {
|
|
2872
2912
|
btnBox?(_: {}): any;
|
|
2873
2913
|
dialogTitle?(_: {
|
|
@@ -1,16 +1,47 @@
|
|
|
1
|
-
declare const _default: import("vue-demi").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
2
|
value?: number[] | undefined;
|
|
3
|
+
tag?: string | undefined;
|
|
3
4
|
}>, {
|
|
4
5
|
value: () => never[];
|
|
6
|
+
tag: string;
|
|
5
7
|
}>, {}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {
|
|
6
8
|
change: (event: [number | undefined, number | undefined]) => void;
|
|
7
9
|
input: (event: [number | undefined, number | undefined]) => void;
|
|
8
10
|
}, string, Readonly<import("vue-demi").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
9
11
|
value?: number[] | undefined;
|
|
12
|
+
tag?: string | undefined;
|
|
10
13
|
}>, {
|
|
11
14
|
value: () => never[];
|
|
15
|
+
tag: string;
|
|
12
16
|
}>>>, {
|
|
13
17
|
value: number[];
|
|
18
|
+
tag: string;
|
|
19
|
+
}>, {
|
|
20
|
+
"pre-prepend"?(_: {
|
|
21
|
+
slot: string;
|
|
22
|
+
}): any;
|
|
23
|
+
"pre-append"?(_: {
|
|
24
|
+
slot: string;
|
|
25
|
+
}): any;
|
|
26
|
+
"pre-suffix"?(_: {
|
|
27
|
+
slot: string;
|
|
28
|
+
}): any;
|
|
29
|
+
"pre-prefix"?(_: {
|
|
30
|
+
slot: string;
|
|
31
|
+
}): any;
|
|
32
|
+
symbol?(_: {}): any;
|
|
33
|
+
"after-prepend"?(_: {
|
|
34
|
+
slot: string;
|
|
35
|
+
}): any;
|
|
36
|
+
"after-append"?(_: {
|
|
37
|
+
slot: string;
|
|
38
|
+
}): any;
|
|
39
|
+
"after-suffix"?(_: {
|
|
40
|
+
slot: string;
|
|
41
|
+
}): any;
|
|
42
|
+
"after-prefix"?(_: {
|
|
43
|
+
slot: string;
|
|
44
|
+
}): any;
|
|
14
45
|
}>;
|
|
15
46
|
export default _default;
|
|
16
47
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -30,3 +61,8 @@ type __VLS_WithDefaults<P, D> = {
|
|
|
30
61
|
type __VLS_Prettify<T> = {
|
|
31
62
|
[K in keyof T]: T[K];
|
|
32
63
|
} & {};
|
|
64
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
65
|
+
new (): {
|
|
66
|
+
$scopedSlots: S;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
@@ -22,7 +22,41 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
|
|
|
22
22
|
value: any;
|
|
23
23
|
itemOptions: NfSearchFormItemOption;
|
|
24
24
|
itemWidth: number;
|
|
25
|
-
}>, Partial<Record<string, (_: {}) => any>> & Partial<Record<string, (_: {
|
|
25
|
+
}>, Partial<Record<string, (_: {}) => any>> & Partial<Record<string, (_: {
|
|
26
|
+
slot: string;
|
|
27
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
28
|
+
slot: string;
|
|
29
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
30
|
+
slot: string;
|
|
31
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
32
|
+
slot: string;
|
|
33
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
34
|
+
slot: string;
|
|
35
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
36
|
+
slot: string;
|
|
37
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
38
|
+
slot: string;
|
|
39
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
40
|
+
slot: string;
|
|
41
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
42
|
+
slot: string;
|
|
43
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
44
|
+
slot: string;
|
|
45
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
46
|
+
slot: string;
|
|
47
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
48
|
+
slot: string;
|
|
49
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
50
|
+
slot: string;
|
|
51
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
52
|
+
slot: string;
|
|
53
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
54
|
+
slot: string;
|
|
55
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
56
|
+
slot: string;
|
|
57
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
58
|
+
slot: string;
|
|
59
|
+
}) => any>> & Partial<Record<string, (_: {}) => any>>>;
|
|
26
60
|
export default _default;
|
|
27
61
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
28
62
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -16,6 +16,12 @@ __sfc_main$5.props = {
|
|
|
16
16
|
required: false,
|
|
17
17
|
type: Array,
|
|
18
18
|
default: () => []
|
|
19
|
+
},
|
|
20
|
+
tag: {
|
|
21
|
+
key: "tag",
|
|
22
|
+
required: false,
|
|
23
|
+
type: String,
|
|
24
|
+
default: "el-input-number"
|
|
19
25
|
}
|
|
20
26
|
};
|
|
21
27
|
__sfc_main$5.setup = (__props, __ctx) => {
|
|
@@ -101,7 +107,8 @@ var _sfc_render$5 = function render() {
|
|
|
101
107
|
class: ["nf-number-range", {
|
|
102
108
|
"is-error": _vm.limitError
|
|
103
109
|
}]
|
|
104
|
-
}, [_c(
|
|
110
|
+
}, [_c(_vm.tag, _vm._g(_vm._b({
|
|
111
|
+
tag: "component",
|
|
105
112
|
staticClass: "nf-number-range-el-input-number",
|
|
106
113
|
attrs: {
|
|
107
114
|
"min": _vm.limitRange[0],
|
|
@@ -117,9 +124,20 @@ var _sfc_render$5 = function render() {
|
|
|
117
124
|
},
|
|
118
125
|
expression: "minNumber"
|
|
119
126
|
}
|
|
120
|
-
}, "
|
|
121
|
-
|
|
122
|
-
},
|
|
127
|
+
}, "component", _vm.inputAttr, false), _vm.inputlistens), [_vm._t("pre-prepend", null, {
|
|
128
|
+
"slot": "prepend"
|
|
129
|
+
}), _vm._t("pre-append", null, {
|
|
130
|
+
"slot": "append"
|
|
131
|
+
}), _vm._t("pre-suffix", null, {
|
|
132
|
+
"slot": "suffix"
|
|
133
|
+
}), _vm._t("pre-prefix", null, {
|
|
134
|
+
"slot": "prefix"
|
|
135
|
+
})], 2), _vm._t("symbol", function() {
|
|
136
|
+
return [_c("span", {
|
|
137
|
+
staticClass: "symbol"
|
|
138
|
+
}, [_vm._v("~")])];
|
|
139
|
+
}), _c(_vm.tag, _vm._g(_vm._b({
|
|
140
|
+
tag: "component",
|
|
123
141
|
staticClass: "nf-number-range-el-input-number",
|
|
124
142
|
attrs: {
|
|
125
143
|
"min": _vm.limitRange[0],
|
|
@@ -135,7 +153,15 @@ var _sfc_render$5 = function render() {
|
|
|
135
153
|
},
|
|
136
154
|
expression: "maxNumber"
|
|
137
155
|
}
|
|
138
|
-
}, "
|
|
156
|
+
}, "component", _vm.inputAttr, false), _vm.inputlistens), [_vm._t("after-prepend", null, {
|
|
157
|
+
"slot": "prepend"
|
|
158
|
+
}), _vm._t("after-append", null, {
|
|
159
|
+
"slot": "append"
|
|
160
|
+
}), _vm._t("after-suffix", null, {
|
|
161
|
+
"slot": "suffix"
|
|
162
|
+
}), _vm._t("after-prefix", null, {
|
|
163
|
+
"slot": "prefix"
|
|
164
|
+
})], 2)], 2);
|
|
139
165
|
};
|
|
140
166
|
var _sfc_staticRenderFns$5 = [];
|
|
141
167
|
var __component__$5 = /* @__PURE__ */ vue2RuntimeHelpers.normalizeComponent(__sfc_main$5, _sfc_render$5, _sfc_staticRenderFns$5, false, null, null, null, null);
|
|
@@ -308,6 +334,42 @@ __sfc_main$3.setup = (__props, __ctx) => {
|
|
|
308
334
|
const slotName = vueDemi.computed(() => {
|
|
309
335
|
return props.itemOptions.slot || "";
|
|
310
336
|
});
|
|
337
|
+
const inputSlotPrepend = vueDemi.computed(() => {
|
|
338
|
+
var _a2;
|
|
339
|
+
return ((_a2 = props.itemOptions.inputSlot) == null ? void 0 : _a2.prepend) || "";
|
|
340
|
+
});
|
|
341
|
+
const inputSlotAppend = vueDemi.computed(() => {
|
|
342
|
+
var _a2;
|
|
343
|
+
return ((_a2 = props.itemOptions.inputSlot) == null ? void 0 : _a2.append) || "";
|
|
344
|
+
});
|
|
345
|
+
const inputSlotSuffix = vueDemi.computed(() => {
|
|
346
|
+
var _a2;
|
|
347
|
+
return ((_a2 = props.itemOptions.inputSlot) == null ? void 0 : _a2.suffix) || "";
|
|
348
|
+
});
|
|
349
|
+
const inputSlotPrefix = vueDemi.computed(() => {
|
|
350
|
+
var _a2;
|
|
351
|
+
return ((_a2 = props.itemOptions.inputSlot) == null ? void 0 : _a2.prefix) || "";
|
|
352
|
+
});
|
|
353
|
+
const doubleInputSlotPrepend = vueDemi.computed(() => {
|
|
354
|
+
var _a2;
|
|
355
|
+
return ((_a2 = props.itemOptions.inputSlot) == null ? void 0 : _a2.doublePrepend) || "";
|
|
356
|
+
});
|
|
357
|
+
const doubleInputSlotAppend = vueDemi.computed(() => {
|
|
358
|
+
var _a2;
|
|
359
|
+
return ((_a2 = props.itemOptions.inputSlot) == null ? void 0 : _a2.doubleAppend) || "";
|
|
360
|
+
});
|
|
361
|
+
const doubleInputSlotSuffix = vueDemi.computed(() => {
|
|
362
|
+
var _a2;
|
|
363
|
+
return ((_a2 = props.itemOptions.inputSlot) == null ? void 0 : _a2.doubleSuffix) || "";
|
|
364
|
+
});
|
|
365
|
+
const doubleInputSlotPrefix = vueDemi.computed(() => {
|
|
366
|
+
var _a2;
|
|
367
|
+
return ((_a2 = props.itemOptions.inputSlot) == null ? void 0 : _a2.doublePrefix) || "";
|
|
368
|
+
});
|
|
369
|
+
const doubleInputSlotSegment = vueDemi.computed(() => {
|
|
370
|
+
var _a2;
|
|
371
|
+
return ((_a2 = props.itemOptions.inputSlot) == null ? void 0 : _a2.doubleSegment) || "";
|
|
372
|
+
});
|
|
311
373
|
const width = vueDemi.computed(() => {
|
|
312
374
|
return (props.itemOptions.width || props.itemWidth) + "px";
|
|
313
375
|
});
|
|
@@ -468,6 +530,15 @@ __sfc_main$3.setup = (__props, __ctx) => {
|
|
|
468
530
|
};
|
|
469
531
|
return {
|
|
470
532
|
slotName,
|
|
533
|
+
inputSlotPrepend,
|
|
534
|
+
inputSlotAppend,
|
|
535
|
+
inputSlotSuffix,
|
|
536
|
+
inputSlotPrefix,
|
|
537
|
+
doubleInputSlotPrepend,
|
|
538
|
+
doubleInputSlotAppend,
|
|
539
|
+
doubleInputSlotSuffix,
|
|
540
|
+
doubleInputSlotPrefix,
|
|
541
|
+
doubleInputSlotSegment,
|
|
471
542
|
width,
|
|
472
543
|
currentVal,
|
|
473
544
|
bindProps,
|
|
@@ -522,7 +593,15 @@ var _sfc_render$3 = function render3() {
|
|
|
522
593
|
},
|
|
523
594
|
expression: "currentVal"
|
|
524
595
|
}
|
|
525
|
-
}, "el-input", _vm.bindProps, false), _vm.bindEvents)
|
|
596
|
+
}, "el-input", _vm.bindProps, false), _vm.bindEvents), [_vm._t(_vm.inputSlotPrepend, null, {
|
|
597
|
+
"slot": _vm.inputSlotPrepend
|
|
598
|
+
}), _vm._t(_vm.inputSlotAppend, null, {
|
|
599
|
+
"slot": _vm.inputSlotAppend
|
|
600
|
+
}), _vm._t(_vm.inputSlotSuffix, null, {
|
|
601
|
+
"slot": _vm.inputSlotSuffix
|
|
602
|
+
}), _vm._t(_vm.inputSlotPrefix, null, {
|
|
603
|
+
"slot": _vm.inputSlotPrefix
|
|
604
|
+
})], 2) : _vm._e(), _vm.isInputNumber ? _c("el-input-number", _vm._g(_vm._b({
|
|
526
605
|
attrs: {
|
|
527
606
|
"controls-position": _vm.itemOptions["controls-position"] || "right",
|
|
528
607
|
"placeholder": _vm.itemOptions.placeholder
|
|
@@ -534,7 +613,15 @@ var _sfc_render$3 = function render3() {
|
|
|
534
613
|
},
|
|
535
614
|
expression: "currentVal"
|
|
536
615
|
}
|
|
537
|
-
}, "el-input-number", _vm.bindProps, false), _vm.bindEvents)
|
|
616
|
+
}, "el-input-number", _vm.bindProps, false), _vm.bindEvents), [_vm._t(_vm.inputSlotPrepend, null, {
|
|
617
|
+
"slot": _vm.inputSlotPrepend
|
|
618
|
+
}), _vm._t(_vm.inputSlotAppend, null, {
|
|
619
|
+
"slot": _vm.inputSlotAppend
|
|
620
|
+
}), _vm._t(_vm.inputSlotSuffix, null, {
|
|
621
|
+
"slot": _vm.inputSlotSuffix
|
|
622
|
+
}), _vm._t(_vm.inputSlotPrefix, null, {
|
|
623
|
+
"slot": _vm.inputSlotPrefix
|
|
624
|
+
})], 2) : _vm._e(), _vm.isSelect ? _c("nf-virtual-select", _vm._g(_vm._b({
|
|
538
625
|
attrs: {
|
|
539
626
|
"width": _vm.width,
|
|
540
627
|
"item-options": _vm.itemOptions,
|
|
@@ -753,7 +840,25 @@ var _sfc_render$3 = function render3() {
|
|
|
753
840
|
},
|
|
754
841
|
expression: "currentVal"
|
|
755
842
|
}
|
|
756
|
-
}, "number-range", _vm.bindProps, false), _vm.bindEvents)
|
|
843
|
+
}, "number-range", _vm.bindProps, false), _vm.bindEvents), [_vm._t(_vm.inputSlotPrepend, null, {
|
|
844
|
+
"slot": "pre-prepend"
|
|
845
|
+
}), _vm._t(_vm.inputSlotAppend, null, {
|
|
846
|
+
"slot": "pre-append"
|
|
847
|
+
}), _vm._t(_vm.inputSlotSuffix, null, {
|
|
848
|
+
"slot": "pre-suffix"
|
|
849
|
+
}), _vm._t(_vm.inputSlotPrefix, null, {
|
|
850
|
+
"slot": "pre-prefix"
|
|
851
|
+
}), _vm._t(_vm.doubleInputSlotPrepend, null, {
|
|
852
|
+
"slot": "after-prepend"
|
|
853
|
+
}), _vm._t(_vm.doubleInputSlotAppend, null, {
|
|
854
|
+
"slot": "after-append"
|
|
855
|
+
}), _vm._t(_vm.doubleInputSlotSuffix, null, {
|
|
856
|
+
"slot": "after-suffix"
|
|
857
|
+
}), _vm._t(_vm.doubleInputSlotPrefix, null, {
|
|
858
|
+
"slot": "after-prefix"
|
|
859
|
+
}), _vm._t(_vm.doubleInputSlotSegment, null, {
|
|
860
|
+
"slot": "symbol"
|
|
861
|
+
})], 2) : _vm._e(), _vm.isTransferSelect ? _c("nf-transfer-select", _vm._g(_vm._b({
|
|
757
862
|
model: {
|
|
758
863
|
value: _vm.currentVal,
|
|
759
864
|
callback: function($$v) {
|
|
@@ -7588,6 +7693,7 @@ var _sfc_render = function render6() {
|
|
|
7588
7693
|
"isCollapseChange": _vm.isCollapseChange
|
|
7589
7694
|
}
|
|
7590
7695
|
}, [_vm._l(_vm.renderSearchFormItemOptions, function(item) {
|
|
7696
|
+
var _a, _b, _c2, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A;
|
|
7591
7697
|
return [_vm.itemIsShow(item) ? _c("nf-form-item", {
|
|
7592
7698
|
key: item.key,
|
|
7593
7699
|
class: (item.class || "") + " nf-search-form-nf-form-item",
|
|
@@ -7622,6 +7728,24 @@ var _sfc_render = function render6() {
|
|
|
7622
7728
|
"slot": item.tooltip.slot
|
|
7623
7729
|
}) : _vm._e(), item.slot ? _vm._t(item.slot, null, {
|
|
7624
7730
|
"slot": item.slot
|
|
7731
|
+
}) : _vm._e(), ((_a = item.inputSlot) == null ? void 0 : _a.prepend) ? _vm._t((_b = item.inputSlot) == null ? void 0 : _b.prepend, null, {
|
|
7732
|
+
"slot": (_c2 = item.inputSlot) == null ? void 0 : _c2.prepend
|
|
7733
|
+
}) : _vm._e(), ((_d = item.inputSlot) == null ? void 0 : _d.append) ? _vm._t((_e = item.inputSlot) == null ? void 0 : _e.append, null, {
|
|
7734
|
+
"slot": (_f = item.inputSlot) == null ? void 0 : _f.append
|
|
7735
|
+
}) : _vm._e(), ((_g = item.inputSlot) == null ? void 0 : _g.suffix) ? _vm._t((_h = item.inputSlot) == null ? void 0 : _h.suffix, null, {
|
|
7736
|
+
"slot": (_i = item.inputSlot) == null ? void 0 : _i.suffix
|
|
7737
|
+
}) : _vm._e(), ((_j = item.inputSlot) == null ? void 0 : _j.prefix) ? _vm._t((_k = item.inputSlot) == null ? void 0 : _k.prefix, null, {
|
|
7738
|
+
"slot": (_l = item.inputSlot) == null ? void 0 : _l.prefix
|
|
7739
|
+
}) : _vm._e(), ((_m = item.inputSlot) == null ? void 0 : _m.doublePrepend) ? _vm._t((_n = item.inputSlot) == null ? void 0 : _n.doublePrepend, null, {
|
|
7740
|
+
"slot": (_o = item.inputSlot) == null ? void 0 : _o.doublePrepend
|
|
7741
|
+
}) : _vm._e(), ((_p = item.inputSlot) == null ? void 0 : _p.doubleAppend) ? _vm._t((_q = item.inputSlot) == null ? void 0 : _q.doubleAppend, null, {
|
|
7742
|
+
"slot": (_r = item.inputSlot) == null ? void 0 : _r.doubleAppend
|
|
7743
|
+
}) : _vm._e(), ((_s = item.inputSlot) == null ? void 0 : _s.doubleSuffix) ? _vm._t((_t = item.inputSlot) == null ? void 0 : _t.doubleSuffix, null, {
|
|
7744
|
+
"slot": (_u = item.inputSlot) == null ? void 0 : _u.doubleSuffix
|
|
7745
|
+
}) : _vm._e(), ((_v = item.inputSlot) == null ? void 0 : _v.doublePrefix) ? _vm._t((_w = item.inputSlot) == null ? void 0 : _w.doublePrefix, null, {
|
|
7746
|
+
"slot": (_x = item.inputSlot) == null ? void 0 : _x.doublePrefix
|
|
7747
|
+
}) : _vm._e(), ((_y = item.inputSlot) == null ? void 0 : _y.doubleSegment) ? _vm._t((_z = item.inputSlot) == null ? void 0 : _z.doubleSegment, null, {
|
|
7748
|
+
"slot": (_A = item.inputSlot) == null ? void 0 : _A.doubleSegment
|
|
7625
7749
|
}) : _vm._e()], 2), _vm.closable ? _c("div", {
|
|
7626
7750
|
staticClass: "nf-search-form-nf-form-item-close-icon"
|
|
7627
7751
|
}, [_c("i", {
|
|
@@ -14,6 +14,12 @@ __sfc_main$5.props = {
|
|
|
14
14
|
required: false,
|
|
15
15
|
type: Array,
|
|
16
16
|
default: () => []
|
|
17
|
+
},
|
|
18
|
+
tag: {
|
|
19
|
+
key: "tag",
|
|
20
|
+
required: false,
|
|
21
|
+
type: String,
|
|
22
|
+
default: "el-input-number"
|
|
17
23
|
}
|
|
18
24
|
};
|
|
19
25
|
__sfc_main$5.setup = (__props, __ctx) => {
|
|
@@ -99,7 +105,8 @@ var _sfc_render$5 = function render() {
|
|
|
99
105
|
class: ["nf-number-range", {
|
|
100
106
|
"is-error": _vm.limitError
|
|
101
107
|
}]
|
|
102
|
-
}, [_c(
|
|
108
|
+
}, [_c(_vm.tag, _vm._g(_vm._b({
|
|
109
|
+
tag: "component",
|
|
103
110
|
staticClass: "nf-number-range-el-input-number",
|
|
104
111
|
attrs: {
|
|
105
112
|
"min": _vm.limitRange[0],
|
|
@@ -115,9 +122,20 @@ var _sfc_render$5 = function render() {
|
|
|
115
122
|
},
|
|
116
123
|
expression: "minNumber"
|
|
117
124
|
}
|
|
118
|
-
}, "
|
|
119
|
-
|
|
120
|
-
},
|
|
125
|
+
}, "component", _vm.inputAttr, false), _vm.inputlistens), [_vm._t("pre-prepend", null, {
|
|
126
|
+
"slot": "prepend"
|
|
127
|
+
}), _vm._t("pre-append", null, {
|
|
128
|
+
"slot": "append"
|
|
129
|
+
}), _vm._t("pre-suffix", null, {
|
|
130
|
+
"slot": "suffix"
|
|
131
|
+
}), _vm._t("pre-prefix", null, {
|
|
132
|
+
"slot": "prefix"
|
|
133
|
+
})], 2), _vm._t("symbol", function() {
|
|
134
|
+
return [_c("span", {
|
|
135
|
+
staticClass: "symbol"
|
|
136
|
+
}, [_vm._v("~")])];
|
|
137
|
+
}), _c(_vm.tag, _vm._g(_vm._b({
|
|
138
|
+
tag: "component",
|
|
121
139
|
staticClass: "nf-number-range-el-input-number",
|
|
122
140
|
attrs: {
|
|
123
141
|
"min": _vm.limitRange[0],
|
|
@@ -133,7 +151,15 @@ var _sfc_render$5 = function render() {
|
|
|
133
151
|
},
|
|
134
152
|
expression: "maxNumber"
|
|
135
153
|
}
|
|
136
|
-
}, "
|
|
154
|
+
}, "component", _vm.inputAttr, false), _vm.inputlistens), [_vm._t("after-prepend", null, {
|
|
155
|
+
"slot": "prepend"
|
|
156
|
+
}), _vm._t("after-append", null, {
|
|
157
|
+
"slot": "append"
|
|
158
|
+
}), _vm._t("after-suffix", null, {
|
|
159
|
+
"slot": "suffix"
|
|
160
|
+
}), _vm._t("after-prefix", null, {
|
|
161
|
+
"slot": "prefix"
|
|
162
|
+
})], 2)], 2);
|
|
137
163
|
};
|
|
138
164
|
var _sfc_staticRenderFns$5 = [];
|
|
139
165
|
var __component__$5 = /* @__PURE__ */ normalizeComponent(__sfc_main$5, _sfc_render$5, _sfc_staticRenderFns$5, false, null, null, null, null);
|
|
@@ -306,6 +332,42 @@ __sfc_main$3.setup = (__props, __ctx) => {
|
|
|
306
332
|
const slotName = computed(() => {
|
|
307
333
|
return props.itemOptions.slot || "";
|
|
308
334
|
});
|
|
335
|
+
const inputSlotPrepend = computed(() => {
|
|
336
|
+
var _a2;
|
|
337
|
+
return ((_a2 = props.itemOptions.inputSlot) == null ? void 0 : _a2.prepend) || "";
|
|
338
|
+
});
|
|
339
|
+
const inputSlotAppend = computed(() => {
|
|
340
|
+
var _a2;
|
|
341
|
+
return ((_a2 = props.itemOptions.inputSlot) == null ? void 0 : _a2.append) || "";
|
|
342
|
+
});
|
|
343
|
+
const inputSlotSuffix = computed(() => {
|
|
344
|
+
var _a2;
|
|
345
|
+
return ((_a2 = props.itemOptions.inputSlot) == null ? void 0 : _a2.suffix) || "";
|
|
346
|
+
});
|
|
347
|
+
const inputSlotPrefix = computed(() => {
|
|
348
|
+
var _a2;
|
|
349
|
+
return ((_a2 = props.itemOptions.inputSlot) == null ? void 0 : _a2.prefix) || "";
|
|
350
|
+
});
|
|
351
|
+
const doubleInputSlotPrepend = computed(() => {
|
|
352
|
+
var _a2;
|
|
353
|
+
return ((_a2 = props.itemOptions.inputSlot) == null ? void 0 : _a2.doublePrepend) || "";
|
|
354
|
+
});
|
|
355
|
+
const doubleInputSlotAppend = computed(() => {
|
|
356
|
+
var _a2;
|
|
357
|
+
return ((_a2 = props.itemOptions.inputSlot) == null ? void 0 : _a2.doubleAppend) || "";
|
|
358
|
+
});
|
|
359
|
+
const doubleInputSlotSuffix = computed(() => {
|
|
360
|
+
var _a2;
|
|
361
|
+
return ((_a2 = props.itemOptions.inputSlot) == null ? void 0 : _a2.doubleSuffix) || "";
|
|
362
|
+
});
|
|
363
|
+
const doubleInputSlotPrefix = computed(() => {
|
|
364
|
+
var _a2;
|
|
365
|
+
return ((_a2 = props.itemOptions.inputSlot) == null ? void 0 : _a2.doublePrefix) || "";
|
|
366
|
+
});
|
|
367
|
+
const doubleInputSlotSegment = computed(() => {
|
|
368
|
+
var _a2;
|
|
369
|
+
return ((_a2 = props.itemOptions.inputSlot) == null ? void 0 : _a2.doubleSegment) || "";
|
|
370
|
+
});
|
|
309
371
|
const width = computed(() => {
|
|
310
372
|
return (props.itemOptions.width || props.itemWidth) + "px";
|
|
311
373
|
});
|
|
@@ -466,6 +528,15 @@ __sfc_main$3.setup = (__props, __ctx) => {
|
|
|
466
528
|
};
|
|
467
529
|
return {
|
|
468
530
|
slotName,
|
|
531
|
+
inputSlotPrepend,
|
|
532
|
+
inputSlotAppend,
|
|
533
|
+
inputSlotSuffix,
|
|
534
|
+
inputSlotPrefix,
|
|
535
|
+
doubleInputSlotPrepend,
|
|
536
|
+
doubleInputSlotAppend,
|
|
537
|
+
doubleInputSlotSuffix,
|
|
538
|
+
doubleInputSlotPrefix,
|
|
539
|
+
doubleInputSlotSegment,
|
|
469
540
|
width,
|
|
470
541
|
currentVal,
|
|
471
542
|
bindProps,
|
|
@@ -520,7 +591,15 @@ var _sfc_render$3 = function render3() {
|
|
|
520
591
|
},
|
|
521
592
|
expression: "currentVal"
|
|
522
593
|
}
|
|
523
|
-
}, "el-input", _vm.bindProps, false), _vm.bindEvents)
|
|
594
|
+
}, "el-input", _vm.bindProps, false), _vm.bindEvents), [_vm._t(_vm.inputSlotPrepend, null, {
|
|
595
|
+
"slot": _vm.inputSlotPrepend
|
|
596
|
+
}), _vm._t(_vm.inputSlotAppend, null, {
|
|
597
|
+
"slot": _vm.inputSlotAppend
|
|
598
|
+
}), _vm._t(_vm.inputSlotSuffix, null, {
|
|
599
|
+
"slot": _vm.inputSlotSuffix
|
|
600
|
+
}), _vm._t(_vm.inputSlotPrefix, null, {
|
|
601
|
+
"slot": _vm.inputSlotPrefix
|
|
602
|
+
})], 2) : _vm._e(), _vm.isInputNumber ? _c("el-input-number", _vm._g(_vm._b({
|
|
524
603
|
attrs: {
|
|
525
604
|
"controls-position": _vm.itemOptions["controls-position"] || "right",
|
|
526
605
|
"placeholder": _vm.itemOptions.placeholder
|
|
@@ -532,7 +611,15 @@ var _sfc_render$3 = function render3() {
|
|
|
532
611
|
},
|
|
533
612
|
expression: "currentVal"
|
|
534
613
|
}
|
|
535
|
-
}, "el-input-number", _vm.bindProps, false), _vm.bindEvents)
|
|
614
|
+
}, "el-input-number", _vm.bindProps, false), _vm.bindEvents), [_vm._t(_vm.inputSlotPrepend, null, {
|
|
615
|
+
"slot": _vm.inputSlotPrepend
|
|
616
|
+
}), _vm._t(_vm.inputSlotAppend, null, {
|
|
617
|
+
"slot": _vm.inputSlotAppend
|
|
618
|
+
}), _vm._t(_vm.inputSlotSuffix, null, {
|
|
619
|
+
"slot": _vm.inputSlotSuffix
|
|
620
|
+
}), _vm._t(_vm.inputSlotPrefix, null, {
|
|
621
|
+
"slot": _vm.inputSlotPrefix
|
|
622
|
+
})], 2) : _vm._e(), _vm.isSelect ? _c("nf-virtual-select", _vm._g(_vm._b({
|
|
536
623
|
attrs: {
|
|
537
624
|
"width": _vm.width,
|
|
538
625
|
"item-options": _vm.itemOptions,
|
|
@@ -751,7 +838,25 @@ var _sfc_render$3 = function render3() {
|
|
|
751
838
|
},
|
|
752
839
|
expression: "currentVal"
|
|
753
840
|
}
|
|
754
|
-
}, "number-range", _vm.bindProps, false), _vm.bindEvents)
|
|
841
|
+
}, "number-range", _vm.bindProps, false), _vm.bindEvents), [_vm._t(_vm.inputSlotPrepend, null, {
|
|
842
|
+
"slot": "pre-prepend"
|
|
843
|
+
}), _vm._t(_vm.inputSlotAppend, null, {
|
|
844
|
+
"slot": "pre-append"
|
|
845
|
+
}), _vm._t(_vm.inputSlotSuffix, null, {
|
|
846
|
+
"slot": "pre-suffix"
|
|
847
|
+
}), _vm._t(_vm.inputSlotPrefix, null, {
|
|
848
|
+
"slot": "pre-prefix"
|
|
849
|
+
}), _vm._t(_vm.doubleInputSlotPrepend, null, {
|
|
850
|
+
"slot": "after-prepend"
|
|
851
|
+
}), _vm._t(_vm.doubleInputSlotAppend, null, {
|
|
852
|
+
"slot": "after-append"
|
|
853
|
+
}), _vm._t(_vm.doubleInputSlotSuffix, null, {
|
|
854
|
+
"slot": "after-suffix"
|
|
855
|
+
}), _vm._t(_vm.doubleInputSlotPrefix, null, {
|
|
856
|
+
"slot": "after-prefix"
|
|
857
|
+
}), _vm._t(_vm.doubleInputSlotSegment, null, {
|
|
858
|
+
"slot": "symbol"
|
|
859
|
+
})], 2) : _vm._e(), _vm.isTransferSelect ? _c("nf-transfer-select", _vm._g(_vm._b({
|
|
755
860
|
model: {
|
|
756
861
|
value: _vm.currentVal,
|
|
757
862
|
callback: function($$v) {
|
|
@@ -7586,6 +7691,7 @@ var _sfc_render = function render6() {
|
|
|
7586
7691
|
"isCollapseChange": _vm.isCollapseChange
|
|
7587
7692
|
}
|
|
7588
7693
|
}, [_vm._l(_vm.renderSearchFormItemOptions, function(item) {
|
|
7694
|
+
var _a, _b, _c2, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A;
|
|
7589
7695
|
return [_vm.itemIsShow(item) ? _c("nf-form-item", {
|
|
7590
7696
|
key: item.key,
|
|
7591
7697
|
class: (item.class || "") + " nf-search-form-nf-form-item",
|
|
@@ -7620,6 +7726,24 @@ var _sfc_render = function render6() {
|
|
|
7620
7726
|
"slot": item.tooltip.slot
|
|
7621
7727
|
}) : _vm._e(), item.slot ? _vm._t(item.slot, null, {
|
|
7622
7728
|
"slot": item.slot
|
|
7729
|
+
}) : _vm._e(), ((_a = item.inputSlot) == null ? void 0 : _a.prepend) ? _vm._t((_b = item.inputSlot) == null ? void 0 : _b.prepend, null, {
|
|
7730
|
+
"slot": (_c2 = item.inputSlot) == null ? void 0 : _c2.prepend
|
|
7731
|
+
}) : _vm._e(), ((_d = item.inputSlot) == null ? void 0 : _d.append) ? _vm._t((_e = item.inputSlot) == null ? void 0 : _e.append, null, {
|
|
7732
|
+
"slot": (_f = item.inputSlot) == null ? void 0 : _f.append
|
|
7733
|
+
}) : _vm._e(), ((_g = item.inputSlot) == null ? void 0 : _g.suffix) ? _vm._t((_h = item.inputSlot) == null ? void 0 : _h.suffix, null, {
|
|
7734
|
+
"slot": (_i = item.inputSlot) == null ? void 0 : _i.suffix
|
|
7735
|
+
}) : _vm._e(), ((_j = item.inputSlot) == null ? void 0 : _j.prefix) ? _vm._t((_k = item.inputSlot) == null ? void 0 : _k.prefix, null, {
|
|
7736
|
+
"slot": (_l = item.inputSlot) == null ? void 0 : _l.prefix
|
|
7737
|
+
}) : _vm._e(), ((_m = item.inputSlot) == null ? void 0 : _m.doublePrepend) ? _vm._t((_n = item.inputSlot) == null ? void 0 : _n.doublePrepend, null, {
|
|
7738
|
+
"slot": (_o = item.inputSlot) == null ? void 0 : _o.doublePrepend
|
|
7739
|
+
}) : _vm._e(), ((_p = item.inputSlot) == null ? void 0 : _p.doubleAppend) ? _vm._t((_q = item.inputSlot) == null ? void 0 : _q.doubleAppend, null, {
|
|
7740
|
+
"slot": (_r = item.inputSlot) == null ? void 0 : _r.doubleAppend
|
|
7741
|
+
}) : _vm._e(), ((_s = item.inputSlot) == null ? void 0 : _s.doubleSuffix) ? _vm._t((_t = item.inputSlot) == null ? void 0 : _t.doubleSuffix, null, {
|
|
7742
|
+
"slot": (_u = item.inputSlot) == null ? void 0 : _u.doubleSuffix
|
|
7743
|
+
}) : _vm._e(), ((_v = item.inputSlot) == null ? void 0 : _v.doublePrefix) ? _vm._t((_w = item.inputSlot) == null ? void 0 : _w.doublePrefix, null, {
|
|
7744
|
+
"slot": (_x = item.inputSlot) == null ? void 0 : _x.doublePrefix
|
|
7745
|
+
}) : _vm._e(), ((_y = item.inputSlot) == null ? void 0 : _y.doubleSegment) ? _vm._t((_z = item.inputSlot) == null ? void 0 : _z.doubleSegment, null, {
|
|
7746
|
+
"slot": (_A = item.inputSlot) == null ? void 0 : _A.doubleSegment
|
|
7623
7747
|
}) : _vm._e()], 2), _vm.closable ? _c("div", {
|
|
7624
7748
|
staticClass: "nf-search-form-nf-form-item-close-icon"
|
|
7625
7749
|
}, [_c("i", {
|
|
@@ -236,6 +236,17 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
|
|
|
236
236
|
initValue?: any;
|
|
237
237
|
slot?: string | undefined;
|
|
238
238
|
labelSlot?: string | undefined;
|
|
239
|
+
inputSlot?: {
|
|
240
|
+
prepend?: string | undefined;
|
|
241
|
+
append?: string | undefined;
|
|
242
|
+
suffix?: string | undefined;
|
|
243
|
+
prefix?: string | undefined;
|
|
244
|
+
doublePrepend?: string | undefined;
|
|
245
|
+
doubleAppend?: string | undefined;
|
|
246
|
+
doubleSuffix?: string | undefined;
|
|
247
|
+
doublePrefix?: string | undefined;
|
|
248
|
+
doubleSegment?: string | undefined;
|
|
249
|
+
} | undefined;
|
|
239
250
|
class?: string | undefined;
|
|
240
251
|
tooltip?: {
|
|
241
252
|
slot: string;
|
|
@@ -597,6 +608,24 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
|
|
|
597
608
|
slot: string;
|
|
598
609
|
}) => any>> & Partial<Record<string, (_: {
|
|
599
610
|
slot: string;
|
|
611
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
612
|
+
slot: string;
|
|
613
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
614
|
+
slot: string;
|
|
615
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
616
|
+
slot: string;
|
|
617
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
618
|
+
slot: string;
|
|
619
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
620
|
+
slot: string;
|
|
621
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
622
|
+
slot: string;
|
|
623
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
624
|
+
slot: string;
|
|
625
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
626
|
+
slot: string;
|
|
627
|
+
}) => any>> & Partial<Record<string, (_: {
|
|
628
|
+
slot: string;
|
|
600
629
|
}) => any>> & {
|
|
601
630
|
btnBox?(_: {}): any;
|
|
602
631
|
dialogTitle?(_: {
|
package/lib/types.d.ts
CHANGED
|
@@ -21,6 +21,17 @@ export type NfSearchFormItemOption = {
|
|
|
21
21
|
initValue?: any;
|
|
22
22
|
slot?: string;
|
|
23
23
|
labelSlot?: string;
|
|
24
|
+
inputSlot?: {
|
|
25
|
+
prepend?: string;
|
|
26
|
+
append?: string;
|
|
27
|
+
suffix?: string;
|
|
28
|
+
prefix?: string;
|
|
29
|
+
doublePrepend?: string;
|
|
30
|
+
doubleAppend?: string;
|
|
31
|
+
doubleSuffix?: string;
|
|
32
|
+
doublePrefix?: string;
|
|
33
|
+
doubleSegment?: string;
|
|
34
|
+
};
|
|
24
35
|
class?: string;
|
|
25
36
|
tooltip?: {
|
|
26
37
|
slot: string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div :class="['nf-number-range', { 'is-error': limitError }]">
|
|
3
|
-
<
|
|
3
|
+
<component
|
|
4
|
+
:is="tag"
|
|
4
5
|
v-model="minNumber"
|
|
5
6
|
v-bind="inputAttr"
|
|
6
7
|
:min="limitRange[0]"
|
|
@@ -10,9 +11,17 @@
|
|
|
10
11
|
:placeholder="customePlaceholder[0]"
|
|
11
12
|
class="nf-number-range-el-input-number"
|
|
12
13
|
v-on="inputlistens"
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
>
|
|
15
|
+
<slot slot="prepend" name="pre-prepend" />
|
|
16
|
+
<slot slot="append" name="pre-append" />
|
|
17
|
+
<slot slot="suffix" name="pre-suffix" />
|
|
18
|
+
<slot slot="prefix" name="pre-prefix" />
|
|
19
|
+
</component>
|
|
20
|
+
<slot name='symbol'>
|
|
21
|
+
<span class="symbol">~</span>
|
|
22
|
+
</slot>
|
|
23
|
+
<component
|
|
24
|
+
:is="tag"
|
|
16
25
|
v-model="maxNumber"
|
|
17
26
|
v-bind="inputAttr"
|
|
18
27
|
:min="limitRange[0]"
|
|
@@ -22,7 +31,12 @@
|
|
|
22
31
|
:placeholder="customePlaceholder[1]"
|
|
23
32
|
class="nf-number-range-el-input-number"
|
|
24
33
|
v-on="inputlistens"
|
|
25
|
-
|
|
34
|
+
>
|
|
35
|
+
<slot slot="prepend" name="after-prepend" />
|
|
36
|
+
<slot slot="append" name="after-append" />
|
|
37
|
+
<slot slot="suffix" name="after-suffix" />
|
|
38
|
+
<slot slot="prefix" name="after-prefix" />
|
|
39
|
+
</component>
|
|
26
40
|
</div>
|
|
27
41
|
</template>
|
|
28
42
|
|
|
@@ -44,8 +58,10 @@ import {
|
|
|
44
58
|
|
|
45
59
|
const props = withDefaults(defineProps<{
|
|
46
60
|
value?: number[],
|
|
61
|
+
tag?: string
|
|
47
62
|
}>(), {
|
|
48
63
|
value: () => [],
|
|
64
|
+
tag: 'el-input-number',
|
|
49
65
|
})
|
|
50
66
|
|
|
51
67
|
const minNumber = ref<number>()
|
|
@@ -11,7 +11,12 @@
|
|
|
11
11
|
v-on="bindEvents"
|
|
12
12
|
@input="handleInput"
|
|
13
13
|
:placeholder="itemOptions.placeholder"
|
|
14
|
-
|
|
14
|
+
>
|
|
15
|
+
<slot :name="inputSlotPrepend" :slot="inputSlotPrepend"></slot>
|
|
16
|
+
<slot :name="inputSlotAppend" :slot="inputSlotAppend"></slot>
|
|
17
|
+
<slot :name="inputSlotSuffix" :slot="inputSlotSuffix"></slot>
|
|
18
|
+
<slot :name="inputSlotPrefix" :slot="inputSlotPrefix"></slot>
|
|
19
|
+
</el-input>
|
|
15
20
|
<el-input-number
|
|
16
21
|
v-if="isInputNumber"
|
|
17
22
|
v-model="currentVal"
|
|
@@ -19,7 +24,12 @@
|
|
|
19
24
|
v-on="bindEvents"
|
|
20
25
|
:controls-position="itemOptions['controls-position'] || 'right'"
|
|
21
26
|
:placeholder="itemOptions.placeholder"
|
|
22
|
-
|
|
27
|
+
>
|
|
28
|
+
<slot :name="inputSlotPrepend" :slot="inputSlotPrepend"></slot>
|
|
29
|
+
<slot :name="inputSlotAppend" :slot="inputSlotAppend"></slot>
|
|
30
|
+
<slot :name="inputSlotSuffix" :slot="inputSlotSuffix"></slot>
|
|
31
|
+
<slot :name="inputSlotPrefix" :slot="inputSlotPrefix"></slot>
|
|
32
|
+
</el-input-number>
|
|
23
33
|
|
|
24
34
|
<nf-virtual-select
|
|
25
35
|
v-if="isSelect"
|
|
@@ -169,7 +179,17 @@
|
|
|
169
179
|
v-model="currentVal"
|
|
170
180
|
v-bind="bindProps"
|
|
171
181
|
v-on="bindEvents"
|
|
172
|
-
|
|
182
|
+
>
|
|
183
|
+
<slot :name="inputSlotPrepend" slot="pre-prepend"></slot>
|
|
184
|
+
<slot :name="inputSlotAppend" slot="pre-append"></slot>
|
|
185
|
+
<slot :name="inputSlotSuffix" slot="pre-suffix"></slot>
|
|
186
|
+
<slot :name="inputSlotPrefix" slot="pre-prefix"></slot>
|
|
187
|
+
<slot :name="doubleInputSlotPrepend" slot="after-prepend"></slot>
|
|
188
|
+
<slot :name="doubleInputSlotAppend" slot="after-append"></slot>
|
|
189
|
+
<slot :name="doubleInputSlotSuffix" slot="after-suffix"></slot>
|
|
190
|
+
<slot :name="doubleInputSlotPrefix" slot="after-prefix"></slot>
|
|
191
|
+
<slot :name="doubleInputSlotSegment" slot="symbol"></slot>
|
|
192
|
+
</number-range>
|
|
173
193
|
<!-- 选择穿梭 -->
|
|
174
194
|
<nf-transfer-select
|
|
175
195
|
v-if="isTransferSelect"
|
|
@@ -232,6 +252,35 @@ const slotName = computed(() => {
|
|
|
232
252
|
return props.itemOptions.slot || ''
|
|
233
253
|
})
|
|
234
254
|
|
|
255
|
+
const inputSlotPrepend = computed(() => {
|
|
256
|
+
return props.itemOptions.inputSlot?.prepend || ''
|
|
257
|
+
})
|
|
258
|
+
const inputSlotAppend = computed(() => {
|
|
259
|
+
return props.itemOptions.inputSlot?.append || ''
|
|
260
|
+
})
|
|
261
|
+
const inputSlotSuffix = computed(() => {
|
|
262
|
+
return props.itemOptions.inputSlot?.suffix || ''
|
|
263
|
+
})
|
|
264
|
+
const inputSlotPrefix = computed(() => {
|
|
265
|
+
return props.itemOptions.inputSlot?.prefix || ''
|
|
266
|
+
})
|
|
267
|
+
|
|
268
|
+
const doubleInputSlotPrepend = computed(() => {
|
|
269
|
+
return props.itemOptions.inputSlot?.doublePrepend || ''
|
|
270
|
+
})
|
|
271
|
+
const doubleInputSlotAppend = computed(() => {
|
|
272
|
+
return props.itemOptions.inputSlot?.doubleAppend || ''
|
|
273
|
+
})
|
|
274
|
+
const doubleInputSlotSuffix = computed(() => {
|
|
275
|
+
return props.itemOptions.inputSlot?.doubleSuffix || ''
|
|
276
|
+
})
|
|
277
|
+
const doubleInputSlotPrefix = computed(() => {
|
|
278
|
+
return props.itemOptions.inputSlot?.doublePrefix || ''
|
|
279
|
+
})
|
|
280
|
+
const doubleInputSlotSegment = computed(() => {
|
|
281
|
+
return props.itemOptions.inputSlot?.doubleSegment || ''
|
|
282
|
+
})
|
|
283
|
+
|
|
235
284
|
const width = computed(() => {
|
|
236
285
|
return (props.itemOptions.width || props.itemWidth) + 'px'
|
|
237
286
|
})
|
|
@@ -64,6 +64,15 @@
|
|
|
64
64
|
<slot :name="item.tooltip.slot" v-if="item.tooltip" :slot="item.tooltip.slot" />
|
|
65
65
|
<!-- 定制化SearchItem插槽-->
|
|
66
66
|
<slot :name="item.slot" v-if="item.slot" :slot="item.slot" />
|
|
67
|
+
<slot :name="item.inputSlot?.prepend" v-if="item.inputSlot?.prepend" :slot="item.inputSlot?.prepend" />
|
|
68
|
+
<slot :name="item.inputSlot?.append" v-if="item.inputSlot?.append" :slot="item.inputSlot?.append" />
|
|
69
|
+
<slot :name="item.inputSlot?.suffix" v-if="item.inputSlot?.suffix" :slot="item.inputSlot?.suffix" />
|
|
70
|
+
<slot :name="item.inputSlot?.prefix" v-if="item.inputSlot?.prefix" :slot="item.inputSlot?.prefix" />
|
|
71
|
+
<slot :name="item.inputSlot?.doublePrepend" v-if="item.inputSlot?.doublePrepend" :slot="item.inputSlot?.doublePrepend" />
|
|
72
|
+
<slot :name="item.inputSlot?.doubleAppend" v-if="item.inputSlot?.doubleAppend" :slot="item.inputSlot?.doubleAppend" />
|
|
73
|
+
<slot :name="item.inputSlot?.doubleSuffix" v-if="item.inputSlot?.doubleSuffix" :slot="item.inputSlot?.doubleSuffix" />
|
|
74
|
+
<slot :name="item.inputSlot?.doublePrefix" v-if="item.inputSlot?.doublePrefix" :slot="item.inputSlot?.doublePrefix" />
|
|
75
|
+
<slot :name="item.inputSlot?.doubleSegment" v-if="item.inputSlot?.doubleSegment" :slot="item.inputSlot?.doubleSegment" />
|
|
67
76
|
</search-form-item>
|
|
68
77
|
<!-- 控制显示该表单项-->
|
|
69
78
|
<div v-if="closable" class="nf-search-form-nf-form-item-close-icon">
|
package/package/types.ts
CHANGED
|
@@ -39,6 +39,18 @@ export type NfSearchFormItemOption = {
|
|
|
39
39
|
* 定制化labelSlot
|
|
40
40
|
*/
|
|
41
41
|
labelSlot?: string,
|
|
42
|
+
|
|
43
|
+
inputSlot?: {
|
|
44
|
+
prepend?: string
|
|
45
|
+
append?: string
|
|
46
|
+
suffix?: string
|
|
47
|
+
prefix?: string
|
|
48
|
+
doublePrepend?: string
|
|
49
|
+
doubleAppend?: string
|
|
50
|
+
doubleSuffix?: string
|
|
51
|
+
doublePrefix?: string
|
|
52
|
+
doubleSegment?: string
|
|
53
|
+
}
|
|
42
54
|
/**
|
|
43
55
|
* 定制化SearchItem类名
|
|
44
56
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@94ai/nf-search-form",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.15",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "zoujiahe <zoujiahe@94ai.com>",
|
|
@@ -14,22 +14,22 @@
|
|
|
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-button": "^3.3.
|
|
19
|
-
"@94ai/nf-double-half-year": "^3.3.
|
|
20
|
-
"@94ai/nf-double-quarter": "^3.3.
|
|
21
|
-
"@94ai/nf-double-week": "^3.3.
|
|
22
|
-
"@94ai/nf-double-year": "^3.3.
|
|
23
|
-
"@94ai/nf-drawer": "^3.3.
|
|
24
|
-
"@94ai/nf-form": "^3.3.
|
|
25
|
-
"@94ai/nf-form-item": "^3.3.
|
|
26
|
-
"@94ai/nf-half-year-picker": "^3.3.
|
|
27
|
-
"@94ai/nf-lazy-select": "^3.3.
|
|
28
|
-
"@94ai/nf-message": "^3.3.
|
|
29
|
-
"@94ai/nf-quarter-picker": "^3.3.
|
|
30
|
-
"@94ai/nf-theme-chalk": "^3.3.
|
|
31
|
-
"@94ai/nf-transfer-select": "^3.3.
|
|
32
|
-
"@94ai/nf-virtual-select": "^3.3.
|
|
17
|
+
"@94ai/common-utils": "^3.3.15",
|
|
18
|
+
"@94ai/nf-button": "^3.3.15",
|
|
19
|
+
"@94ai/nf-double-half-year": "^3.3.15",
|
|
20
|
+
"@94ai/nf-double-quarter": "^3.3.15",
|
|
21
|
+
"@94ai/nf-double-week": "^3.3.15",
|
|
22
|
+
"@94ai/nf-double-year": "^3.3.15",
|
|
23
|
+
"@94ai/nf-drawer": "^3.3.15",
|
|
24
|
+
"@94ai/nf-form": "^3.3.15",
|
|
25
|
+
"@94ai/nf-form-item": "^3.3.15",
|
|
26
|
+
"@94ai/nf-half-year-picker": "^3.3.15",
|
|
27
|
+
"@94ai/nf-lazy-select": "^3.3.15",
|
|
28
|
+
"@94ai/nf-message": "^3.3.15",
|
|
29
|
+
"@94ai/nf-quarter-picker": "^3.3.15",
|
|
30
|
+
"@94ai/nf-theme-chalk": "^3.3.15",
|
|
31
|
+
"@94ai/nf-transfer-select": "^3.3.15",
|
|
32
|
+
"@94ai/nf-virtual-select": "^3.3.15",
|
|
33
33
|
"idb-keyval": "^6.2.1",
|
|
34
34
|
"resize-observer-polyfill": "^1.5.1",
|
|
35
35
|
"vue-demi": "^0.14.5",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"types": "lib/index.d.ts",
|
|
49
49
|
"main": "lib/nf-search-form.cjs.js",
|
|
50
50
|
"module": "lib/nf-search-form.esm-bundler.js",
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "e6155f9f8c194ecd8b8654a4f09f859bb7b6e048"
|
|
52
52
|
}
|