@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
|
@@ -18,10 +18,10 @@ __sfc_main$5.setup = (__props, __ctx) => {
|
|
|
18
18
|
const minNumber = ref();
|
|
19
19
|
const maxNumber = ref();
|
|
20
20
|
const limitError = ref(false);
|
|
21
|
-
const
|
|
21
|
+
const instance = (_a = getCurrentInstance()) == null ? void 0 : _a.proxy;
|
|
22
22
|
const emit = __ctx.emit;
|
|
23
23
|
const inputlistens = computed(() => {
|
|
24
|
-
const list = Object.assign({}, (
|
|
24
|
+
const list = Object.assign({}, (instance == null ? void 0 : instance.$listeners) || {}, {
|
|
25
25
|
change: function() {
|
|
26
26
|
emit("change", [minNumber.value, maxNumber.value]);
|
|
27
27
|
}
|
|
@@ -31,25 +31,25 @@ __sfc_main$5.setup = (__props, __ctx) => {
|
|
|
31
31
|
});
|
|
32
32
|
const limitRange = computed(() => {
|
|
33
33
|
var _a2;
|
|
34
|
-
return ((_a2 =
|
|
34
|
+
return ((_a2 = instance == null ? void 0 : instance.$attrs) == null ? void 0 : _a2.limitRange) || [-Infinity, Infinity];
|
|
35
35
|
});
|
|
36
36
|
const step = computed(() => {
|
|
37
37
|
var _a2;
|
|
38
|
-
return ((_a2 =
|
|
38
|
+
return ((_a2 = instance == null ? void 0 : instance.$attrs) == null ? void 0 : _a2.step) ? Number(instance.$attrs.step) : 0;
|
|
39
39
|
});
|
|
40
40
|
const stepStrictly = computed(() => {
|
|
41
41
|
var _a2;
|
|
42
|
-
return !!((_a2 =
|
|
42
|
+
return !!((_a2 = instance == null ? void 0 : instance.$attrs) == null ? void 0 : _a2.stepStrictly) || false;
|
|
43
43
|
});
|
|
44
44
|
const inputAttr = computed(() => {
|
|
45
45
|
return {
|
|
46
46
|
controls: false,
|
|
47
|
-
...
|
|
47
|
+
...instance == null ? void 0 : instance.$attrs
|
|
48
48
|
};
|
|
49
49
|
});
|
|
50
50
|
const customePlaceholder = computed(() => {
|
|
51
51
|
var _a2, _b, _c;
|
|
52
|
-
return ((_a2 =
|
|
52
|
+
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];
|
|
53
53
|
});
|
|
54
54
|
watch(() => {
|
|
55
55
|
return props.value;
|
|
@@ -271,6 +271,52 @@ var _sfc_render$4 = function render2() {
|
|
|
271
271
|
var _sfc_staticRenderFns$4 = [];
|
|
272
272
|
var __component__$4 = /* @__PURE__ */ normalizeComponent(__sfc_main$4, _sfc_render$4, _sfc_staticRenderFns$4, false, null, null, null, null);
|
|
273
273
|
const TimeRange = __component__$4.exports;
|
|
274
|
+
function createUniqueString(randomLength = 36) {
|
|
275
|
+
return Number(Math.random().toString().substr(3, randomLength) + Date.now()).toString(36);
|
|
276
|
+
}
|
|
277
|
+
function debounce(func, wait, immediate) {
|
|
278
|
+
let timeout, args, context, timestamp, result;
|
|
279
|
+
const later = function() {
|
|
280
|
+
const last = +/* @__PURE__ */ new Date() - timestamp;
|
|
281
|
+
if (last < wait && last > 0) {
|
|
282
|
+
timeout = setTimeout(later, wait - last);
|
|
283
|
+
} else {
|
|
284
|
+
timeout = null;
|
|
285
|
+
if (!immediate) {
|
|
286
|
+
result = func.apply(context, args);
|
|
287
|
+
if (!timeout)
|
|
288
|
+
context = args = null;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
};
|
|
292
|
+
return function(...args2) {
|
|
293
|
+
context = this;
|
|
294
|
+
timestamp = +/* @__PURE__ */ new Date();
|
|
295
|
+
const callNow = immediate && !timeout;
|
|
296
|
+
if (!timeout)
|
|
297
|
+
timeout = setTimeout(later, wait);
|
|
298
|
+
if (callNow) {
|
|
299
|
+
result = func.apply(context, args2);
|
|
300
|
+
context = args2 = null;
|
|
301
|
+
}
|
|
302
|
+
return result;
|
|
303
|
+
};
|
|
304
|
+
}
|
|
305
|
+
function deepClone(source) {
|
|
306
|
+
if (!source && typeof source !== "object") {
|
|
307
|
+
throw new Error("error arguments shallowClone");
|
|
308
|
+
}
|
|
309
|
+
const targetObj = source.constructor === Array ? [] : {};
|
|
310
|
+
Object.keys(source).forEach((keys) => {
|
|
311
|
+
if (source[keys] && typeof source[keys] === "object") {
|
|
312
|
+
targetObj[keys] = source[keys].constructor === Array ? [] : {};
|
|
313
|
+
targetObj[keys] = deepClone(source[keys]);
|
|
314
|
+
} else {
|
|
315
|
+
targetObj[keys] = source[keys];
|
|
316
|
+
}
|
|
317
|
+
});
|
|
318
|
+
return targetObj;
|
|
319
|
+
}
|
|
274
320
|
const __sfc_main$3 = defineComponent({
|
|
275
321
|
name: "NfSearchFromItem"
|
|
276
322
|
});
|
|
@@ -292,12 +338,6 @@ __sfc_main$3.props = {
|
|
|
292
338
|
required: false,
|
|
293
339
|
type: Number,
|
|
294
340
|
default: 170
|
|
295
|
-
},
|
|
296
|
-
labelWidth: {
|
|
297
|
-
key: "labelWidth",
|
|
298
|
-
required: false,
|
|
299
|
-
type: Number,
|
|
300
|
-
default: 70
|
|
301
341
|
}
|
|
302
342
|
};
|
|
303
343
|
__sfc_main$3.setup = (__props, __ctx) => {
|
|
@@ -318,9 +358,8 @@ __sfc_main$3.setup = (__props, __ctx) => {
|
|
|
318
358
|
emit("update:value", val);
|
|
319
359
|
}
|
|
320
360
|
});
|
|
321
|
-
const
|
|
361
|
+
const getProps = () => {
|
|
322
362
|
let obj = {
|
|
323
|
-
size: "mini",
|
|
324
363
|
clearable: true,
|
|
325
364
|
...props.itemOptions
|
|
326
365
|
};
|
|
@@ -333,6 +372,7 @@ __sfc_main$3.setup = (__props, __ctx) => {
|
|
|
333
372
|
}
|
|
334
373
|
delete obj.options;
|
|
335
374
|
}
|
|
375
|
+
obj.key = createUniqueString();
|
|
336
376
|
delete obj.label;
|
|
337
377
|
delete obj.prop;
|
|
338
378
|
delete obj.element;
|
|
@@ -341,6 +381,14 @@ __sfc_main$3.setup = (__props, __ctx) => {
|
|
|
341
381
|
delete obj.events;
|
|
342
382
|
delete obj.tooltip;
|
|
343
383
|
return obj;
|
|
384
|
+
};
|
|
385
|
+
const bindProps = ref(getProps());
|
|
386
|
+
watch(() => {
|
|
387
|
+
return props.itemOptions;
|
|
388
|
+
}, () => {
|
|
389
|
+
bindProps.value = getProps();
|
|
390
|
+
}, {
|
|
391
|
+
deep: true
|
|
344
392
|
});
|
|
345
393
|
const bindEvents = computed(() => {
|
|
346
394
|
const events = {
|
|
@@ -492,7 +540,6 @@ var _sfc_render$3 = function render3() {
|
|
|
492
540
|
}
|
|
493
541
|
}, [_vm.slotName ? [_vm._t(_vm.slotName)] : [_vm.isInput ? _c("el-input", _vm._g(_vm._b({
|
|
494
542
|
attrs: {
|
|
495
|
-
"size": "mini",
|
|
496
543
|
"placeholder": _vm.itemOptions.placeholder
|
|
497
544
|
},
|
|
498
545
|
on: {
|
|
@@ -740,6 +787,12 @@ const __sfc_main$2 = defineComponent({
|
|
|
740
787
|
name: "NfColumnCheckDialog"
|
|
741
788
|
});
|
|
742
789
|
__sfc_main$2.props = {
|
|
790
|
+
storageKey: {
|
|
791
|
+
key: "storageKey",
|
|
792
|
+
required: false,
|
|
793
|
+
type: String,
|
|
794
|
+
default: "nf-table-columns-cached-key"
|
|
795
|
+
},
|
|
743
796
|
show: {
|
|
744
797
|
key: "show",
|
|
745
798
|
required: false,
|
|
@@ -862,6 +915,7 @@ __sfc_main$2.props = {
|
|
|
862
915
|
}
|
|
863
916
|
};
|
|
864
917
|
__sfc_main$2.setup = (__props, __ctx) => {
|
|
918
|
+
var _a;
|
|
865
919
|
const props = __props;
|
|
866
920
|
const tableData = ref({});
|
|
867
921
|
const emit = __ctx.emit;
|
|
@@ -894,8 +948,9 @@ __sfc_main$2.setup = (__props, __ctx) => {
|
|
|
894
948
|
onMounted(() => {
|
|
895
949
|
addInitValue();
|
|
896
950
|
});
|
|
951
|
+
const instance = (_a = getCurrentInstance()) == null ? void 0 : _a.proxy;
|
|
897
952
|
const submit = () => {
|
|
898
|
-
var
|
|
953
|
+
var _a2;
|
|
899
954
|
visible.value = false;
|
|
900
955
|
const columnState = {};
|
|
901
956
|
props.tableColumns.map((i, index2) => {
|
|
@@ -905,14 +960,14 @@ __sfc_main$2.setup = (__props, __ctx) => {
|
|
|
905
960
|
index: index2
|
|
906
961
|
};
|
|
907
962
|
});
|
|
908
|
-
(
|
|
963
|
+
(_a2 = instance == null ? void 0 : instance.$cookies) == null ? void 0 : _a2.set(props.storageKey, JSON.stringify(columnState), -1);
|
|
909
964
|
emit("save", tableData.value);
|
|
910
965
|
};
|
|
911
966
|
const addInitValue = () => {
|
|
912
967
|
const obj = {};
|
|
913
968
|
props.tableColumns.forEach((v) => {
|
|
914
|
-
var
|
|
915
|
-
obj[v.prop] = ((
|
|
969
|
+
var _a2;
|
|
970
|
+
obj[v.prop] = ((_a2 = props.showColumns) == null ? void 0 : _a2.length) ? props.showColumns.includes(v.prop) : true;
|
|
916
971
|
});
|
|
917
972
|
tableData.value = obj;
|
|
918
973
|
};
|
|
@@ -5947,52 +6002,6 @@ const require$$0 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
|
|
|
5947
6002
|
})(vuedraggable_umd);
|
|
5948
6003
|
var vuedraggable_umdExports = vuedraggable_umd.exports;
|
|
5949
6004
|
const draggable = /* @__PURE__ */ getDefaultExportFromCjs(vuedraggable_umdExports);
|
|
5950
|
-
function createUniqueString(randomLength = 36) {
|
|
5951
|
-
return Number(Math.random().toString().substr(3, randomLength) + Date.now()).toString(36);
|
|
5952
|
-
}
|
|
5953
|
-
function debounce(func, wait, immediate) {
|
|
5954
|
-
let timeout, args, context, timestamp, result;
|
|
5955
|
-
const later = function() {
|
|
5956
|
-
const last = +/* @__PURE__ */ new Date() - timestamp;
|
|
5957
|
-
if (last < wait && last > 0) {
|
|
5958
|
-
timeout = setTimeout(later, wait - last);
|
|
5959
|
-
} else {
|
|
5960
|
-
timeout = null;
|
|
5961
|
-
if (!immediate) {
|
|
5962
|
-
result = func.apply(context, args);
|
|
5963
|
-
if (!timeout)
|
|
5964
|
-
context = args = null;
|
|
5965
|
-
}
|
|
5966
|
-
}
|
|
5967
|
-
};
|
|
5968
|
-
return function(...args2) {
|
|
5969
|
-
context = this;
|
|
5970
|
-
timestamp = +/* @__PURE__ */ new Date();
|
|
5971
|
-
const callNow = immediate && !timeout;
|
|
5972
|
-
if (!timeout)
|
|
5973
|
-
timeout = setTimeout(later, wait);
|
|
5974
|
-
if (callNow) {
|
|
5975
|
-
result = func.apply(context, args2);
|
|
5976
|
-
context = args2 = null;
|
|
5977
|
-
}
|
|
5978
|
-
return result;
|
|
5979
|
-
};
|
|
5980
|
-
}
|
|
5981
|
-
function deepClone(source) {
|
|
5982
|
-
if (!source && typeof source !== "object") {
|
|
5983
|
-
throw new Error("error arguments shallowClone");
|
|
5984
|
-
}
|
|
5985
|
-
const targetObj = source.constructor === Array ? [] : {};
|
|
5986
|
-
Object.keys(source).forEach((keys) => {
|
|
5987
|
-
if (source[keys] && typeof source[keys] === "object") {
|
|
5988
|
-
targetObj[keys] = source[keys].constructor === Array ? [] : {};
|
|
5989
|
-
targetObj[keys] = deepClone(source[keys]);
|
|
5990
|
-
} else {
|
|
5991
|
-
targetObj[keys] = source[keys];
|
|
5992
|
-
}
|
|
5993
|
-
});
|
|
5994
|
-
return targetObj;
|
|
5995
|
-
}
|
|
5996
6005
|
const __sfc_main$1 = defineComponent({
|
|
5997
6006
|
name: "NfColumnCheckDrawer"
|
|
5998
6007
|
});
|
|
@@ -6054,7 +6063,7 @@ __sfc_main$1.props = {
|
|
|
6054
6063
|
};
|
|
6055
6064
|
__sfc_main$1.setup = (__props, __ctx) => {
|
|
6056
6065
|
var _a;
|
|
6057
|
-
const
|
|
6066
|
+
const instance = (_a = getCurrentInstance()) == null ? void 0 : _a.proxy;
|
|
6058
6067
|
const props = __props;
|
|
6059
6068
|
const currentTable = ref([]);
|
|
6060
6069
|
const showColumn = ref([]);
|
|
@@ -6165,7 +6174,7 @@ __sfc_main$1.setup = (__props, __ctx) => {
|
|
|
6165
6174
|
var _a2;
|
|
6166
6175
|
const newTableColumns = [...fixedColumn.value, ...unFixedColumn.value];
|
|
6167
6176
|
if (newTableColumns.filter((item) => !item.initHidden).length === 0) {
|
|
6168
|
-
|
|
6177
|
+
instance == null ? void 0 : instance.$openMessage.warning({
|
|
6169
6178
|
message: props.selectEmptyWarningTips,
|
|
6170
6179
|
duration: 2e3
|
|
6171
6180
|
});
|
|
@@ -6183,7 +6192,7 @@ __sfc_main$1.setup = (__props, __ctx) => {
|
|
|
6183
6192
|
};
|
|
6184
6193
|
obj[i.prop] = !columnState[i.prop].initHidden;
|
|
6185
6194
|
});
|
|
6186
|
-
(_a2 =
|
|
6195
|
+
(_a2 = instance == null ? void 0 : instance.$cookies) == null ? void 0 : _a2.set(props.storageKey, JSON.stringify(columnState), -1);
|
|
6187
6196
|
return obj;
|
|
6188
6197
|
};
|
|
6189
6198
|
const drag = ref(false);
|
|
@@ -6454,6 +6463,52 @@ __sfc_main.props = {
|
|
|
6454
6463
|
type: Boolean,
|
|
6455
6464
|
default: false
|
|
6456
6465
|
},
|
|
6466
|
+
expandBtnType: {
|
|
6467
|
+
key: "expandBtnType",
|
|
6468
|
+
required: false,
|
|
6469
|
+
type: String,
|
|
6470
|
+
default: "default"
|
|
6471
|
+
},
|
|
6472
|
+
expandBtnIcon: {
|
|
6473
|
+
key: "expandBtnIcon",
|
|
6474
|
+
required: false,
|
|
6475
|
+
type: String
|
|
6476
|
+
},
|
|
6477
|
+
expandBtnPlain: {
|
|
6478
|
+
key: "expandBtnPlain",
|
|
6479
|
+
required: false,
|
|
6480
|
+
type: Boolean,
|
|
6481
|
+
default: false
|
|
6482
|
+
},
|
|
6483
|
+
expandBtnSize: {
|
|
6484
|
+
key: "expandBtnSize",
|
|
6485
|
+
required: false,
|
|
6486
|
+
type: String
|
|
6487
|
+
},
|
|
6488
|
+
expandBtnRound: {
|
|
6489
|
+
key: "expandBtnRound",
|
|
6490
|
+
required: false,
|
|
6491
|
+
type: Boolean,
|
|
6492
|
+
default: false
|
|
6493
|
+
},
|
|
6494
|
+
expandBtnCircle: {
|
|
6495
|
+
key: "expandBtnCircle",
|
|
6496
|
+
required: false,
|
|
6497
|
+
type: Boolean,
|
|
6498
|
+
default: false
|
|
6499
|
+
},
|
|
6500
|
+
expandBtnLoading: {
|
|
6501
|
+
key: "expandBtnLoading",
|
|
6502
|
+
required: false,
|
|
6503
|
+
type: Boolean,
|
|
6504
|
+
default: false
|
|
6505
|
+
},
|
|
6506
|
+
expandBtnDisabled: {
|
|
6507
|
+
key: "expandBtnDisabled",
|
|
6508
|
+
required: false,
|
|
6509
|
+
type: Boolean,
|
|
6510
|
+
default: false
|
|
6511
|
+
},
|
|
6457
6512
|
rules: {
|
|
6458
6513
|
key: "rules",
|
|
6459
6514
|
required: false,
|
|
@@ -6500,7 +6555,7 @@ __sfc_main.props = {
|
|
|
6500
6555
|
key: "size",
|
|
6501
6556
|
required: false,
|
|
6502
6557
|
type: String,
|
|
6503
|
-
default:
|
|
6558
|
+
default: "mini"
|
|
6504
6559
|
},
|
|
6505
6560
|
disabled: {
|
|
6506
6561
|
key: "disabled",
|
|
@@ -6619,8 +6674,7 @@ __sfc_main.props = {
|
|
|
6619
6674
|
checkBtnSize: {
|
|
6620
6675
|
key: "checkBtnSize",
|
|
6621
6676
|
required: false,
|
|
6622
|
-
type: String
|
|
6623
|
-
default: "mini"
|
|
6677
|
+
type: String
|
|
6624
6678
|
},
|
|
6625
6679
|
checkBtnRound: {
|
|
6626
6680
|
key: "checkBtnRound",
|
|
@@ -6833,8 +6887,7 @@ __sfc_main.props = {
|
|
|
6833
6887
|
exportBtnSize: {
|
|
6834
6888
|
key: "exportBtnSize",
|
|
6835
6889
|
required: false,
|
|
6836
|
-
type: String
|
|
6837
|
-
default: "mini"
|
|
6890
|
+
type: String
|
|
6838
6891
|
},
|
|
6839
6892
|
exportBtnRound: {
|
|
6840
6893
|
key: "exportBtnRound",
|
|
@@ -6893,8 +6946,7 @@ __sfc_main.props = {
|
|
|
6893
6946
|
queryBtnSize: {
|
|
6894
6947
|
key: "queryBtnSize",
|
|
6895
6948
|
required: false,
|
|
6896
|
-
type: String
|
|
6897
|
-
default: "mini"
|
|
6949
|
+
type: String
|
|
6898
6950
|
},
|
|
6899
6951
|
queryBtnRound: {
|
|
6900
6952
|
key: "queryBtnRound",
|
|
@@ -6953,8 +7005,7 @@ __sfc_main.props = {
|
|
|
6953
7005
|
resetBtnSize: {
|
|
6954
7006
|
key: "resetBtnSize",
|
|
6955
7007
|
required: false,
|
|
6956
|
-
type: String
|
|
6957
|
-
default: "mini"
|
|
7008
|
+
type: String
|
|
6958
7009
|
},
|
|
6959
7010
|
resetBtnRound: {
|
|
6960
7011
|
key: "resetBtnRound",
|
|
@@ -6997,7 +7048,7 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
6997
7048
|
var _a, _b, _c, _d;
|
|
6998
7049
|
const props = __props;
|
|
6999
7050
|
const emit = __ctx.emit;
|
|
7000
|
-
const
|
|
7051
|
+
const instance = (_a = getCurrentInstance()) == null ? void 0 : _a.proxy;
|
|
7001
7052
|
const defaultButtonSlot = ref();
|
|
7002
7053
|
const nfSearchFormRef = ref();
|
|
7003
7054
|
const columnCheckNfDrawer = ref();
|
|
@@ -7005,13 +7056,17 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
7005
7056
|
const columnCheckDialog = ref();
|
|
7006
7057
|
const nfSearchFormModel = ref({});
|
|
7007
7058
|
const initLocalShow = () => {
|
|
7008
|
-
|
|
7059
|
+
const result = props.formOptions.filter((item) => {
|
|
7009
7060
|
var _a2;
|
|
7010
7061
|
if ((_a2 = props.showItems) == null ? void 0 : _a2.includes(item.prop)) {
|
|
7011
7062
|
item.initHidden = true;
|
|
7012
7063
|
}
|
|
7013
7064
|
return item.initHidden;
|
|
7014
7065
|
}).map((item) => item.prop);
|
|
7066
|
+
if (result.length) {
|
|
7067
|
+
return result;
|
|
7068
|
+
}
|
|
7069
|
+
return props.formOptions.map((item) => item.prop);
|
|
7015
7070
|
};
|
|
7016
7071
|
const localShowItems = ref(initLocalShow());
|
|
7017
7072
|
watch(() => {
|
|
@@ -7034,13 +7089,13 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
7034
7089
|
index: index2
|
|
7035
7090
|
};
|
|
7036
7091
|
});
|
|
7037
|
-
(_a2 =
|
|
7092
|
+
(_a2 = instance == null ? void 0 : instance.$cookies) == null ? void 0 : _a2.set(props.storageKey, JSON.stringify(columnState), -1);
|
|
7038
7093
|
}
|
|
7039
7094
|
};
|
|
7040
7095
|
const syncCookiesToLocalShowColumn = () => {
|
|
7041
7096
|
var _a2;
|
|
7042
7097
|
if (props.columnEdit) {
|
|
7043
|
-
let columnState = (_a2 =
|
|
7098
|
+
let columnState = (_a2 = instance == null ? void 0 : instance.$cookies) == null ? void 0 : _a2.get(props.storageKey);
|
|
7044
7099
|
if (columnState) {
|
|
7045
7100
|
if (typeof columnState === "string") {
|
|
7046
7101
|
columnState = JSON.parse(columnState);
|
|
@@ -7067,7 +7122,7 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
7067
7122
|
});
|
|
7068
7123
|
};
|
|
7069
7124
|
if (props.columnEdit) {
|
|
7070
|
-
const cached = (_b =
|
|
7125
|
+
const cached = (_b = instance == null ? void 0 : instance.$cookies) == null ? void 0 : _b.get(props.storageKey);
|
|
7071
7126
|
const cachedPriority = props.priority === "cached";
|
|
7072
7127
|
if (cachedPriority ? cached : (_c = localShowItems.value) == null ? void 0 : _c.length) {
|
|
7073
7128
|
cachedPriority ? syncCookiesToLocalShowColumn() : syncLocalShowColumnToCookies();
|
|
@@ -7078,7 +7133,7 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
7078
7133
|
const configNfSearchItemVisibleDialog = ref(false);
|
|
7079
7134
|
const newColumns = ref(3);
|
|
7080
7135
|
const isShowBtnBoxSlot = computed(() => {
|
|
7081
|
-
return
|
|
7136
|
+
return instance == null ? void 0 : instance.$slots.btnBox;
|
|
7082
7137
|
});
|
|
7083
7138
|
const renderSearchFormItemOptions = ref([]);
|
|
7084
7139
|
const syncCookiesToSearchFormItemOptions = (readCached = true) => {
|
|
@@ -7090,7 +7145,7 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
7090
7145
|
return item;
|
|
7091
7146
|
});
|
|
7092
7147
|
if (readCached && props.columnEdit) {
|
|
7093
|
-
let columnState = (_a2 =
|
|
7148
|
+
let columnState = (_a2 = instance == null ? void 0 : instance.$cookies) == null ? void 0 : _a2.get(props.storageKey);
|
|
7094
7149
|
if (columnState) {
|
|
7095
7150
|
if (typeof columnState === "string") {
|
|
7096
7151
|
columnState = JSON.parse(columnState);
|
|
@@ -7389,6 +7444,14 @@ var _sfc_render = function render6() {
|
|
|
7389
7444
|
"size": _vm.size,
|
|
7390
7445
|
"disabled": _vm.disabled,
|
|
7391
7446
|
"label-width": _vm.labelWidth + "px",
|
|
7447
|
+
"expand-btn-type": _vm.expandBtnType,
|
|
7448
|
+
"expand-btn-icon": _vm.expandBtnIcon,
|
|
7449
|
+
"expand-btn-plain": _vm.expandBtnPlain,
|
|
7450
|
+
"expand-btn-size": _vm.expandBtnSize,
|
|
7451
|
+
"expand-btn-round": _vm.expandBtnRound,
|
|
7452
|
+
"expand-btn-circle": _vm.expandBtnCircle,
|
|
7453
|
+
"expand-btn-loading": _vm.expandBtnLoading,
|
|
7454
|
+
"expand-btn-disabled": _vm.expandBtnDisabled,
|
|
7392
7455
|
"columns": _vm.inline ? _vm.newColumns : _vm.columns,
|
|
7393
7456
|
"up-icon": _vm.upIcon,
|
|
7394
7457
|
"down-icon": _vm.downIcon,
|
|
@@ -7416,7 +7479,6 @@ var _sfc_render = function render6() {
|
|
|
7416
7479
|
}, [_c("search-form-item", {
|
|
7417
7480
|
attrs: {
|
|
7418
7481
|
"item-width": _vm.itemWidth,
|
|
7419
|
-
"label-width": _vm.labelWidth,
|
|
7420
7482
|
"item-options": item
|
|
7421
7483
|
},
|
|
7422
7484
|
model: {
|
|
@@ -7426,11 +7488,11 @@ var _sfc_render = function render6() {
|
|
|
7426
7488
|
},
|
|
7427
7489
|
expression: "nfSearchFormModel[item.prop]"
|
|
7428
7490
|
}
|
|
7429
|
-
}, [item.tooltip ?
|
|
7430
|
-
slot: item.tooltip.slot
|
|
7431
|
-
}
|
|
7432
|
-
slot: item.slot
|
|
7433
|
-
}
|
|
7491
|
+
}, [item.tooltip ? _vm._t(item.tooltip.slot, null, {
|
|
7492
|
+
"slot": item.tooltip.slot
|
|
7493
|
+
}) : _vm._e(), item.slot ? _vm._t(item.slot, null, {
|
|
7494
|
+
"slot": item.slot
|
|
7495
|
+
}) : _vm._e()], 2), _vm.closable ? _c("div", {
|
|
7434
7496
|
staticClass: "nf-search-form-nf-form-item-close-icon"
|
|
7435
7497
|
}, [_c("i", {
|
|
7436
7498
|
staticClass: "el-icon-error",
|
|
@@ -7525,7 +7587,7 @@ var _sfc_render = function render6() {
|
|
|
7525
7587
|
"type": _vm.queryBtnType,
|
|
7526
7588
|
"icon": _vm.queryBtnIcon,
|
|
7527
7589
|
"plain": _vm.queryBtnPlain,
|
|
7528
|
-
"size": _vm.queryBtnSize,
|
|
7590
|
+
"size": _vm.queryBtnSize || _vm.size,
|
|
7529
7591
|
"round": _vm.queryBtnRound,
|
|
7530
7592
|
"circle": _vm.queryBtnCircle,
|
|
7531
7593
|
"loading": _vm.queryBtnLoading,
|
|
@@ -7540,7 +7602,7 @@ var _sfc_render = function render6() {
|
|
|
7540
7602
|
"type": _vm.exportBtnType,
|
|
7541
7603
|
"icon": _vm.exportBtnIcon,
|
|
7542
7604
|
"plain": _vm.exportBtnPlain,
|
|
7543
|
-
"size": _vm.exportBtnSize,
|
|
7605
|
+
"size": _vm.exportBtnSize || _vm.size,
|
|
7544
7606
|
"round": _vm.exportBtnRound,
|
|
7545
7607
|
"circle": _vm.exportBtnCircle,
|
|
7546
7608
|
"loading": _vm.exportBtnLoading,
|
|
@@ -7555,7 +7617,7 @@ var _sfc_render = function render6() {
|
|
|
7555
7617
|
"type": _vm.resetBtnType,
|
|
7556
7618
|
"icon": _vm.resetBtnIcon,
|
|
7557
7619
|
"plain": _vm.resetBtnPlain,
|
|
7558
|
-
"size": _vm.resetBtnSize,
|
|
7620
|
+
"size": _vm.resetBtnSize || _vm.size,
|
|
7559
7621
|
"round": _vm.resetBtnRound,
|
|
7560
7622
|
"circle": _vm.resetBtnCircle,
|
|
7561
7623
|
"loading": _vm.resetBtnLoading,
|
|
@@ -7569,7 +7631,7 @@ var _sfc_render = function render6() {
|
|
|
7569
7631
|
attrs: {
|
|
7570
7632
|
"type": _vm.checkBtnType,
|
|
7571
7633
|
"plain": _vm.checkBtnPlain,
|
|
7572
|
-
"size": _vm.checkBtnSize,
|
|
7634
|
+
"size": _vm.checkBtnSize || _vm.size,
|
|
7573
7635
|
"round": _vm.checkBtnRound,
|
|
7574
7636
|
"circle": _vm.checkBtnCircle,
|
|
7575
7637
|
"loading": _vm.checkBtnLoading,
|
|
@@ -7588,7 +7650,7 @@ var _sfc_render = function render6() {
|
|
|
7588
7650
|
}
|
|
7589
7651
|
}, [_c("i", {
|
|
7590
7652
|
staticClass: "iconfont icon-shaixuan1 nf-fs12"
|
|
7591
|
-
})])], 1) : _vm._e(), _vm.isShowBtnBoxSlot && _vm.reverseBtnSlot ? _vm._t("btnBox") : _vm._e()], 2) : _vm._e(), _vm.configNfSearchItemVisibleDialog && _vm.checkMode === "dialog" ? _c("column-check-dialog", {
|
|
7653
|
+
})])], 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", {
|
|
7592
7654
|
ref: "columnCheckDialog",
|
|
7593
7655
|
attrs: {
|
|
7594
7656
|
"storage-key": _vm.storageKey,
|
|
@@ -7633,7 +7695,7 @@ var _sfc_render = function render6() {
|
|
|
7633
7695
|
"slot": "title"
|
|
7634
7696
|
}), _vm._t("dialogFooter", null, {
|
|
7635
7697
|
"slot": "footer"
|
|
7636
|
-
})], 2) : _vm._e(), _vm.checkMode === "drawer" ? _c("nf-drawer", {
|
|
7698
|
+
})], 2) : _vm._e(), _vm.columnEdit && _vm.checkMode === "drawer" ? _c("nf-drawer", {
|
|
7637
7699
|
ref: "columnCheckNfDrawer",
|
|
7638
7700
|
attrs: {
|
|
7639
7701
|
"size": "680px",
|