@94ai/nf-search-form 3.2.20 → 3.2.21
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 +101 -48
- package/lib/nf-search-form.esm-bundler.js +101 -48
- 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 +3 -4
- package/package/nf-search-form.vue +47 -19
- 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;
|
|
@@ -294,12 +294,6 @@ __sfc_main$3.props = {
|
|
|
294
294
|
required: false,
|
|
295
295
|
type: Number,
|
|
296
296
|
default: 170
|
|
297
|
-
},
|
|
298
|
-
labelWidth: {
|
|
299
|
-
key: "labelWidth",
|
|
300
|
-
required: false,
|
|
301
|
-
type: Number,
|
|
302
|
-
default: 70
|
|
303
297
|
}
|
|
304
298
|
};
|
|
305
299
|
__sfc_main$3.setup = (__props, __ctx) => {
|
|
@@ -322,7 +316,6 @@ __sfc_main$3.setup = (__props, __ctx) => {
|
|
|
322
316
|
});
|
|
323
317
|
const bindProps = vueDemi.computed(() => {
|
|
324
318
|
let obj = {
|
|
325
|
-
size: "mini",
|
|
326
319
|
clearable: true,
|
|
327
320
|
...props.itemOptions
|
|
328
321
|
};
|
|
@@ -494,7 +487,6 @@ var _sfc_render$3 = function render3() {
|
|
|
494
487
|
}
|
|
495
488
|
}, [_vm.slotName ? [_vm._t(_vm.slotName)] : [_vm.isInput ? _c("el-input", _vm._g(_vm._b({
|
|
496
489
|
attrs: {
|
|
497
|
-
"size": "mini",
|
|
498
490
|
"placeholder": _vm.itemOptions.placeholder
|
|
499
491
|
},
|
|
500
492
|
on: {
|
|
@@ -742,6 +734,12 @@ const __sfc_main$2 = vueDemi.defineComponent({
|
|
|
742
734
|
name: "NfColumnCheckDialog"
|
|
743
735
|
});
|
|
744
736
|
__sfc_main$2.props = {
|
|
737
|
+
storageKey: {
|
|
738
|
+
key: "storageKey",
|
|
739
|
+
required: false,
|
|
740
|
+
type: String,
|
|
741
|
+
default: "nf-table-columns-cached-key"
|
|
742
|
+
},
|
|
745
743
|
show: {
|
|
746
744
|
key: "show",
|
|
747
745
|
required: false,
|
|
@@ -864,6 +862,7 @@ __sfc_main$2.props = {
|
|
|
864
862
|
}
|
|
865
863
|
};
|
|
866
864
|
__sfc_main$2.setup = (__props, __ctx) => {
|
|
865
|
+
var _a;
|
|
867
866
|
const props = __props;
|
|
868
867
|
const tableData = vueDemi.ref({});
|
|
869
868
|
const emit = __ctx.emit;
|
|
@@ -896,8 +895,9 @@ __sfc_main$2.setup = (__props, __ctx) => {
|
|
|
896
895
|
vueDemi.onMounted(() => {
|
|
897
896
|
addInitValue();
|
|
898
897
|
});
|
|
898
|
+
const instance = (_a = vueDemi.getCurrentInstance()) == null ? void 0 : _a.proxy;
|
|
899
899
|
const submit = () => {
|
|
900
|
-
var
|
|
900
|
+
var _a2;
|
|
901
901
|
visible.value = false;
|
|
902
902
|
const columnState = {};
|
|
903
903
|
props.tableColumns.map((i, index2) => {
|
|
@@ -907,14 +907,14 @@ __sfc_main$2.setup = (__props, __ctx) => {
|
|
|
907
907
|
index: index2
|
|
908
908
|
};
|
|
909
909
|
});
|
|
910
|
-
(
|
|
910
|
+
(_a2 = instance == null ? void 0 : instance.$cookies) == null ? void 0 : _a2.set(props.storageKey, JSON.stringify(columnState), -1);
|
|
911
911
|
emit("save", tableData.value);
|
|
912
912
|
};
|
|
913
913
|
const addInitValue = () => {
|
|
914
914
|
const obj = {};
|
|
915
915
|
props.tableColumns.forEach((v) => {
|
|
916
|
-
var
|
|
917
|
-
obj[v.prop] = ((
|
|
916
|
+
var _a2;
|
|
917
|
+
obj[v.prop] = ((_a2 = props.showColumns) == null ? void 0 : _a2.length) ? props.showColumns.includes(v.prop) : true;
|
|
918
918
|
});
|
|
919
919
|
tableData.value = obj;
|
|
920
920
|
};
|
|
@@ -6056,7 +6056,7 @@ __sfc_main$1.props = {
|
|
|
6056
6056
|
};
|
|
6057
6057
|
__sfc_main$1.setup = (__props, __ctx) => {
|
|
6058
6058
|
var _a;
|
|
6059
|
-
const
|
|
6059
|
+
const instance = (_a = vueDemi.getCurrentInstance()) == null ? void 0 : _a.proxy;
|
|
6060
6060
|
const props = __props;
|
|
6061
6061
|
const currentTable = vueDemi.ref([]);
|
|
6062
6062
|
const showColumn = vueDemi.ref([]);
|
|
@@ -6167,7 +6167,7 @@ __sfc_main$1.setup = (__props, __ctx) => {
|
|
|
6167
6167
|
var _a2;
|
|
6168
6168
|
const newTableColumns = [...fixedColumn.value, ...unFixedColumn.value];
|
|
6169
6169
|
if (newTableColumns.filter((item) => !item.initHidden).length === 0) {
|
|
6170
|
-
|
|
6170
|
+
instance == null ? void 0 : instance.$openMessage.warning({
|
|
6171
6171
|
message: props.selectEmptyWarningTips,
|
|
6172
6172
|
duration: 2e3
|
|
6173
6173
|
});
|
|
@@ -6185,7 +6185,7 @@ __sfc_main$1.setup = (__props, __ctx) => {
|
|
|
6185
6185
|
};
|
|
6186
6186
|
obj[i.prop] = !columnState[i.prop].initHidden;
|
|
6187
6187
|
});
|
|
6188
|
-
(_a2 =
|
|
6188
|
+
(_a2 = instance == null ? void 0 : instance.$cookies) == null ? void 0 : _a2.set(props.storageKey, JSON.stringify(columnState), -1);
|
|
6189
6189
|
return obj;
|
|
6190
6190
|
};
|
|
6191
6191
|
const drag = vueDemi.ref(false);
|
|
@@ -6456,6 +6456,52 @@ __sfc_main.props = {
|
|
|
6456
6456
|
type: Boolean,
|
|
6457
6457
|
default: false
|
|
6458
6458
|
},
|
|
6459
|
+
expandBtnType: {
|
|
6460
|
+
key: "expandBtnType",
|
|
6461
|
+
required: false,
|
|
6462
|
+
type: String,
|
|
6463
|
+
default: "default"
|
|
6464
|
+
},
|
|
6465
|
+
expandBtnIcon: {
|
|
6466
|
+
key: "expandBtnIcon",
|
|
6467
|
+
required: false,
|
|
6468
|
+
type: String
|
|
6469
|
+
},
|
|
6470
|
+
expandBtnPlain: {
|
|
6471
|
+
key: "expandBtnPlain",
|
|
6472
|
+
required: false,
|
|
6473
|
+
type: Boolean,
|
|
6474
|
+
default: false
|
|
6475
|
+
},
|
|
6476
|
+
expandBtnSize: {
|
|
6477
|
+
key: "expandBtnSize",
|
|
6478
|
+
required: false,
|
|
6479
|
+
type: String
|
|
6480
|
+
},
|
|
6481
|
+
expandBtnRound: {
|
|
6482
|
+
key: "expandBtnRound",
|
|
6483
|
+
required: false,
|
|
6484
|
+
type: Boolean,
|
|
6485
|
+
default: false
|
|
6486
|
+
},
|
|
6487
|
+
expandBtnCircle: {
|
|
6488
|
+
key: "expandBtnCircle",
|
|
6489
|
+
required: false,
|
|
6490
|
+
type: Boolean,
|
|
6491
|
+
default: false
|
|
6492
|
+
},
|
|
6493
|
+
expandBtnLoading: {
|
|
6494
|
+
key: "expandBtnLoading",
|
|
6495
|
+
required: false,
|
|
6496
|
+
type: Boolean,
|
|
6497
|
+
default: false
|
|
6498
|
+
},
|
|
6499
|
+
expandBtnDisabled: {
|
|
6500
|
+
key: "expandBtnDisabled",
|
|
6501
|
+
required: false,
|
|
6502
|
+
type: Boolean,
|
|
6503
|
+
default: false
|
|
6504
|
+
},
|
|
6459
6505
|
rules: {
|
|
6460
6506
|
key: "rules",
|
|
6461
6507
|
required: false,
|
|
@@ -6502,7 +6548,7 @@ __sfc_main.props = {
|
|
|
6502
6548
|
key: "size",
|
|
6503
6549
|
required: false,
|
|
6504
6550
|
type: String,
|
|
6505
|
-
default:
|
|
6551
|
+
default: "mini"
|
|
6506
6552
|
},
|
|
6507
6553
|
disabled: {
|
|
6508
6554
|
key: "disabled",
|
|
@@ -6621,8 +6667,7 @@ __sfc_main.props = {
|
|
|
6621
6667
|
checkBtnSize: {
|
|
6622
6668
|
key: "checkBtnSize",
|
|
6623
6669
|
required: false,
|
|
6624
|
-
type: String
|
|
6625
|
-
default: "mini"
|
|
6670
|
+
type: String
|
|
6626
6671
|
},
|
|
6627
6672
|
checkBtnRound: {
|
|
6628
6673
|
key: "checkBtnRound",
|
|
@@ -6835,8 +6880,7 @@ __sfc_main.props = {
|
|
|
6835
6880
|
exportBtnSize: {
|
|
6836
6881
|
key: "exportBtnSize",
|
|
6837
6882
|
required: false,
|
|
6838
|
-
type: String
|
|
6839
|
-
default: "mini"
|
|
6883
|
+
type: String
|
|
6840
6884
|
},
|
|
6841
6885
|
exportBtnRound: {
|
|
6842
6886
|
key: "exportBtnRound",
|
|
@@ -6895,8 +6939,7 @@ __sfc_main.props = {
|
|
|
6895
6939
|
queryBtnSize: {
|
|
6896
6940
|
key: "queryBtnSize",
|
|
6897
6941
|
required: false,
|
|
6898
|
-
type: String
|
|
6899
|
-
default: "mini"
|
|
6942
|
+
type: String
|
|
6900
6943
|
},
|
|
6901
6944
|
queryBtnRound: {
|
|
6902
6945
|
key: "queryBtnRound",
|
|
@@ -6955,8 +6998,7 @@ __sfc_main.props = {
|
|
|
6955
6998
|
resetBtnSize: {
|
|
6956
6999
|
key: "resetBtnSize",
|
|
6957
7000
|
required: false,
|
|
6958
|
-
type: String
|
|
6959
|
-
default: "mini"
|
|
7001
|
+
type: String
|
|
6960
7002
|
},
|
|
6961
7003
|
resetBtnRound: {
|
|
6962
7004
|
key: "resetBtnRound",
|
|
@@ -6999,7 +7041,7 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
6999
7041
|
var _a, _b, _c, _d;
|
|
7000
7042
|
const props = __props;
|
|
7001
7043
|
const emit = __ctx.emit;
|
|
7002
|
-
const
|
|
7044
|
+
const instance = (_a = vueDemi.getCurrentInstance()) == null ? void 0 : _a.proxy;
|
|
7003
7045
|
const defaultButtonSlot = vueDemi.ref();
|
|
7004
7046
|
const nfSearchFormRef = vueDemi.ref();
|
|
7005
7047
|
const columnCheckNfDrawer = vueDemi.ref();
|
|
@@ -7007,13 +7049,17 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
7007
7049
|
const columnCheckDialog = vueDemi.ref();
|
|
7008
7050
|
const nfSearchFormModel = vueDemi.ref({});
|
|
7009
7051
|
const initLocalShow = () => {
|
|
7010
|
-
|
|
7052
|
+
const result = props.formOptions.filter((item) => {
|
|
7011
7053
|
var _a2;
|
|
7012
7054
|
if ((_a2 = props.showItems) == null ? void 0 : _a2.includes(item.prop)) {
|
|
7013
7055
|
item.initHidden = true;
|
|
7014
7056
|
}
|
|
7015
7057
|
return item.initHidden;
|
|
7016
7058
|
}).map((item) => item.prop);
|
|
7059
|
+
if (result.length) {
|
|
7060
|
+
return result;
|
|
7061
|
+
}
|
|
7062
|
+
return props.formOptions.map((item) => item.prop);
|
|
7017
7063
|
};
|
|
7018
7064
|
const localShowItems = vueDemi.ref(initLocalShow());
|
|
7019
7065
|
vueDemi.watch(() => {
|
|
@@ -7036,13 +7082,13 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
7036
7082
|
index: index2
|
|
7037
7083
|
};
|
|
7038
7084
|
});
|
|
7039
|
-
(_a2 =
|
|
7085
|
+
(_a2 = instance == null ? void 0 : instance.$cookies) == null ? void 0 : _a2.set(props.storageKey, JSON.stringify(columnState), -1);
|
|
7040
7086
|
}
|
|
7041
7087
|
};
|
|
7042
7088
|
const syncCookiesToLocalShowColumn = () => {
|
|
7043
7089
|
var _a2;
|
|
7044
7090
|
if (props.columnEdit) {
|
|
7045
|
-
let columnState = (_a2 =
|
|
7091
|
+
let columnState = (_a2 = instance == null ? void 0 : instance.$cookies) == null ? void 0 : _a2.get(props.storageKey);
|
|
7046
7092
|
if (columnState) {
|
|
7047
7093
|
if (typeof columnState === "string") {
|
|
7048
7094
|
columnState = JSON.parse(columnState);
|
|
@@ -7069,7 +7115,7 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
7069
7115
|
});
|
|
7070
7116
|
};
|
|
7071
7117
|
if (props.columnEdit) {
|
|
7072
|
-
const cached = (_b =
|
|
7118
|
+
const cached = (_b = instance == null ? void 0 : instance.$cookies) == null ? void 0 : _b.get(props.storageKey);
|
|
7073
7119
|
const cachedPriority = props.priority === "cached";
|
|
7074
7120
|
if (cachedPriority ? cached : (_c = localShowItems.value) == null ? void 0 : _c.length) {
|
|
7075
7121
|
cachedPriority ? syncCookiesToLocalShowColumn() : syncLocalShowColumnToCookies();
|
|
@@ -7080,7 +7126,7 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
7080
7126
|
const configNfSearchItemVisibleDialog = vueDemi.ref(false);
|
|
7081
7127
|
const newColumns = vueDemi.ref(3);
|
|
7082
7128
|
const isShowBtnBoxSlot = vueDemi.computed(() => {
|
|
7083
|
-
return
|
|
7129
|
+
return instance == null ? void 0 : instance.$slots.btnBox;
|
|
7084
7130
|
});
|
|
7085
7131
|
const renderSearchFormItemOptions = vueDemi.ref([]);
|
|
7086
7132
|
const syncCookiesToSearchFormItemOptions = (readCached = true) => {
|
|
@@ -7092,7 +7138,7 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
7092
7138
|
return item;
|
|
7093
7139
|
});
|
|
7094
7140
|
if (readCached && props.columnEdit) {
|
|
7095
|
-
let columnState = (_a2 =
|
|
7141
|
+
let columnState = (_a2 = instance == null ? void 0 : instance.$cookies) == null ? void 0 : _a2.get(props.storageKey);
|
|
7096
7142
|
if (columnState) {
|
|
7097
7143
|
if (typeof columnState === "string") {
|
|
7098
7144
|
columnState = JSON.parse(columnState);
|
|
@@ -7391,6 +7437,14 @@ var _sfc_render = function render6() {
|
|
|
7391
7437
|
"size": _vm.size,
|
|
7392
7438
|
"disabled": _vm.disabled,
|
|
7393
7439
|
"label-width": _vm.labelWidth + "px",
|
|
7440
|
+
"expand-btn-type": _vm.expandBtnType,
|
|
7441
|
+
"expand-btn-icon": _vm.expandBtnIcon,
|
|
7442
|
+
"expand-btn-plain": _vm.expandBtnPlain,
|
|
7443
|
+
"expand-btn-size": _vm.expandBtnSize,
|
|
7444
|
+
"expand-btn-round": _vm.expandBtnRound,
|
|
7445
|
+
"expand-btn-circle": _vm.expandBtnCircle,
|
|
7446
|
+
"expand-btn-loading": _vm.expandBtnLoading,
|
|
7447
|
+
"expand-btn-disabled": _vm.expandBtnDisabled,
|
|
7394
7448
|
"columns": _vm.inline ? _vm.newColumns : _vm.columns,
|
|
7395
7449
|
"up-icon": _vm.upIcon,
|
|
7396
7450
|
"down-icon": _vm.downIcon,
|
|
@@ -7418,7 +7472,6 @@ var _sfc_render = function render6() {
|
|
|
7418
7472
|
}, [_c("search-form-item", {
|
|
7419
7473
|
attrs: {
|
|
7420
7474
|
"item-width": _vm.itemWidth,
|
|
7421
|
-
"label-width": _vm.labelWidth,
|
|
7422
7475
|
"item-options": item
|
|
7423
7476
|
},
|
|
7424
7477
|
model: {
|
|
@@ -7428,11 +7481,11 @@ var _sfc_render = function render6() {
|
|
|
7428
7481
|
},
|
|
7429
7482
|
expression: "nfSearchFormModel[item.prop]"
|
|
7430
7483
|
}
|
|
7431
|
-
}, [item.tooltip ?
|
|
7432
|
-
slot: item.tooltip.slot
|
|
7433
|
-
}
|
|
7434
|
-
slot: item.slot
|
|
7435
|
-
}
|
|
7484
|
+
}, [item.tooltip ? _vm._t(item.tooltip.slot, null, {
|
|
7485
|
+
"slot": item.tooltip.slot
|
|
7486
|
+
}) : _vm._e(), item.slot ? _vm._t(item.slot, null, {
|
|
7487
|
+
"slot": item.slot
|
|
7488
|
+
}) : _vm._e()], 2), _vm.closable ? _c("div", {
|
|
7436
7489
|
staticClass: "nf-search-form-nf-form-item-close-icon"
|
|
7437
7490
|
}, [_c("i", {
|
|
7438
7491
|
staticClass: "el-icon-error",
|
|
@@ -7527,7 +7580,7 @@ var _sfc_render = function render6() {
|
|
|
7527
7580
|
"type": _vm.queryBtnType,
|
|
7528
7581
|
"icon": _vm.queryBtnIcon,
|
|
7529
7582
|
"plain": _vm.queryBtnPlain,
|
|
7530
|
-
"size": _vm.queryBtnSize,
|
|
7583
|
+
"size": _vm.queryBtnSize || _vm.size,
|
|
7531
7584
|
"round": _vm.queryBtnRound,
|
|
7532
7585
|
"circle": _vm.queryBtnCircle,
|
|
7533
7586
|
"loading": _vm.queryBtnLoading,
|
|
@@ -7542,7 +7595,7 @@ var _sfc_render = function render6() {
|
|
|
7542
7595
|
"type": _vm.exportBtnType,
|
|
7543
7596
|
"icon": _vm.exportBtnIcon,
|
|
7544
7597
|
"plain": _vm.exportBtnPlain,
|
|
7545
|
-
"size": _vm.exportBtnSize,
|
|
7598
|
+
"size": _vm.exportBtnSize || _vm.size,
|
|
7546
7599
|
"round": _vm.exportBtnRound,
|
|
7547
7600
|
"circle": _vm.exportBtnCircle,
|
|
7548
7601
|
"loading": _vm.exportBtnLoading,
|
|
@@ -7557,7 +7610,7 @@ var _sfc_render = function render6() {
|
|
|
7557
7610
|
"type": _vm.resetBtnType,
|
|
7558
7611
|
"icon": _vm.resetBtnIcon,
|
|
7559
7612
|
"plain": _vm.resetBtnPlain,
|
|
7560
|
-
"size": _vm.resetBtnSize,
|
|
7613
|
+
"size": _vm.resetBtnSize || _vm.size,
|
|
7561
7614
|
"round": _vm.resetBtnRound,
|
|
7562
7615
|
"circle": _vm.resetBtnCircle,
|
|
7563
7616
|
"loading": _vm.resetBtnLoading,
|
|
@@ -7571,7 +7624,7 @@ var _sfc_render = function render6() {
|
|
|
7571
7624
|
attrs: {
|
|
7572
7625
|
"type": _vm.checkBtnType,
|
|
7573
7626
|
"plain": _vm.checkBtnPlain,
|
|
7574
|
-
"size": _vm.checkBtnSize,
|
|
7627
|
+
"size": _vm.checkBtnSize || _vm.size,
|
|
7575
7628
|
"round": _vm.checkBtnRound,
|
|
7576
7629
|
"circle": _vm.checkBtnCircle,
|
|
7577
7630
|
"loading": _vm.checkBtnLoading,
|