@94ai/nf-search-form 3.2.20 → 3.2.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.
- package/lib/index.d.ts +283 -119
- package/lib/nf-column-check-dialog.vue.d.ts +9 -0
- package/lib/nf-column-check-drawer.vue.d.ts +9 -9
- package/lib/nf-search-form-item.vue.d.ts +0 -9
- package/lib/nf-search-form.cjs.js +159 -97
- package/lib/nf-search-form.esm-bundler.js +159 -97
- package/lib/nf-search-form.vue.d.ts +100 -42
- package/package/nf-column-check-dialog.vue +4 -0
- package/package/nf-search-form-item.vue +22 -7
- package/package/nf-search-form.vue +49 -21
- package/package.json +16 -16
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { NfSearchFormItemOption } from '../..nf-search-form/lib/types';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineComponent<{
|
|
3
|
+
storageKey: {
|
|
4
|
+
type: import("vue-demi").PropType<string>;
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
3
7
|
show: {
|
|
4
8
|
type: import("vue-demi").PropType<boolean>;
|
|
5
9
|
default: boolean;
|
|
@@ -84,6 +88,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
|
|
|
84
88
|
"update:show": (event: boolean) => void;
|
|
85
89
|
save: (event: Record<string, any>) => void;
|
|
86
90
|
}, string, Readonly<import("vue-demi").ExtractPropTypes<{
|
|
91
|
+
storageKey: {
|
|
92
|
+
type: import("vue-demi").PropType<string>;
|
|
93
|
+
default: string;
|
|
94
|
+
};
|
|
87
95
|
show: {
|
|
88
96
|
type: import("vue-demi").PropType<boolean>;
|
|
89
97
|
default: boolean;
|
|
@@ -165,6 +173,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
|
|
|
165
173
|
default: boolean;
|
|
166
174
|
};
|
|
167
175
|
}>>, {
|
|
176
|
+
storageKey: string;
|
|
168
177
|
show: boolean;
|
|
169
178
|
title: string;
|
|
170
179
|
width: string;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { PropType } from 'vue-demi';
|
|
2
2
|
declare const _default: import("vue-demi").DefineComponent<{
|
|
3
|
-
tableColumns: {
|
|
4
|
-
type: PropType<Record<string, any>[]>;
|
|
5
|
-
default: () => never[];
|
|
6
|
-
};
|
|
7
3
|
storageKey: {
|
|
8
4
|
type: PropType<string>;
|
|
9
5
|
default: string;
|
|
10
6
|
};
|
|
7
|
+
tableColumns: {
|
|
8
|
+
type: PropType<Record<string, any>[]>;
|
|
9
|
+
default: () => never[];
|
|
10
|
+
};
|
|
11
11
|
selectEmptyWarningTips: {
|
|
12
12
|
type: PropType<string>;
|
|
13
13
|
default: string;
|
|
@@ -63,14 +63,14 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
63
63
|
}>;
|
|
64
64
|
drag: import("vue-demi").Ref<boolean>;
|
|
65
65
|
}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue-demi").ExtractPropTypes<{
|
|
66
|
-
tableColumns: {
|
|
67
|
-
type: PropType<Record<string, any>[]>;
|
|
68
|
-
default: () => never[];
|
|
69
|
-
};
|
|
70
66
|
storageKey: {
|
|
71
67
|
type: PropType<string>;
|
|
72
68
|
default: string;
|
|
73
69
|
};
|
|
70
|
+
tableColumns: {
|
|
71
|
+
type: PropType<Record<string, any>[]>;
|
|
72
|
+
default: () => never[];
|
|
73
|
+
};
|
|
74
74
|
selectEmptyWarningTips: {
|
|
75
75
|
type: PropType<string>;
|
|
76
76
|
default: string;
|
|
@@ -100,8 +100,8 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
100
100
|
default: (length: any) => string;
|
|
101
101
|
};
|
|
102
102
|
}>>, {
|
|
103
|
-
tableColumns: Record<string, any>[];
|
|
104
103
|
storageKey: string;
|
|
104
|
+
tableColumns: Record<string, any>[];
|
|
105
105
|
selectEmptyWarningTips: string;
|
|
106
106
|
searchPlaceholder: string;
|
|
107
107
|
fixedLeftDesc: string;
|
|
@@ -12,10 +12,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
|
|
|
12
12
|
type: import("vue-demi").PropType<number>;
|
|
13
13
|
default: number;
|
|
14
14
|
};
|
|
15
|
-
labelWidth: {
|
|
16
|
-
type: import("vue-demi").PropType<number>;
|
|
17
|
-
default: number;
|
|
18
|
-
};
|
|
19
15
|
}, {}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {
|
|
20
16
|
input: (event: any) => void;
|
|
21
17
|
"update:value": (event: any) => void;
|
|
@@ -32,15 +28,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
|
|
|
32
28
|
type: import("vue-demi").PropType<number>;
|
|
33
29
|
default: number;
|
|
34
30
|
};
|
|
35
|
-
labelWidth: {
|
|
36
|
-
type: import("vue-demi").PropType<number>;
|
|
37
|
-
default: number;
|
|
38
|
-
};
|
|
39
31
|
}>>, {
|
|
40
32
|
value: any;
|
|
41
33
|
itemOptions: NfSearchFormItemOption;
|
|
42
34
|
itemWidth: number;
|
|
43
|
-
labelWidth: number;
|
|
44
35
|
}>, Partial<Record<string, (_: {}) => any>> & Partial<Record<string, (_: {}) => any>>>;
|
|
45
36
|
export default _default;
|
|
46
37
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -20,10 +20,10 @@ __sfc_main$5.setup = (__props, __ctx) => {
|
|
|
20
20
|
const minNumber = vueDemi.ref();
|
|
21
21
|
const maxNumber = vueDemi.ref();
|
|
22
22
|
const limitError = vueDemi.ref(false);
|
|
23
|
-
const
|
|
23
|
+
const instance = (_a = vueDemi.getCurrentInstance()) == null ? void 0 : _a.proxy;
|
|
24
24
|
const emit = __ctx.emit;
|
|
25
25
|
const inputlistens = vueDemi.computed(() => {
|
|
26
|
-
const list = Object.assign({}, (
|
|
26
|
+
const list = Object.assign({}, (instance == null ? void 0 : instance.$listeners) || {}, {
|
|
27
27
|
change: function() {
|
|
28
28
|
emit("change", [minNumber.value, maxNumber.value]);
|
|
29
29
|
}
|
|
@@ -33,25 +33,25 @@ __sfc_main$5.setup = (__props, __ctx) => {
|
|
|
33
33
|
});
|
|
34
34
|
const limitRange = vueDemi.computed(() => {
|
|
35
35
|
var _a2;
|
|
36
|
-
return ((_a2 =
|
|
36
|
+
return ((_a2 = instance == null ? void 0 : instance.$attrs) == null ? void 0 : _a2.limitRange) || [-Infinity, Infinity];
|
|
37
37
|
});
|
|
38
38
|
const step = vueDemi.computed(() => {
|
|
39
39
|
var _a2;
|
|
40
|
-
return ((_a2 =
|
|
40
|
+
return ((_a2 = instance == null ? void 0 : instance.$attrs) == null ? void 0 : _a2.step) ? Number(instance.$attrs.step) : 0;
|
|
41
41
|
});
|
|
42
42
|
const stepStrictly = vueDemi.computed(() => {
|
|
43
43
|
var _a2;
|
|
44
|
-
return !!((_a2 =
|
|
44
|
+
return !!((_a2 = instance == null ? void 0 : instance.$attrs) == null ? void 0 : _a2.stepStrictly) || false;
|
|
45
45
|
});
|
|
46
46
|
const inputAttr = vueDemi.computed(() => {
|
|
47
47
|
return {
|
|
48
48
|
controls: false,
|
|
49
|
-
...
|
|
49
|
+
...instance == null ? void 0 : instance.$attrs
|
|
50
50
|
};
|
|
51
51
|
});
|
|
52
52
|
const customePlaceholder = vueDemi.computed(() => {
|
|
53
53
|
var _a2, _b, _c;
|
|
54
|
-
return ((_a2 =
|
|
54
|
+
return ((_a2 = instance == null ? void 0 : instance.$attrs) == null ? void 0 : _a2.customePlaceholder) || [(_b = instance == null ? void 0 : instance.$attrs) == null ? void 0 : _b.placeholder, (_c = instance == null ? void 0 : instance.$attrs) == null ? void 0 : _c.placeholder];
|
|
55
55
|
});
|
|
56
56
|
vueDemi.watch(() => {
|
|
57
57
|
return props.value;
|
|
@@ -273,6 +273,52 @@ var _sfc_render$4 = function render2() {
|
|
|
273
273
|
var _sfc_staticRenderFns$4 = [];
|
|
274
274
|
var __component__$4 = /* @__PURE__ */ vue2RuntimeHelpers.normalizeComponent(__sfc_main$4, _sfc_render$4, _sfc_staticRenderFns$4, false, null, null, null, null);
|
|
275
275
|
const TimeRange = __component__$4.exports;
|
|
276
|
+
function createUniqueString(randomLength = 36) {
|
|
277
|
+
return Number(Math.random().toString().substr(3, randomLength) + Date.now()).toString(36);
|
|
278
|
+
}
|
|
279
|
+
function debounce(func, wait, immediate) {
|
|
280
|
+
let timeout, args, context, timestamp, result;
|
|
281
|
+
const later = function() {
|
|
282
|
+
const last = +/* @__PURE__ */ new Date() - timestamp;
|
|
283
|
+
if (last < wait && last > 0) {
|
|
284
|
+
timeout = setTimeout(later, wait - last);
|
|
285
|
+
} else {
|
|
286
|
+
timeout = null;
|
|
287
|
+
if (!immediate) {
|
|
288
|
+
result = func.apply(context, args);
|
|
289
|
+
if (!timeout)
|
|
290
|
+
context = args = null;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
};
|
|
294
|
+
return function(...args2) {
|
|
295
|
+
context = this;
|
|
296
|
+
timestamp = +/* @__PURE__ */ new Date();
|
|
297
|
+
const callNow = immediate && !timeout;
|
|
298
|
+
if (!timeout)
|
|
299
|
+
timeout = setTimeout(later, wait);
|
|
300
|
+
if (callNow) {
|
|
301
|
+
result = func.apply(context, args2);
|
|
302
|
+
context = args2 = null;
|
|
303
|
+
}
|
|
304
|
+
return result;
|
|
305
|
+
};
|
|
306
|
+
}
|
|
307
|
+
function deepClone(source) {
|
|
308
|
+
if (!source && typeof source !== "object") {
|
|
309
|
+
throw new Error("error arguments shallowClone");
|
|
310
|
+
}
|
|
311
|
+
const targetObj = source.constructor === Array ? [] : {};
|
|
312
|
+
Object.keys(source).forEach((keys) => {
|
|
313
|
+
if (source[keys] && typeof source[keys] === "object") {
|
|
314
|
+
targetObj[keys] = source[keys].constructor === Array ? [] : {};
|
|
315
|
+
targetObj[keys] = deepClone(source[keys]);
|
|
316
|
+
} else {
|
|
317
|
+
targetObj[keys] = source[keys];
|
|
318
|
+
}
|
|
319
|
+
});
|
|
320
|
+
return targetObj;
|
|
321
|
+
}
|
|
276
322
|
const __sfc_main$3 = vueDemi.defineComponent({
|
|
277
323
|
name: "NfSearchFromItem"
|
|
278
324
|
});
|
|
@@ -294,12 +340,6 @@ __sfc_main$3.props = {
|
|
|
294
340
|
required: false,
|
|
295
341
|
type: Number,
|
|
296
342
|
default: 170
|
|
297
|
-
},
|
|
298
|
-
labelWidth: {
|
|
299
|
-
key: "labelWidth",
|
|
300
|
-
required: false,
|
|
301
|
-
type: Number,
|
|
302
|
-
default: 70
|
|
303
343
|
}
|
|
304
344
|
};
|
|
305
345
|
__sfc_main$3.setup = (__props, __ctx) => {
|
|
@@ -320,9 +360,8 @@ __sfc_main$3.setup = (__props, __ctx) => {
|
|
|
320
360
|
emit("update:value", val);
|
|
321
361
|
}
|
|
322
362
|
});
|
|
323
|
-
const
|
|
363
|
+
const getProps = () => {
|
|
324
364
|
let obj = {
|
|
325
|
-
size: "mini",
|
|
326
365
|
clearable: true,
|
|
327
366
|
...props.itemOptions
|
|
328
367
|
};
|
|
@@ -335,6 +374,7 @@ __sfc_main$3.setup = (__props, __ctx) => {
|
|
|
335
374
|
}
|
|
336
375
|
delete obj.options;
|
|
337
376
|
}
|
|
377
|
+
obj.key = createUniqueString();
|
|
338
378
|
delete obj.label;
|
|
339
379
|
delete obj.prop;
|
|
340
380
|
delete obj.element;
|
|
@@ -343,6 +383,14 @@ __sfc_main$3.setup = (__props, __ctx) => {
|
|
|
343
383
|
delete obj.events;
|
|
344
384
|
delete obj.tooltip;
|
|
345
385
|
return obj;
|
|
386
|
+
};
|
|
387
|
+
const bindProps = vueDemi.ref(getProps());
|
|
388
|
+
vueDemi.watch(() => {
|
|
389
|
+
return props.itemOptions;
|
|
390
|
+
}, () => {
|
|
391
|
+
bindProps.value = getProps();
|
|
392
|
+
}, {
|
|
393
|
+
deep: true
|
|
346
394
|
});
|
|
347
395
|
const bindEvents = vueDemi.computed(() => {
|
|
348
396
|
const events = {
|
|
@@ -494,7 +542,6 @@ var _sfc_render$3 = function render3() {
|
|
|
494
542
|
}
|
|
495
543
|
}, [_vm.slotName ? [_vm._t(_vm.slotName)] : [_vm.isInput ? _c("el-input", _vm._g(_vm._b({
|
|
496
544
|
attrs: {
|
|
497
|
-
"size": "mini",
|
|
498
545
|
"placeholder": _vm.itemOptions.placeholder
|
|
499
546
|
},
|
|
500
547
|
on: {
|
|
@@ -742,6 +789,12 @@ const __sfc_main$2 = vueDemi.defineComponent({
|
|
|
742
789
|
name: "NfColumnCheckDialog"
|
|
743
790
|
});
|
|
744
791
|
__sfc_main$2.props = {
|
|
792
|
+
storageKey: {
|
|
793
|
+
key: "storageKey",
|
|
794
|
+
required: false,
|
|
795
|
+
type: String,
|
|
796
|
+
default: "nf-table-columns-cached-key"
|
|
797
|
+
},
|
|
745
798
|
show: {
|
|
746
799
|
key: "show",
|
|
747
800
|
required: false,
|
|
@@ -864,6 +917,7 @@ __sfc_main$2.props = {
|
|
|
864
917
|
}
|
|
865
918
|
};
|
|
866
919
|
__sfc_main$2.setup = (__props, __ctx) => {
|
|
920
|
+
var _a;
|
|
867
921
|
const props = __props;
|
|
868
922
|
const tableData = vueDemi.ref({});
|
|
869
923
|
const emit = __ctx.emit;
|
|
@@ -896,8 +950,9 @@ __sfc_main$2.setup = (__props, __ctx) => {
|
|
|
896
950
|
vueDemi.onMounted(() => {
|
|
897
951
|
addInitValue();
|
|
898
952
|
});
|
|
953
|
+
const instance = (_a = vueDemi.getCurrentInstance()) == null ? void 0 : _a.proxy;
|
|
899
954
|
const submit = () => {
|
|
900
|
-
var
|
|
955
|
+
var _a2;
|
|
901
956
|
visible.value = false;
|
|
902
957
|
const columnState = {};
|
|
903
958
|
props.tableColumns.map((i, index2) => {
|
|
@@ -907,14 +962,14 @@ __sfc_main$2.setup = (__props, __ctx) => {
|
|
|
907
962
|
index: index2
|
|
908
963
|
};
|
|
909
964
|
});
|
|
910
|
-
(
|
|
965
|
+
(_a2 = instance == null ? void 0 : instance.$cookies) == null ? void 0 : _a2.set(props.storageKey, JSON.stringify(columnState), -1);
|
|
911
966
|
emit("save", tableData.value);
|
|
912
967
|
};
|
|
913
968
|
const addInitValue = () => {
|
|
914
969
|
const obj = {};
|
|
915
970
|
props.tableColumns.forEach((v) => {
|
|
916
|
-
var
|
|
917
|
-
obj[v.prop] = ((
|
|
971
|
+
var _a2;
|
|
972
|
+
obj[v.prop] = ((_a2 = props.showColumns) == null ? void 0 : _a2.length) ? props.showColumns.includes(v.prop) : true;
|
|
918
973
|
});
|
|
919
974
|
tableData.value = obj;
|
|
920
975
|
};
|
|
@@ -5949,52 +6004,6 @@ const require$$0 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
|
|
|
5949
6004
|
})(vuedraggable_umd);
|
|
5950
6005
|
var vuedraggable_umdExports = vuedraggable_umd.exports;
|
|
5951
6006
|
const draggable = /* @__PURE__ */ getDefaultExportFromCjs(vuedraggable_umdExports);
|
|
5952
|
-
function createUniqueString(randomLength = 36) {
|
|
5953
|
-
return Number(Math.random().toString().substr(3, randomLength) + Date.now()).toString(36);
|
|
5954
|
-
}
|
|
5955
|
-
function debounce(func, wait, immediate) {
|
|
5956
|
-
let timeout, args, context, timestamp, result;
|
|
5957
|
-
const later = function() {
|
|
5958
|
-
const last = +/* @__PURE__ */ new Date() - timestamp;
|
|
5959
|
-
if (last < wait && last > 0) {
|
|
5960
|
-
timeout = setTimeout(later, wait - last);
|
|
5961
|
-
} else {
|
|
5962
|
-
timeout = null;
|
|
5963
|
-
if (!immediate) {
|
|
5964
|
-
result = func.apply(context, args);
|
|
5965
|
-
if (!timeout)
|
|
5966
|
-
context = args = null;
|
|
5967
|
-
}
|
|
5968
|
-
}
|
|
5969
|
-
};
|
|
5970
|
-
return function(...args2) {
|
|
5971
|
-
context = this;
|
|
5972
|
-
timestamp = +/* @__PURE__ */ new Date();
|
|
5973
|
-
const callNow = immediate && !timeout;
|
|
5974
|
-
if (!timeout)
|
|
5975
|
-
timeout = setTimeout(later, wait);
|
|
5976
|
-
if (callNow) {
|
|
5977
|
-
result = func.apply(context, args2);
|
|
5978
|
-
context = args2 = null;
|
|
5979
|
-
}
|
|
5980
|
-
return result;
|
|
5981
|
-
};
|
|
5982
|
-
}
|
|
5983
|
-
function deepClone(source) {
|
|
5984
|
-
if (!source && typeof source !== "object") {
|
|
5985
|
-
throw new Error("error arguments shallowClone");
|
|
5986
|
-
}
|
|
5987
|
-
const targetObj = source.constructor === Array ? [] : {};
|
|
5988
|
-
Object.keys(source).forEach((keys) => {
|
|
5989
|
-
if (source[keys] && typeof source[keys] === "object") {
|
|
5990
|
-
targetObj[keys] = source[keys].constructor === Array ? [] : {};
|
|
5991
|
-
targetObj[keys] = deepClone(source[keys]);
|
|
5992
|
-
} else {
|
|
5993
|
-
targetObj[keys] = source[keys];
|
|
5994
|
-
}
|
|
5995
|
-
});
|
|
5996
|
-
return targetObj;
|
|
5997
|
-
}
|
|
5998
6007
|
const __sfc_main$1 = vueDemi.defineComponent({
|
|
5999
6008
|
name: "NfColumnCheckDrawer"
|
|
6000
6009
|
});
|
|
@@ -6056,7 +6065,7 @@ __sfc_main$1.props = {
|
|
|
6056
6065
|
};
|
|
6057
6066
|
__sfc_main$1.setup = (__props, __ctx) => {
|
|
6058
6067
|
var _a;
|
|
6059
|
-
const
|
|
6068
|
+
const instance = (_a = vueDemi.getCurrentInstance()) == null ? void 0 : _a.proxy;
|
|
6060
6069
|
const props = __props;
|
|
6061
6070
|
const currentTable = vueDemi.ref([]);
|
|
6062
6071
|
const showColumn = vueDemi.ref([]);
|
|
@@ -6167,7 +6176,7 @@ __sfc_main$1.setup = (__props, __ctx) => {
|
|
|
6167
6176
|
var _a2;
|
|
6168
6177
|
const newTableColumns = [...fixedColumn.value, ...unFixedColumn.value];
|
|
6169
6178
|
if (newTableColumns.filter((item) => !item.initHidden).length === 0) {
|
|
6170
|
-
|
|
6179
|
+
instance == null ? void 0 : instance.$openMessage.warning({
|
|
6171
6180
|
message: props.selectEmptyWarningTips,
|
|
6172
6181
|
duration: 2e3
|
|
6173
6182
|
});
|
|
@@ -6185,7 +6194,7 @@ __sfc_main$1.setup = (__props, __ctx) => {
|
|
|
6185
6194
|
};
|
|
6186
6195
|
obj[i.prop] = !columnState[i.prop].initHidden;
|
|
6187
6196
|
});
|
|
6188
|
-
(_a2 =
|
|
6197
|
+
(_a2 = instance == null ? void 0 : instance.$cookies) == null ? void 0 : _a2.set(props.storageKey, JSON.stringify(columnState), -1);
|
|
6189
6198
|
return obj;
|
|
6190
6199
|
};
|
|
6191
6200
|
const drag = vueDemi.ref(false);
|
|
@@ -6456,6 +6465,52 @@ __sfc_main.props = {
|
|
|
6456
6465
|
type: Boolean,
|
|
6457
6466
|
default: false
|
|
6458
6467
|
},
|
|
6468
|
+
expandBtnType: {
|
|
6469
|
+
key: "expandBtnType",
|
|
6470
|
+
required: false,
|
|
6471
|
+
type: String,
|
|
6472
|
+
default: "default"
|
|
6473
|
+
},
|
|
6474
|
+
expandBtnIcon: {
|
|
6475
|
+
key: "expandBtnIcon",
|
|
6476
|
+
required: false,
|
|
6477
|
+
type: String
|
|
6478
|
+
},
|
|
6479
|
+
expandBtnPlain: {
|
|
6480
|
+
key: "expandBtnPlain",
|
|
6481
|
+
required: false,
|
|
6482
|
+
type: Boolean,
|
|
6483
|
+
default: false
|
|
6484
|
+
},
|
|
6485
|
+
expandBtnSize: {
|
|
6486
|
+
key: "expandBtnSize",
|
|
6487
|
+
required: false,
|
|
6488
|
+
type: String
|
|
6489
|
+
},
|
|
6490
|
+
expandBtnRound: {
|
|
6491
|
+
key: "expandBtnRound",
|
|
6492
|
+
required: false,
|
|
6493
|
+
type: Boolean,
|
|
6494
|
+
default: false
|
|
6495
|
+
},
|
|
6496
|
+
expandBtnCircle: {
|
|
6497
|
+
key: "expandBtnCircle",
|
|
6498
|
+
required: false,
|
|
6499
|
+
type: Boolean,
|
|
6500
|
+
default: false
|
|
6501
|
+
},
|
|
6502
|
+
expandBtnLoading: {
|
|
6503
|
+
key: "expandBtnLoading",
|
|
6504
|
+
required: false,
|
|
6505
|
+
type: Boolean,
|
|
6506
|
+
default: false
|
|
6507
|
+
},
|
|
6508
|
+
expandBtnDisabled: {
|
|
6509
|
+
key: "expandBtnDisabled",
|
|
6510
|
+
required: false,
|
|
6511
|
+
type: Boolean,
|
|
6512
|
+
default: false
|
|
6513
|
+
},
|
|
6459
6514
|
rules: {
|
|
6460
6515
|
key: "rules",
|
|
6461
6516
|
required: false,
|
|
@@ -6502,7 +6557,7 @@ __sfc_main.props = {
|
|
|
6502
6557
|
key: "size",
|
|
6503
6558
|
required: false,
|
|
6504
6559
|
type: String,
|
|
6505
|
-
default:
|
|
6560
|
+
default: "mini"
|
|
6506
6561
|
},
|
|
6507
6562
|
disabled: {
|
|
6508
6563
|
key: "disabled",
|
|
@@ -6621,8 +6676,7 @@ __sfc_main.props = {
|
|
|
6621
6676
|
checkBtnSize: {
|
|
6622
6677
|
key: "checkBtnSize",
|
|
6623
6678
|
required: false,
|
|
6624
|
-
type: String
|
|
6625
|
-
default: "mini"
|
|
6679
|
+
type: String
|
|
6626
6680
|
},
|
|
6627
6681
|
checkBtnRound: {
|
|
6628
6682
|
key: "checkBtnRound",
|
|
@@ -6835,8 +6889,7 @@ __sfc_main.props = {
|
|
|
6835
6889
|
exportBtnSize: {
|
|
6836
6890
|
key: "exportBtnSize",
|
|
6837
6891
|
required: false,
|
|
6838
|
-
type: String
|
|
6839
|
-
default: "mini"
|
|
6892
|
+
type: String
|
|
6840
6893
|
},
|
|
6841
6894
|
exportBtnRound: {
|
|
6842
6895
|
key: "exportBtnRound",
|
|
@@ -6895,8 +6948,7 @@ __sfc_main.props = {
|
|
|
6895
6948
|
queryBtnSize: {
|
|
6896
6949
|
key: "queryBtnSize",
|
|
6897
6950
|
required: false,
|
|
6898
|
-
type: String
|
|
6899
|
-
default: "mini"
|
|
6951
|
+
type: String
|
|
6900
6952
|
},
|
|
6901
6953
|
queryBtnRound: {
|
|
6902
6954
|
key: "queryBtnRound",
|
|
@@ -6955,8 +7007,7 @@ __sfc_main.props = {
|
|
|
6955
7007
|
resetBtnSize: {
|
|
6956
7008
|
key: "resetBtnSize",
|
|
6957
7009
|
required: false,
|
|
6958
|
-
type: String
|
|
6959
|
-
default: "mini"
|
|
7010
|
+
type: String
|
|
6960
7011
|
},
|
|
6961
7012
|
resetBtnRound: {
|
|
6962
7013
|
key: "resetBtnRound",
|
|
@@ -6999,7 +7050,7 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
6999
7050
|
var _a, _b, _c, _d;
|
|
7000
7051
|
const props = __props;
|
|
7001
7052
|
const emit = __ctx.emit;
|
|
7002
|
-
const
|
|
7053
|
+
const instance = (_a = vueDemi.getCurrentInstance()) == null ? void 0 : _a.proxy;
|
|
7003
7054
|
const defaultButtonSlot = vueDemi.ref();
|
|
7004
7055
|
const nfSearchFormRef = vueDemi.ref();
|
|
7005
7056
|
const columnCheckNfDrawer = vueDemi.ref();
|
|
@@ -7007,13 +7058,17 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
7007
7058
|
const columnCheckDialog = vueDemi.ref();
|
|
7008
7059
|
const nfSearchFormModel = vueDemi.ref({});
|
|
7009
7060
|
const initLocalShow = () => {
|
|
7010
|
-
|
|
7061
|
+
const result = props.formOptions.filter((item) => {
|
|
7011
7062
|
var _a2;
|
|
7012
7063
|
if ((_a2 = props.showItems) == null ? void 0 : _a2.includes(item.prop)) {
|
|
7013
7064
|
item.initHidden = true;
|
|
7014
7065
|
}
|
|
7015
7066
|
return item.initHidden;
|
|
7016
7067
|
}).map((item) => item.prop);
|
|
7068
|
+
if (result.length) {
|
|
7069
|
+
return result;
|
|
7070
|
+
}
|
|
7071
|
+
return props.formOptions.map((item) => item.prop);
|
|
7017
7072
|
};
|
|
7018
7073
|
const localShowItems = vueDemi.ref(initLocalShow());
|
|
7019
7074
|
vueDemi.watch(() => {
|
|
@@ -7036,13 +7091,13 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
7036
7091
|
index: index2
|
|
7037
7092
|
};
|
|
7038
7093
|
});
|
|
7039
|
-
(_a2 =
|
|
7094
|
+
(_a2 = instance == null ? void 0 : instance.$cookies) == null ? void 0 : _a2.set(props.storageKey, JSON.stringify(columnState), -1);
|
|
7040
7095
|
}
|
|
7041
7096
|
};
|
|
7042
7097
|
const syncCookiesToLocalShowColumn = () => {
|
|
7043
7098
|
var _a2;
|
|
7044
7099
|
if (props.columnEdit) {
|
|
7045
|
-
let columnState = (_a2 =
|
|
7100
|
+
let columnState = (_a2 = instance == null ? void 0 : instance.$cookies) == null ? void 0 : _a2.get(props.storageKey);
|
|
7046
7101
|
if (columnState) {
|
|
7047
7102
|
if (typeof columnState === "string") {
|
|
7048
7103
|
columnState = JSON.parse(columnState);
|
|
@@ -7069,7 +7124,7 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
7069
7124
|
});
|
|
7070
7125
|
};
|
|
7071
7126
|
if (props.columnEdit) {
|
|
7072
|
-
const cached = (_b =
|
|
7127
|
+
const cached = (_b = instance == null ? void 0 : instance.$cookies) == null ? void 0 : _b.get(props.storageKey);
|
|
7073
7128
|
const cachedPriority = props.priority === "cached";
|
|
7074
7129
|
if (cachedPriority ? cached : (_c = localShowItems.value) == null ? void 0 : _c.length) {
|
|
7075
7130
|
cachedPriority ? syncCookiesToLocalShowColumn() : syncLocalShowColumnToCookies();
|
|
@@ -7080,7 +7135,7 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
7080
7135
|
const configNfSearchItemVisibleDialog = vueDemi.ref(false);
|
|
7081
7136
|
const newColumns = vueDemi.ref(3);
|
|
7082
7137
|
const isShowBtnBoxSlot = vueDemi.computed(() => {
|
|
7083
|
-
return
|
|
7138
|
+
return instance == null ? void 0 : instance.$slots.btnBox;
|
|
7084
7139
|
});
|
|
7085
7140
|
const renderSearchFormItemOptions = vueDemi.ref([]);
|
|
7086
7141
|
const syncCookiesToSearchFormItemOptions = (readCached = true) => {
|
|
@@ -7092,7 +7147,7 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
7092
7147
|
return item;
|
|
7093
7148
|
});
|
|
7094
7149
|
if (readCached && props.columnEdit) {
|
|
7095
|
-
let columnState = (_a2 =
|
|
7150
|
+
let columnState = (_a2 = instance == null ? void 0 : instance.$cookies) == null ? void 0 : _a2.get(props.storageKey);
|
|
7096
7151
|
if (columnState) {
|
|
7097
7152
|
if (typeof columnState === "string") {
|
|
7098
7153
|
columnState = JSON.parse(columnState);
|
|
@@ -7391,6 +7446,14 @@ var _sfc_render = function render6() {
|
|
|
7391
7446
|
"size": _vm.size,
|
|
7392
7447
|
"disabled": _vm.disabled,
|
|
7393
7448
|
"label-width": _vm.labelWidth + "px",
|
|
7449
|
+
"expand-btn-type": _vm.expandBtnType,
|
|
7450
|
+
"expand-btn-icon": _vm.expandBtnIcon,
|
|
7451
|
+
"expand-btn-plain": _vm.expandBtnPlain,
|
|
7452
|
+
"expand-btn-size": _vm.expandBtnSize,
|
|
7453
|
+
"expand-btn-round": _vm.expandBtnRound,
|
|
7454
|
+
"expand-btn-circle": _vm.expandBtnCircle,
|
|
7455
|
+
"expand-btn-loading": _vm.expandBtnLoading,
|
|
7456
|
+
"expand-btn-disabled": _vm.expandBtnDisabled,
|
|
7394
7457
|
"columns": _vm.inline ? _vm.newColumns : _vm.columns,
|
|
7395
7458
|
"up-icon": _vm.upIcon,
|
|
7396
7459
|
"down-icon": _vm.downIcon,
|
|
@@ -7418,7 +7481,6 @@ var _sfc_render = function render6() {
|
|
|
7418
7481
|
}, [_c("search-form-item", {
|
|
7419
7482
|
attrs: {
|
|
7420
7483
|
"item-width": _vm.itemWidth,
|
|
7421
|
-
"label-width": _vm.labelWidth,
|
|
7422
7484
|
"item-options": item
|
|
7423
7485
|
},
|
|
7424
7486
|
model: {
|
|
@@ -7428,11 +7490,11 @@ var _sfc_render = function render6() {
|
|
|
7428
7490
|
},
|
|
7429
7491
|
expression: "nfSearchFormModel[item.prop]"
|
|
7430
7492
|
}
|
|
7431
|
-
}, [item.tooltip ?
|
|
7432
|
-
slot: item.tooltip.slot
|
|
7433
|
-
}
|
|
7434
|
-
slot: item.slot
|
|
7435
|
-
}
|
|
7493
|
+
}, [item.tooltip ? _vm._t(item.tooltip.slot, null, {
|
|
7494
|
+
"slot": item.tooltip.slot
|
|
7495
|
+
}) : _vm._e(), item.slot ? _vm._t(item.slot, null, {
|
|
7496
|
+
"slot": item.slot
|
|
7497
|
+
}) : _vm._e()], 2), _vm.closable ? _c("div", {
|
|
7436
7498
|
staticClass: "nf-search-form-nf-form-item-close-icon"
|
|
7437
7499
|
}, [_c("i", {
|
|
7438
7500
|
staticClass: "el-icon-error",
|
|
@@ -7527,7 +7589,7 @@ var _sfc_render = function render6() {
|
|
|
7527
7589
|
"type": _vm.queryBtnType,
|
|
7528
7590
|
"icon": _vm.queryBtnIcon,
|
|
7529
7591
|
"plain": _vm.queryBtnPlain,
|
|
7530
|
-
"size": _vm.queryBtnSize,
|
|
7592
|
+
"size": _vm.queryBtnSize || _vm.size,
|
|
7531
7593
|
"round": _vm.queryBtnRound,
|
|
7532
7594
|
"circle": _vm.queryBtnCircle,
|
|
7533
7595
|
"loading": _vm.queryBtnLoading,
|
|
@@ -7542,7 +7604,7 @@ var _sfc_render = function render6() {
|
|
|
7542
7604
|
"type": _vm.exportBtnType,
|
|
7543
7605
|
"icon": _vm.exportBtnIcon,
|
|
7544
7606
|
"plain": _vm.exportBtnPlain,
|
|
7545
|
-
"size": _vm.exportBtnSize,
|
|
7607
|
+
"size": _vm.exportBtnSize || _vm.size,
|
|
7546
7608
|
"round": _vm.exportBtnRound,
|
|
7547
7609
|
"circle": _vm.exportBtnCircle,
|
|
7548
7610
|
"loading": _vm.exportBtnLoading,
|
|
@@ -7557,7 +7619,7 @@ var _sfc_render = function render6() {
|
|
|
7557
7619
|
"type": _vm.resetBtnType,
|
|
7558
7620
|
"icon": _vm.resetBtnIcon,
|
|
7559
7621
|
"plain": _vm.resetBtnPlain,
|
|
7560
|
-
"size": _vm.resetBtnSize,
|
|
7622
|
+
"size": _vm.resetBtnSize || _vm.size,
|
|
7561
7623
|
"round": _vm.resetBtnRound,
|
|
7562
7624
|
"circle": _vm.resetBtnCircle,
|
|
7563
7625
|
"loading": _vm.resetBtnLoading,
|
|
@@ -7571,7 +7633,7 @@ var _sfc_render = function render6() {
|
|
|
7571
7633
|
attrs: {
|
|
7572
7634
|
"type": _vm.checkBtnType,
|
|
7573
7635
|
"plain": _vm.checkBtnPlain,
|
|
7574
|
-
"size": _vm.checkBtnSize,
|
|
7636
|
+
"size": _vm.checkBtnSize || _vm.size,
|
|
7575
7637
|
"round": _vm.checkBtnRound,
|
|
7576
7638
|
"circle": _vm.checkBtnCircle,
|
|
7577
7639
|
"loading": _vm.checkBtnLoading,
|
|
@@ -7590,7 +7652,7 @@ var _sfc_render = function render6() {
|
|
|
7590
7652
|
}
|
|
7591
7653
|
}, [_c("i", {
|
|
7592
7654
|
staticClass: "iconfont icon-shaixuan1 nf-fs12"
|
|
7593
|
-
})])], 1) : _vm._e(), _vm.isShowBtnBoxSlot && _vm.reverseBtnSlot ? _vm._t("btnBox") : _vm._e()], 2) : _vm._e(), _vm.configNfSearchItemVisibleDialog && _vm.checkMode === "dialog" ? _c("column-check-dialog", {
|
|
7655
|
+
})])], 1) : _vm._e(), _vm.isShowBtnBoxSlot && _vm.reverseBtnSlot ? _vm._t("btnBox") : _vm._e()], 2) : _vm._e(), _vm.columnEdit && _vm.configNfSearchItemVisibleDialog && _vm.checkMode === "dialog" ? _c("column-check-dialog", {
|
|
7594
7656
|
ref: "columnCheckDialog",
|
|
7595
7657
|
attrs: {
|
|
7596
7658
|
"storage-key": _vm.storageKey,
|
|
@@ -7635,7 +7697,7 @@ var _sfc_render = function render6() {
|
|
|
7635
7697
|
"slot": "title"
|
|
7636
7698
|
}), _vm._t("dialogFooter", null, {
|
|
7637
7699
|
"slot": "footer"
|
|
7638
|
-
})], 2) : _vm._e(), _vm.checkMode === "drawer" ? _c("nf-drawer", {
|
|
7700
|
+
})], 2) : _vm._e(), _vm.columnEdit && _vm.checkMode === "drawer" ? _c("nf-drawer", {
|
|
7639
7701
|
ref: "columnCheckNfDrawer",
|
|
7640
7702
|
attrs: {
|
|
7641
7703
|
"size": "680px",
|