@94ai/nf-search-form 3.2.71 → 3.2.75

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.
@@ -19,7 +19,7 @@ __sfc_main$5.props = {
19
19
  };
20
20
  __sfc_main$5.setup = (__props, __ctx) => {
21
21
  var _a;
22
- const props2 = __props;
22
+ const props = __props;
23
23
  const minNumber = vueDemi.ref();
24
24
  const maxNumber = vueDemi.ref();
25
25
  const limitError = vueDemi.ref(false);
@@ -57,12 +57,12 @@ __sfc_main$5.setup = (__props, __ctx) => {
57
57
  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];
58
58
  });
59
59
  vueDemi.watch(() => {
60
- return props2.value;
60
+ return props.value;
61
61
  }, () => {
62
62
  var _a2, _b, _c, _d, _e, _f;
63
- minNumber.value = (_a2 = props2.value) == null ? void 0 : _a2[0];
64
- maxNumber.value = (_b = props2.value) == null ? void 0 : _b[1];
65
- if (((_c = props2.value) == null ? void 0 : _c[0]) >= 0 && ((_d = props2.value) == null ? void 0 : _d[1]) >= 0 && ((_e = props2.value) == null ? void 0 : _e[0]) > ((_f = props2.value) == null ? void 0 : _f[1])) {
63
+ minNumber.value = (_a2 = props.value) == null ? void 0 : _a2[0];
64
+ maxNumber.value = (_b = props.value) == null ? void 0 : _b[1];
65
+ if (((_c = props.value) == null ? void 0 : _c[0]) >= 0 && ((_d = props.value) == null ? void 0 : _d[1]) >= 0 && ((_e = props.value) == null ? void 0 : _e[0]) > ((_f = props.value) == null ? void 0 : _f[1])) {
66
66
  limitError.value = true;
67
67
  } else {
68
68
  limitError.value = false;
@@ -164,7 +164,7 @@ __sfc_main$4.props = {
164
164
  };
165
165
  __sfc_main$4.setup = (__props, __ctx) => {
166
166
  var _a;
167
- const props2 = __props;
167
+ const props = __props;
168
168
  const emit = __ctx.emit;
169
169
  const startTime = vueDemi.ref();
170
170
  const endTime = vueDemi.ref();
@@ -202,11 +202,11 @@ __sfc_main$4.setup = (__props, __ctx) => {
202
202
  };
203
203
  });
204
204
  vueDemi.watch(() => {
205
- return props2.value;
205
+ return props.value;
206
206
  }, () => {
207
207
  var _a2, _b;
208
- startTime.value = (_a2 = props2.value) == null ? void 0 : _a2[0];
209
- endTime.value = (_b = props2.value) == null ? void 0 : _b[1];
208
+ startTime.value = (_a2 = props.value) == null ? void 0 : _a2[0];
209
+ endTime.value = (_b = props.value) == null ? void 0 : _b[1];
210
210
  }, {
211
211
  deep: true,
212
212
  immediate: true
@@ -302,17 +302,17 @@ __sfc_main$3.props = {
302
302
  __sfc_main$3.setup = (__props, __ctx) => {
303
303
  var _a;
304
304
  const emit = __ctx.emit;
305
- const props2 = __props;
305
+ const props = __props;
306
306
  const instance = (_a = vueDemi.getCurrentInstance()) == null ? void 0 : _a.proxy;
307
307
  const slotName = vueDemi.computed(() => {
308
- return props2.itemOptions.slot || "";
308
+ return props.itemOptions.slot || "";
309
309
  });
310
310
  const width = vueDemi.computed(() => {
311
- return (props2.itemOptions.width || props2.itemWidth) + "px";
311
+ return (props.itemOptions.width || props.itemWidth) + "px";
312
312
  });
313
313
  const currentVal = vueDemi.computed({
314
314
  get() {
315
- return props2.value;
315
+ return props.value;
316
316
  },
317
317
  set(val) {
318
318
  emit("input", val);
@@ -322,7 +322,7 @@ __sfc_main$3.setup = (__props, __ctx) => {
322
322
  const getProps = () => {
323
323
  let obj = {
324
324
  clearable: true,
325
- ...props2.itemOptions
325
+ ...props.itemOptions
326
326
  };
327
327
  if (obj.element === "el-select") {
328
328
  if (obj.multiple) {
@@ -346,7 +346,7 @@ __sfc_main$3.setup = (__props, __ctx) => {
346
346
  const bindProps = vueDemi.ref(getProps());
347
347
  vueDemi.onBeforeMount(() => {
348
348
  vueDemi.watch(() => {
349
- return props2.itemOptions;
349
+ return props.itemOptions;
350
350
  }, () => {
351
351
  bindProps.value = getProps();
352
352
  }, {
@@ -355,7 +355,7 @@ __sfc_main$3.setup = (__props, __ctx) => {
355
355
  });
356
356
  const bindEvents = vueDemi.computed(() => {
357
357
  const events = {
358
- ...props2.itemOptions.events
358
+ ...props.itemOptions.events
359
359
  };
360
360
  if (events == null ? void 0 : events.change) {
361
361
  delete events.change;
@@ -363,106 +363,106 @@ __sfc_main$3.setup = (__props, __ctx) => {
363
363
  return events || {};
364
364
  });
365
365
  const tooltip = vueDemi.computed(() => {
366
- return props2.itemOptions.tooltip;
366
+ return props.itemOptions.tooltip;
367
367
  });
368
368
  const isInput = vueDemi.computed(() => {
369
369
  var _a2;
370
- return ((_a2 = props2.itemOptions) == null ? void 0 : _a2.element) === "el-input";
370
+ return ((_a2 = props.itemOptions) == null ? void 0 : _a2.element) === "el-input";
371
371
  });
372
372
  const isInputNumber = vueDemi.computed(() => {
373
373
  var _a2;
374
- return ((_a2 = props2.itemOptions) == null ? void 0 : _a2.element) === "el-input-number";
374
+ return ((_a2 = props.itemOptions) == null ? void 0 : _a2.element) === "el-input-number";
375
375
  });
376
376
  const isSelect = vueDemi.computed(() => {
377
377
  var _a2;
378
- const element = (_a2 = props2.itemOptions) == null ? void 0 : _a2.element;
378
+ const element = (_a2 = props.itemOptions) == null ? void 0 : _a2.element;
379
379
  return element === "el-select" || element === "custom-select" || element === "ai-select" || element === "ai-custom-select";
380
380
  });
381
381
  const isLazySelect = vueDemi.computed(() => {
382
382
  var _a2;
383
- const element = (_a2 = props2.itemOptions) == null ? void 0 : _a2.element;
383
+ const element = (_a2 = props.itemOptions) == null ? void 0 : _a2.element;
384
384
  return element === "nf-lazy-select";
385
385
  });
386
386
  const isDatePickerDateRange = vueDemi.computed(() => {
387
387
  var _a2, _b;
388
- const element = (_a2 = props2.itemOptions) == null ? void 0 : _a2.element;
389
- const type = (_b = props2.itemOptions) == null ? void 0 : _b.type;
388
+ const element = (_a2 = props.itemOptions) == null ? void 0 : _a2.element;
389
+ const type = (_b = props.itemOptions) == null ? void 0 : _b.type;
390
390
  const isDatePicker = element === "el-date-picker" || element === "nf-date-picker";
391
391
  const isDateRange = type === "datetimerange" || type === "daterange";
392
392
  return isDatePicker && isDateRange;
393
393
  });
394
394
  const isDatePickerMonthRange = vueDemi.computed(() => {
395
395
  var _a2, _b;
396
- const element = (_a2 = props2.itemOptions) == null ? void 0 : _a2.element;
396
+ const element = (_a2 = props.itemOptions) == null ? void 0 : _a2.element;
397
397
  const isDatePicker = element === "el-date-picker" || element === "nf-date-picker";
398
- const isMonthRange = ((_b = props2.itemOptions) == null ? void 0 : _b.type) === "monthrange";
398
+ const isMonthRange = ((_b = props.itemOptions) == null ? void 0 : _b.type) === "monthrange";
399
399
  return isDatePicker && isMonthRange;
400
400
  });
401
401
  const isDatePickerOthers = vueDemi.computed(() => {
402
402
  var _a2;
403
- const element = (_a2 = props2.itemOptions) == null ? void 0 : _a2.element;
403
+ const element = (_a2 = props.itemOptions) == null ? void 0 : _a2.element;
404
404
  const isDatePicker = element === "el-date-picker" || element === "nf-date-picker";
405
405
  return isDatePicker && !isDatePickerDateRange.value && !isDatePickerMonthRange.value;
406
406
  });
407
407
  const isYearPickerYearRange = vueDemi.computed(() => {
408
408
  var _a2;
409
- const element = (_a2 = props2.itemOptions) == null ? void 0 : _a2.element;
409
+ const element = (_a2 = props.itemOptions) == null ? void 0 : _a2.element;
410
410
  return element === "nf-double-year";
411
411
  });
412
412
  const isHalfYearPickerHalfYearRange = vueDemi.computed(() => {
413
413
  var _a2, _b;
414
- const element = (_a2 = props2.itemOptions) == null ? void 0 : _a2.element;
415
- const isHalfYearRange = element === "nf-half-year-picker" && ((_b = props2.itemOptions) == null ? void 0 : _b.type) === "halfyearrange";
414
+ const element = (_a2 = props.itemOptions) == null ? void 0 : _a2.element;
415
+ const isHalfYearRange = element === "nf-half-year-picker" && ((_b = props.itemOptions) == null ? void 0 : _b.type) === "halfyearrange";
416
416
  return isHalfYearRange || element === "nf-double-half-year";
417
417
  });
418
418
  const isHalfYearPicker = vueDemi.computed(() => {
419
419
  var _a2, _b;
420
- return ((_a2 = props2.itemOptions) == null ? void 0 : _a2.element) === "nf-half-year-picker" && ((_b = props2.itemOptions) == null ? void 0 : _b.type) !== "halfyearrange";
420
+ return ((_a2 = props.itemOptions) == null ? void 0 : _a2.element) === "nf-half-year-picker" && ((_b = props.itemOptions) == null ? void 0 : _b.type) !== "halfyearrange";
421
421
  });
422
422
  const isQuarterPickerQuarterRange = vueDemi.computed(() => {
423
423
  var _a2, _b;
424
- const element = (_a2 = props2.itemOptions) == null ? void 0 : _a2.element;
425
- const isHalfYearRange = element === "nf-quarter-picker" && ((_b = props2.itemOptions) == null ? void 0 : _b.type) === "quarterrange";
424
+ const element = (_a2 = props.itemOptions) == null ? void 0 : _a2.element;
425
+ const isHalfYearRange = element === "nf-quarter-picker" && ((_b = props.itemOptions) == null ? void 0 : _b.type) === "quarterrange";
426
426
  return isHalfYearRange || element === "nf-double-quarter";
427
427
  });
428
428
  const isQuarterPicker = vueDemi.computed(() => {
429
429
  var _a2, _b;
430
- return ((_a2 = props2.itemOptions) == null ? void 0 : _a2.element) === "nf-quarter-picker" && ((_b = props2.itemOptions) == null ? void 0 : _b.type) !== "quarterrange";
430
+ return ((_a2 = props.itemOptions) == null ? void 0 : _a2.element) === "nf-quarter-picker" && ((_b = props.itemOptions) == null ? void 0 : _b.type) !== "quarterrange";
431
431
  });
432
432
  const isDoubleWeek = vueDemi.computed(() => {
433
433
  var _a2;
434
- return ((_a2 = props2.itemOptions) == null ? void 0 : _a2.element) === "nf-double-week";
434
+ return ((_a2 = props.itemOptions) == null ? void 0 : _a2.element) === "nf-double-week";
435
435
  });
436
436
  const isCascader = vueDemi.computed(() => {
437
437
  var _a2;
438
- return ((_a2 = props2.itemOptions) == null ? void 0 : _a2.element) === "el-cascader";
438
+ return ((_a2 = props.itemOptions) == null ? void 0 : _a2.element) === "el-cascader";
439
439
  });
440
440
  const isTimeSelect = vueDemi.computed(() => {
441
441
  var _a2;
442
- return ((_a2 = props2.itemOptions) == null ? void 0 : _a2.element) === "el-time-select" && props2.itemOptions.type !== "datetimerange";
442
+ return ((_a2 = props.itemOptions) == null ? void 0 : _a2.element) === "el-time-select" && props.itemOptions.type !== "datetimerange";
443
443
  });
444
444
  const isTimeSelectRange = vueDemi.computed(() => {
445
- return props2.itemOptions.element === "el-time-select" && props2.itemOptions.type === "datetimerange";
445
+ return props.itemOptions.element === "el-time-select" && props.itemOptions.type === "datetimerange";
446
446
  });
447
447
  const isTimePicker = vueDemi.computed(() => {
448
- return props2.itemOptions.element === "el-time-picker";
448
+ return props.itemOptions.element === "el-time-picker";
449
449
  });
450
450
  const isNumberRange = vueDemi.computed(() => {
451
- return props2.itemOptions.element === "number-range";
451
+ return props.itemOptions.element === "number-range";
452
452
  });
453
453
  const isSelectTransfer = vueDemi.computed(() => {
454
- return props2.itemOptions.element === "nf-select-transfer";
454
+ return props.itemOptions.element === "nf-select-transfer";
455
455
  });
456
456
  const handleChange = (event) => {
457
457
  var _a2, _b;
458
- if ((_b = (_a2 = props2.itemOptions) == null ? void 0 : _a2.events) == null ? void 0 : _b.change) {
459
- props2.itemOptions.events.change(event, instance);
458
+ if ((_b = (_a2 = props.itemOptions) == null ? void 0 : _a2.events) == null ? void 0 : _b.change) {
459
+ props.itemOptions.events.change(event, instance);
460
460
  }
461
461
  };
462
462
  const handleInput = (event) => {
463
463
  var _a2, _b;
464
- if ((_b = (_a2 = props2.itemOptions) == null ? void 0 : _a2.events) == null ? void 0 : _b.keyup) {
465
- props2.itemOptions.events.keyup(event, instance);
464
+ if ((_b = (_a2 = props.itemOptions) == null ? void 0 : _a2.events) == null ? void 0 : _b.keyup) {
465
+ props.itemOptions.events.keyup(event, instance);
466
466
  }
467
467
  };
468
468
  return {
@@ -904,12 +904,12 @@ __sfc_main$2.props = {
904
904
  };
905
905
  __sfc_main$2.setup = (__props, __ctx) => {
906
906
  var _a;
907
- const props2 = __props;
907
+ const props = __props;
908
908
  const tableData = vueDemi.ref({});
909
909
  const emit = __ctx.emit;
910
910
  const visible = vueDemi.computed({
911
911
  get() {
912
- return props2.show;
912
+ return props.show;
913
913
  },
914
914
  set(val) {
915
915
  emit("update:show", val);
@@ -917,8 +917,8 @@ __sfc_main$2.setup = (__props, __ctx) => {
917
917
  });
918
918
  const fields = vueDemi.computed(() => {
919
919
  const obj = {};
920
- props2.tableColumns.filter((item) => !item.destory).map((item) => {
921
- const key = item.category || props2.basicFieldDesc;
920
+ props.tableColumns.filter((item) => !item.destory).map((item) => {
921
+ const key = item.category || props.basicFieldDesc;
922
922
  if (!obj[key]) {
923
923
  obj[key] = [];
924
924
  }
@@ -940,7 +940,7 @@ __sfc_main$2.setup = (__props, __ctx) => {
940
940
  const submit = () => {
941
941
  visible.value = false;
942
942
  const columnState = {};
943
- props2.tableColumns.map((i, index2) => {
943
+ props.tableColumns.map((i, index2) => {
944
944
  columnState[i.prop] = {
945
945
  initHidden: !tableData.value[i.prop] || false,
946
946
  prop: i.prop,
@@ -948,13 +948,13 @@ __sfc_main$2.setup = (__props, __ctx) => {
948
948
  };
949
949
  });
950
950
  emit("save", tableData.value);
951
- if (props2.columnEdit) {
952
- commonUtils.CachedManager.syncCachedSet(props2.storageKey, columnState);
951
+ if (props.columnEdit) {
952
+ commonUtils.CachedManager.syncCachedSet(props.storageKey, columnState);
953
953
  }
954
954
  };
955
955
  const addInitValue = () => {
956
956
  const obj = {};
957
- props2.tableColumns.forEach((v) => {
957
+ props.tableColumns.forEach((v) => {
958
958
  obj[v.prop] = !v.initHidden;
959
959
  });
960
960
  tableData.value = obj;
@@ -5601,9 +5601,9 @@ const require$$0 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
5601
5601
  if (!componentData) {
5602
5602
  return attributes;
5603
5603
  }
5604
- var on2 = componentData.on, props3 = componentData.props, componentDataAttrs = componentData.attrs;
5604
+ var on2 = componentData.on, props2 = componentData.props, componentDataAttrs = componentData.attrs;
5605
5605
  update("on", on2);
5606
- update("props", props3);
5606
+ update("props", props2);
5607
5607
  Object.assign(attributes.attrs, componentDataAttrs);
5608
5608
  return attributes;
5609
5609
  }
@@ -5613,7 +5613,7 @@ const require$$0 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
5613
5613
  return "on" + evt;
5614
5614
  });
5615
5615
  var draggingElement = null;
5616
- var props2 = {
5616
+ var props = {
5617
5617
  options: Object,
5618
5618
  list: {
5619
5619
  type: Array,
@@ -5656,7 +5656,7 @@ const require$$0 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
5656
5656
  var draggableComponent = {
5657
5657
  name: "draggable",
5658
5658
  inheritAttrs: false,
5659
- props: props2,
5659
+ props,
5660
5660
  data: function data() {
5661
5661
  return {
5662
5662
  transitionMode: false,
@@ -6064,20 +6064,20 @@ __sfc_main$1.props = {
6064
6064
  __sfc_main$1.setup = (__props, __ctx) => {
6065
6065
  var _a;
6066
6066
  const instance = (_a = vueDemi.getCurrentInstance()) == null ? void 0 : _a.proxy;
6067
- const props2 = __props;
6067
+ const props = __props;
6068
6068
  const currentTable = vueDemi.ref([]);
6069
6069
  const showColumn = vueDemi.ref([]);
6070
6070
  const unChangedColumn = vueDemi.ref([]);
6071
6071
  const fixedColumn = vueDemi.ref([]);
6072
6072
  const unFixedColumn = vueDemi.ref([]);
6073
6073
  vueDemi.onBeforeMount(() => {
6074
- currentTable.value = commonUtils.deepClone(props2.tableColumns.filter((item) => !item.destory)).sort((a, b) => a._index - b._index < 0 ? -1 : a._index - b._index > 0 ? 1 : 0);
6074
+ currentTable.value = commonUtils.deepClone(props.tableColumns.filter((item) => !item.destory)).sort((a, b) => a._index - b._index < 0 ? -1 : a._index - b._index > 0 ? 1 : 0);
6075
6075
  currentTable.value.map((i) => {
6076
6076
  if (!i.attr) {
6077
6077
  i.attr = {};
6078
6078
  }
6079
6079
  });
6080
- const list = props2.tableColumns.filter((item) => !item.destory);
6080
+ const list = props.tableColumns.filter((item) => !item.destory);
6081
6081
  setFields(list);
6082
6082
  updateColumn();
6083
6083
  if (currentTable.value.every((i) => !i.initHidden)) {
@@ -6091,7 +6091,7 @@ __sfc_main$1.setup = (__props, __ctx) => {
6091
6091
  const setFields = (tableColumns) => {
6092
6092
  const obj = {};
6093
6093
  tableColumns.map((item) => {
6094
- const key = item.category || props2.basicFieldDesc;
6094
+ const key = item.category || props.basicFieldDesc;
6095
6095
  if (!obj[key]) {
6096
6096
  obj[key] = [];
6097
6097
  }
@@ -6176,10 +6176,10 @@ __sfc_main$1.setup = (__props, __ctx) => {
6176
6176
  const newTableColumns = [...fixedColumn.value, ...unFixedColumn.value];
6177
6177
  if (newTableColumns.filter((item) => !item.initHidden).length === 0) {
6178
6178
  (_a2 = instance == null ? void 0 : instance.$openMessage) == null ? void 0 : _a2.warning({
6179
- message: props2.selectEmptyWarningTips,
6179
+ message: props.selectEmptyWarningTips,
6180
6180
  duration: 2e3
6181
6181
  });
6182
- throw new Error(props2.selectEmptyWarningTips);
6182
+ throw new Error(props.selectEmptyWarningTips);
6183
6183
  }
6184
6184
  const columnState = {};
6185
6185
  const obj = {};
@@ -6193,8 +6193,8 @@ __sfc_main$1.setup = (__props, __ctx) => {
6193
6193
  };
6194
6194
  obj[i.prop] = !columnState[i.prop].initHidden;
6195
6195
  });
6196
- if (props2.columnEdit) {
6197
- commonUtils.CachedManager.syncCachedSet(props2.storageKey, columnState);
6196
+ if (props.columnEdit) {
6197
+ commonUtils.CachedManager.syncCachedSet(props.storageKey, columnState);
6198
6198
  }
6199
6199
  return obj;
6200
6200
  };
@@ -6432,12 +6432,6 @@ var _sfc_render$1 = function render5() {
6432
6432
  var _sfc_staticRenderFns$1 = [];
6433
6433
  var __component__$1 = /* @__PURE__ */ vue2RuntimeHelpers.normalizeComponent(__sfc_main$1, _sfc_render$1, _sfc_staticRenderFns$1, false, null, null, null, null);
6434
6434
  const ColumnCheckDrawer = __component__$1.exports;
6435
- async function clearDragCached() {
6436
- await commonUtils.CachedManager.asyncCachedSet(`${props.storageKey}$drag-column-width`, null);
6437
- }
6438
- async function clearColumnEditCached() {
6439
- await commonUtils.CachedManager.asyncCachedSet(props.storageKey, null);
6440
- }
6441
6435
  const __sfc_main = vueDemi.defineComponent({
6442
6436
  name: "nf-search-form"
6443
6437
  });
@@ -7073,7 +7067,7 @@ __sfc_main.props = {
7073
7067
  };
7074
7068
  __sfc_main.setup = (__props, __ctx) => {
7075
7069
  var _a;
7076
- const props2 = __props;
7070
+ const props = __props;
7077
7071
  const emit = __ctx.emit;
7078
7072
  const instance = (_a = vueDemi.getCurrentInstance()) == null ? void 0 : _a.proxy;
7079
7073
  const defaultButtonSlot = vueDemi.ref();
@@ -7084,24 +7078,24 @@ __sfc_main.setup = (__props, __ctx) => {
7084
7078
  const nfSearchFormModel = vueDemi.ref({});
7085
7079
  const initLocalShow = (init = false) => {
7086
7080
  if (!init) {
7087
- props2.formOptions._skip = true;
7081
+ props.formOptions._skip = true;
7088
7082
  }
7089
- const result = props2.formOptions.filter((item) => {
7083
+ const result = props.formOptions.filter((item) => {
7090
7084
  var _a2;
7091
- if ((_a2 = props2.showItems) == null ? void 0 : _a2.includes(item.prop)) {
7085
+ if ((_a2 = props.showItems) == null ? void 0 : _a2.includes(item.prop)) {
7092
7086
  item.initHidden = false;
7093
7087
  }
7094
7088
  return !item.initHidden;
7095
7089
  }).map((item) => item.prop);
7096
7090
  if (!init) {
7097
7091
  vueDemi.nextTick(() => {
7098
- props2.formOptions._skip = false;
7092
+ props.formOptions._skip = false;
7099
7093
  });
7100
7094
  }
7101
7095
  if (result.length) {
7102
7096
  return result;
7103
7097
  }
7104
- return props2.formOptions.map((item) => item.prop);
7098
+ return props.formOptions.map((item) => item.prop);
7105
7099
  };
7106
7100
  const localShowItems = vueDemi.ref(initLocalShow(true));
7107
7101
  vueDemi.watch(() => {
@@ -7116,9 +7110,9 @@ __sfc_main.setup = (__props, __ctx) => {
7116
7110
  immediate: true
7117
7111
  });
7118
7112
  const syncLocalShowColumnToCookies = () => {
7119
- if (props2.columnEdit) {
7113
+ if (props.columnEdit) {
7120
7114
  const columnState = {};
7121
- props2.formOptions.map((i, index2) => {
7115
+ props.formOptions.map((i, index2) => {
7122
7116
  const prop = i.prop;
7123
7117
  columnState[prop] = {
7124
7118
  initHidden: i.initHidden || false,
@@ -7126,12 +7120,12 @@ __sfc_main.setup = (__props, __ctx) => {
7126
7120
  index: index2
7127
7121
  };
7128
7122
  });
7129
- commonUtils.CachedManager.syncCachedSet(props2.storageKey, columnState);
7123
+ commonUtils.CachedManager.syncCachedSet(props.storageKey, columnState);
7130
7124
  }
7131
7125
  };
7132
7126
  const syncShowItemToInitHidden = () => {
7133
- props2.formOptions._skip = true;
7134
- props2.formOptions.forEach((item) => {
7127
+ props.formOptions._skip = true;
7128
+ props.formOptions.forEach((item) => {
7135
7129
  var _a2;
7136
7130
  if ((_a2 = localShowItems.value) == null ? void 0 : _a2.includes(item.prop)) {
7137
7131
  item.initHidden = false;
@@ -7140,7 +7134,7 @@ __sfc_main.setup = (__props, __ctx) => {
7140
7134
  }
7141
7135
  });
7142
7136
  vueDemi.nextTick(() => {
7143
- props2.formOptions._skip = false;
7137
+ props.formOptions._skip = false;
7144
7138
  });
7145
7139
  };
7146
7140
  const setLocalShowItems = (list, syncToInitHidden = false) => {
@@ -7152,11 +7146,11 @@ __sfc_main.setup = (__props, __ctx) => {
7152
7146
  }
7153
7147
  };
7154
7148
  const syncCookiesToLocalShowColumn = async () => {
7155
- if (props2.columnEdit) {
7149
+ if (props.columnEdit) {
7156
7150
  try {
7157
- let columnState = commonUtils.CachedManager.syncCachedGet(props2.storageKey);
7151
+ let columnState = commonUtils.CachedManager.syncCachedGet(props.storageKey);
7158
7152
  if (!columnState) {
7159
- columnState = await commonUtils.CachedManager.asyncCachedGet(props2.storageKey);
7153
+ columnState = await commonUtils.CachedManager.asyncCachedGet(props.storageKey);
7160
7154
  }
7161
7155
  if (columnState) {
7162
7156
  if (typeof columnState === "string") {
@@ -7177,12 +7171,12 @@ __sfc_main.setup = (__props, __ctx) => {
7177
7171
  };
7178
7172
  const initCachedData = async () => {
7179
7173
  var _a2, _b;
7180
- if (props2.columnEdit) {
7181
- let cached = commonUtils.CachedManager.syncCachedGet(props2.storageKey);
7174
+ if (props.columnEdit) {
7175
+ let cached = commonUtils.CachedManager.syncCachedGet(props.storageKey);
7182
7176
  if (!cached) {
7183
- cached = await commonUtils.CachedManager.asyncCachedGet(props2.storageKey);
7177
+ cached = await commonUtils.CachedManager.asyncCachedGet(props.storageKey);
7184
7178
  }
7185
- const cachedPriority = props2.priority === "cached";
7179
+ const cachedPriority = props.priority === "cached";
7186
7180
  if (cachedPriority ? cached : (_a2 = localShowItems.value) == null ? void 0 : _a2.length) {
7187
7181
  cachedPriority ? await syncCookiesToLocalShowColumn() : syncLocalShowColumnToCookies();
7188
7182
  } else if (cachedPriority ? (_b = localShowItems.value) == null ? void 0 : _b.length : cached) {
@@ -7199,8 +7193,8 @@ __sfc_main.setup = (__props, __ctx) => {
7199
7193
  const renderSearchFormItemOptions = vueDemi.ref([]);
7200
7194
  let initSearchForm = true;
7201
7195
  const syncCookiesToSearchFormItemOptions = async (readCached = true) => {
7202
- props2.formOptions._skip = true;
7203
- const columns = props2.formOptions.map((item, index2) => {
7196
+ props.formOptions._skip = true;
7197
+ const columns = props.formOptions.map((item, index2) => {
7204
7198
  item.key = item.key || commonUtils.createUniqueString();
7205
7199
  item._index = index2;
7206
7200
  item.__index = index2;
@@ -7208,13 +7202,13 @@ __sfc_main.setup = (__props, __ctx) => {
7208
7202
  vue.set(item, "destory", !!item.destory);
7209
7203
  return item;
7210
7204
  });
7211
- if (readCached && props2.columnEdit) {
7205
+ if (readCached && props.columnEdit) {
7212
7206
  try {
7213
- let columnState = commonUtils.CachedManager.syncCachedGet(props2.storageKey);
7207
+ let columnState = commonUtils.CachedManager.syncCachedGet(props.storageKey);
7214
7208
  if (!columnState) {
7215
- columnState = await commonUtils.CachedManager.asyncCachedGet(props2.storageKey);
7209
+ columnState = await commonUtils.CachedManager.asyncCachedGet(props.storageKey);
7216
7210
  }
7217
- props2.formOptions._skip = true;
7211
+ props.formOptions._skip = true;
7218
7212
  if (columnState) {
7219
7213
  if (typeof columnState === "string") {
7220
7214
  columnState = JSON.parse(columnState);
@@ -7241,7 +7235,7 @@ __sfc_main.setup = (__props, __ctx) => {
7241
7235
  initSearchForm = false;
7242
7236
  calcColumns();
7243
7237
  }
7244
- props2.formOptions._skip = false;
7238
+ props.formOptions._skip = false;
7245
7239
  });
7246
7240
  };
7247
7241
  syncCookiesToSearchFormItemOptions();
@@ -7255,17 +7249,17 @@ __sfc_main.setup = (__props, __ctx) => {
7255
7249
  });
7256
7250
  const showBtnBoxLabel = vueDemi.ref("");
7257
7251
  vueDemi.watch(() => {
7258
- return props2.btnBoxLabel;
7252
+ return props.btnBoxLabel;
7259
7253
  }, () => {
7260
- showBtnBoxLabel.value = props2.btnBoxLabel;
7254
+ showBtnBoxLabel.value = props.btnBoxLabel;
7261
7255
  }, {
7262
7256
  immediate: true
7263
7257
  });
7264
7258
  vueDemi.onBeforeMount(() => {
7265
7259
  vueDemi.watch(() => {
7266
- return props2.formOptions;
7260
+ return props.formOptions;
7267
7261
  }, async () => {
7268
- if (props2.formOptions._skip) {
7262
+ if (props.formOptions._skip) {
7269
7263
  return;
7270
7264
  }
7271
7265
  setLocalShowItems(initLocalShow());
@@ -7277,7 +7271,7 @@ __sfc_main.setup = (__props, __ctx) => {
7277
7271
  });
7278
7272
  const refreshNfSearchFormModel = (outEmit = true, init = false) => {
7279
7273
  const obj = {};
7280
- props2.formOptions.filter((item) => !item.destory).forEach((v) => {
7274
+ props.formOptions.filter((item) => !item.destory).forEach((v) => {
7281
7275
  if (localShowItems.value.includes(v.prop)) {
7282
7276
  if (init) {
7283
7277
  if (v.initValue !== void 0) {
@@ -7308,7 +7302,7 @@ __sfc_main.setup = (__props, __ctx) => {
7308
7302
  const domWidth = vueDemi.ref();
7309
7303
  const topDom = vueDemi.ref();
7310
7304
  const refreshLabel = () => {
7311
- if (props2.btnModel === "inline" && !props2.btnBoxLabel && props2.labelPosition === "top") {
7305
+ if (props.btnModel === "inline" && !props.btnBoxLabel && props.labelPosition === "top") {
7312
7306
  if (nfSearchFormRef.value.$el.getBoundingClientRect().left === defaultButtonSlot.value.$el.getBoundingClientRect().left) {
7313
7307
  showBtnBoxLabel.value = "";
7314
7308
  } else {
@@ -7331,8 +7325,8 @@ __sfc_main.setup = (__props, __ctx) => {
7331
7325
  refreshLabel();
7332
7326
  };
7333
7327
  const calcColumns = () => {
7334
- if (props2.columns) {
7335
- newColumns.value = props2.columns;
7328
+ if (props.columns) {
7329
+ newColumns.value = props.columns;
7336
7330
  return;
7337
7331
  }
7338
7332
  if (!nfSearchFormRef.value)
@@ -7395,7 +7389,7 @@ __sfc_main.setup = (__props, __ctx) => {
7395
7389
  return true;
7396
7390
  });
7397
7391
  vueDemi.nextTick(() => {
7398
- props2.formOptions._skip = false;
7392
+ props.formOptions._skip = false;
7399
7393
  });
7400
7394
  localShowItems.value = prop.formOptions.filter((item) => !item.initHidden).map((item) => item.prop);
7401
7395
  await syncLocalShowColumnToCookies();
@@ -7405,7 +7399,7 @@ __sfc_main.setup = (__props, __ctx) => {
7405
7399
  refreshLabel();
7406
7400
  };
7407
7401
  const columnCheckConfirmFeedback = (value) => {
7408
- if (!props2.columnEdit) {
7402
+ if (!props.columnEdit) {
7409
7403
  const itemsList = [];
7410
7404
  for (const key in value) {
7411
7405
  if (value[key]) {
@@ -7432,6 +7426,12 @@ __sfc_main.setup = (__props, __ctx) => {
7432
7426
  console.log(e);
7433
7427
  }
7434
7428
  };
7429
+ async function clearDragCached() {
7430
+ await commonUtils.CachedManager.asyncCachedSet(`${props.storageKey}$drag-column-width`, null);
7431
+ }
7432
+ async function clearColumnEditCached() {
7433
+ await commonUtils.CachedManager.asyncCachedSet(props.storageKey, null);
7434
+ }
7435
7435
  const nfSearchFormItemOptionFieldsSave = async (value) => {
7436
7436
  columnCheckConfirmFeedback(value);
7437
7437
  await syncCookiesToLocalShowColumn();
@@ -17,7 +17,7 @@ __sfc_main$5.props = {
17
17
  };
18
18
  __sfc_main$5.setup = (__props, __ctx) => {
19
19
  var _a;
20
- const props2 = __props;
20
+ const props = __props;
21
21
  const minNumber = ref();
22
22
  const maxNumber = ref();
23
23
  const limitError = ref(false);
@@ -55,12 +55,12 @@ __sfc_main$5.setup = (__props, __ctx) => {
55
55
  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];
56
56
  });
57
57
  watch(() => {
58
- return props2.value;
58
+ return props.value;
59
59
  }, () => {
60
60
  var _a2, _b, _c, _d, _e, _f;
61
- minNumber.value = (_a2 = props2.value) == null ? void 0 : _a2[0];
62
- maxNumber.value = (_b = props2.value) == null ? void 0 : _b[1];
63
- if (((_c = props2.value) == null ? void 0 : _c[0]) >= 0 && ((_d = props2.value) == null ? void 0 : _d[1]) >= 0 && ((_e = props2.value) == null ? void 0 : _e[0]) > ((_f = props2.value) == null ? void 0 : _f[1])) {
61
+ minNumber.value = (_a2 = props.value) == null ? void 0 : _a2[0];
62
+ maxNumber.value = (_b = props.value) == null ? void 0 : _b[1];
63
+ if (((_c = props.value) == null ? void 0 : _c[0]) >= 0 && ((_d = props.value) == null ? void 0 : _d[1]) >= 0 && ((_e = props.value) == null ? void 0 : _e[0]) > ((_f = props.value) == null ? void 0 : _f[1])) {
64
64
  limitError.value = true;
65
65
  } else {
66
66
  limitError.value = false;
@@ -162,7 +162,7 @@ __sfc_main$4.props = {
162
162
  };
163
163
  __sfc_main$4.setup = (__props, __ctx) => {
164
164
  var _a;
165
- const props2 = __props;
165
+ const props = __props;
166
166
  const emit = __ctx.emit;
167
167
  const startTime = ref();
168
168
  const endTime = ref();
@@ -200,11 +200,11 @@ __sfc_main$4.setup = (__props, __ctx) => {
200
200
  };
201
201
  });
202
202
  watch(() => {
203
- return props2.value;
203
+ return props.value;
204
204
  }, () => {
205
205
  var _a2, _b;
206
- startTime.value = (_a2 = props2.value) == null ? void 0 : _a2[0];
207
- endTime.value = (_b = props2.value) == null ? void 0 : _b[1];
206
+ startTime.value = (_a2 = props.value) == null ? void 0 : _a2[0];
207
+ endTime.value = (_b = props.value) == null ? void 0 : _b[1];
208
208
  }, {
209
209
  deep: true,
210
210
  immediate: true
@@ -300,17 +300,17 @@ __sfc_main$3.props = {
300
300
  __sfc_main$3.setup = (__props, __ctx) => {
301
301
  var _a;
302
302
  const emit = __ctx.emit;
303
- const props2 = __props;
303
+ const props = __props;
304
304
  const instance = (_a = getCurrentInstance()) == null ? void 0 : _a.proxy;
305
305
  const slotName = computed(() => {
306
- return props2.itemOptions.slot || "";
306
+ return props.itemOptions.slot || "";
307
307
  });
308
308
  const width = computed(() => {
309
- return (props2.itemOptions.width || props2.itemWidth) + "px";
309
+ return (props.itemOptions.width || props.itemWidth) + "px";
310
310
  });
311
311
  const currentVal = computed({
312
312
  get() {
313
- return props2.value;
313
+ return props.value;
314
314
  },
315
315
  set(val) {
316
316
  emit("input", val);
@@ -320,7 +320,7 @@ __sfc_main$3.setup = (__props, __ctx) => {
320
320
  const getProps = () => {
321
321
  let obj = {
322
322
  clearable: true,
323
- ...props2.itemOptions
323
+ ...props.itemOptions
324
324
  };
325
325
  if (obj.element === "el-select") {
326
326
  if (obj.multiple) {
@@ -344,7 +344,7 @@ __sfc_main$3.setup = (__props, __ctx) => {
344
344
  const bindProps = ref(getProps());
345
345
  onBeforeMount(() => {
346
346
  watch(() => {
347
- return props2.itemOptions;
347
+ return props.itemOptions;
348
348
  }, () => {
349
349
  bindProps.value = getProps();
350
350
  }, {
@@ -353,7 +353,7 @@ __sfc_main$3.setup = (__props, __ctx) => {
353
353
  });
354
354
  const bindEvents = computed(() => {
355
355
  const events = {
356
- ...props2.itemOptions.events
356
+ ...props.itemOptions.events
357
357
  };
358
358
  if (events == null ? void 0 : events.change) {
359
359
  delete events.change;
@@ -361,106 +361,106 @@ __sfc_main$3.setup = (__props, __ctx) => {
361
361
  return events || {};
362
362
  });
363
363
  const tooltip = computed(() => {
364
- return props2.itemOptions.tooltip;
364
+ return props.itemOptions.tooltip;
365
365
  });
366
366
  const isInput = computed(() => {
367
367
  var _a2;
368
- return ((_a2 = props2.itemOptions) == null ? void 0 : _a2.element) === "el-input";
368
+ return ((_a2 = props.itemOptions) == null ? void 0 : _a2.element) === "el-input";
369
369
  });
370
370
  const isInputNumber = computed(() => {
371
371
  var _a2;
372
- return ((_a2 = props2.itemOptions) == null ? void 0 : _a2.element) === "el-input-number";
372
+ return ((_a2 = props.itemOptions) == null ? void 0 : _a2.element) === "el-input-number";
373
373
  });
374
374
  const isSelect = computed(() => {
375
375
  var _a2;
376
- const element = (_a2 = props2.itemOptions) == null ? void 0 : _a2.element;
376
+ const element = (_a2 = props.itemOptions) == null ? void 0 : _a2.element;
377
377
  return element === "el-select" || element === "custom-select" || element === "ai-select" || element === "ai-custom-select";
378
378
  });
379
379
  const isLazySelect = computed(() => {
380
380
  var _a2;
381
- const element = (_a2 = props2.itemOptions) == null ? void 0 : _a2.element;
381
+ const element = (_a2 = props.itemOptions) == null ? void 0 : _a2.element;
382
382
  return element === "nf-lazy-select";
383
383
  });
384
384
  const isDatePickerDateRange = computed(() => {
385
385
  var _a2, _b;
386
- const element = (_a2 = props2.itemOptions) == null ? void 0 : _a2.element;
387
- const type = (_b = props2.itemOptions) == null ? void 0 : _b.type;
386
+ const element = (_a2 = props.itemOptions) == null ? void 0 : _a2.element;
387
+ const type = (_b = props.itemOptions) == null ? void 0 : _b.type;
388
388
  const isDatePicker = element === "el-date-picker" || element === "nf-date-picker";
389
389
  const isDateRange = type === "datetimerange" || type === "daterange";
390
390
  return isDatePicker && isDateRange;
391
391
  });
392
392
  const isDatePickerMonthRange = computed(() => {
393
393
  var _a2, _b;
394
- const element = (_a2 = props2.itemOptions) == null ? void 0 : _a2.element;
394
+ const element = (_a2 = props.itemOptions) == null ? void 0 : _a2.element;
395
395
  const isDatePicker = element === "el-date-picker" || element === "nf-date-picker";
396
- const isMonthRange = ((_b = props2.itemOptions) == null ? void 0 : _b.type) === "monthrange";
396
+ const isMonthRange = ((_b = props.itemOptions) == null ? void 0 : _b.type) === "monthrange";
397
397
  return isDatePicker && isMonthRange;
398
398
  });
399
399
  const isDatePickerOthers = computed(() => {
400
400
  var _a2;
401
- const element = (_a2 = props2.itemOptions) == null ? void 0 : _a2.element;
401
+ const element = (_a2 = props.itemOptions) == null ? void 0 : _a2.element;
402
402
  const isDatePicker = element === "el-date-picker" || element === "nf-date-picker";
403
403
  return isDatePicker && !isDatePickerDateRange.value && !isDatePickerMonthRange.value;
404
404
  });
405
405
  const isYearPickerYearRange = computed(() => {
406
406
  var _a2;
407
- const element = (_a2 = props2.itemOptions) == null ? void 0 : _a2.element;
407
+ const element = (_a2 = props.itemOptions) == null ? void 0 : _a2.element;
408
408
  return element === "nf-double-year";
409
409
  });
410
410
  const isHalfYearPickerHalfYearRange = computed(() => {
411
411
  var _a2, _b;
412
- const element = (_a2 = props2.itemOptions) == null ? void 0 : _a2.element;
413
- const isHalfYearRange = element === "nf-half-year-picker" && ((_b = props2.itemOptions) == null ? void 0 : _b.type) === "halfyearrange";
412
+ const element = (_a2 = props.itemOptions) == null ? void 0 : _a2.element;
413
+ const isHalfYearRange = element === "nf-half-year-picker" && ((_b = props.itemOptions) == null ? void 0 : _b.type) === "halfyearrange";
414
414
  return isHalfYearRange || element === "nf-double-half-year";
415
415
  });
416
416
  const isHalfYearPicker = computed(() => {
417
417
  var _a2, _b;
418
- return ((_a2 = props2.itemOptions) == null ? void 0 : _a2.element) === "nf-half-year-picker" && ((_b = props2.itemOptions) == null ? void 0 : _b.type) !== "halfyearrange";
418
+ return ((_a2 = props.itemOptions) == null ? void 0 : _a2.element) === "nf-half-year-picker" && ((_b = props.itemOptions) == null ? void 0 : _b.type) !== "halfyearrange";
419
419
  });
420
420
  const isQuarterPickerQuarterRange = computed(() => {
421
421
  var _a2, _b;
422
- const element = (_a2 = props2.itemOptions) == null ? void 0 : _a2.element;
423
- const isHalfYearRange = element === "nf-quarter-picker" && ((_b = props2.itemOptions) == null ? void 0 : _b.type) === "quarterrange";
422
+ const element = (_a2 = props.itemOptions) == null ? void 0 : _a2.element;
423
+ const isHalfYearRange = element === "nf-quarter-picker" && ((_b = props.itemOptions) == null ? void 0 : _b.type) === "quarterrange";
424
424
  return isHalfYearRange || element === "nf-double-quarter";
425
425
  });
426
426
  const isQuarterPicker = computed(() => {
427
427
  var _a2, _b;
428
- return ((_a2 = props2.itemOptions) == null ? void 0 : _a2.element) === "nf-quarter-picker" && ((_b = props2.itemOptions) == null ? void 0 : _b.type) !== "quarterrange";
428
+ return ((_a2 = props.itemOptions) == null ? void 0 : _a2.element) === "nf-quarter-picker" && ((_b = props.itemOptions) == null ? void 0 : _b.type) !== "quarterrange";
429
429
  });
430
430
  const isDoubleWeek = computed(() => {
431
431
  var _a2;
432
- return ((_a2 = props2.itemOptions) == null ? void 0 : _a2.element) === "nf-double-week";
432
+ return ((_a2 = props.itemOptions) == null ? void 0 : _a2.element) === "nf-double-week";
433
433
  });
434
434
  const isCascader = computed(() => {
435
435
  var _a2;
436
- return ((_a2 = props2.itemOptions) == null ? void 0 : _a2.element) === "el-cascader";
436
+ return ((_a2 = props.itemOptions) == null ? void 0 : _a2.element) === "el-cascader";
437
437
  });
438
438
  const isTimeSelect = computed(() => {
439
439
  var _a2;
440
- return ((_a2 = props2.itemOptions) == null ? void 0 : _a2.element) === "el-time-select" && props2.itemOptions.type !== "datetimerange";
440
+ return ((_a2 = props.itemOptions) == null ? void 0 : _a2.element) === "el-time-select" && props.itemOptions.type !== "datetimerange";
441
441
  });
442
442
  const isTimeSelectRange = computed(() => {
443
- return props2.itemOptions.element === "el-time-select" && props2.itemOptions.type === "datetimerange";
443
+ return props.itemOptions.element === "el-time-select" && props.itemOptions.type === "datetimerange";
444
444
  });
445
445
  const isTimePicker = computed(() => {
446
- return props2.itemOptions.element === "el-time-picker";
446
+ return props.itemOptions.element === "el-time-picker";
447
447
  });
448
448
  const isNumberRange = computed(() => {
449
- return props2.itemOptions.element === "number-range";
449
+ return props.itemOptions.element === "number-range";
450
450
  });
451
451
  const isSelectTransfer = computed(() => {
452
- return props2.itemOptions.element === "nf-select-transfer";
452
+ return props.itemOptions.element === "nf-select-transfer";
453
453
  });
454
454
  const handleChange = (event) => {
455
455
  var _a2, _b;
456
- if ((_b = (_a2 = props2.itemOptions) == null ? void 0 : _a2.events) == null ? void 0 : _b.change) {
457
- props2.itemOptions.events.change(event, instance);
456
+ if ((_b = (_a2 = props.itemOptions) == null ? void 0 : _a2.events) == null ? void 0 : _b.change) {
457
+ props.itemOptions.events.change(event, instance);
458
458
  }
459
459
  };
460
460
  const handleInput = (event) => {
461
461
  var _a2, _b;
462
- if ((_b = (_a2 = props2.itemOptions) == null ? void 0 : _a2.events) == null ? void 0 : _b.keyup) {
463
- props2.itemOptions.events.keyup(event, instance);
462
+ if ((_b = (_a2 = props.itemOptions) == null ? void 0 : _a2.events) == null ? void 0 : _b.keyup) {
463
+ props.itemOptions.events.keyup(event, instance);
464
464
  }
465
465
  };
466
466
  return {
@@ -902,12 +902,12 @@ __sfc_main$2.props = {
902
902
  };
903
903
  __sfc_main$2.setup = (__props, __ctx) => {
904
904
  var _a;
905
- const props2 = __props;
905
+ const props = __props;
906
906
  const tableData = ref({});
907
907
  const emit = __ctx.emit;
908
908
  const visible = computed({
909
909
  get() {
910
- return props2.show;
910
+ return props.show;
911
911
  },
912
912
  set(val) {
913
913
  emit("update:show", val);
@@ -915,8 +915,8 @@ __sfc_main$2.setup = (__props, __ctx) => {
915
915
  });
916
916
  const fields = computed(() => {
917
917
  const obj = {};
918
- props2.tableColumns.filter((item) => !item.destory).map((item) => {
919
- const key = item.category || props2.basicFieldDesc;
918
+ props.tableColumns.filter((item) => !item.destory).map((item) => {
919
+ const key = item.category || props.basicFieldDesc;
920
920
  if (!obj[key]) {
921
921
  obj[key] = [];
922
922
  }
@@ -938,7 +938,7 @@ __sfc_main$2.setup = (__props, __ctx) => {
938
938
  const submit = () => {
939
939
  visible.value = false;
940
940
  const columnState = {};
941
- props2.tableColumns.map((i, index2) => {
941
+ props.tableColumns.map((i, index2) => {
942
942
  columnState[i.prop] = {
943
943
  initHidden: !tableData.value[i.prop] || false,
944
944
  prop: i.prop,
@@ -946,13 +946,13 @@ __sfc_main$2.setup = (__props, __ctx) => {
946
946
  };
947
947
  });
948
948
  emit("save", tableData.value);
949
- if (props2.columnEdit) {
950
- CachedManager.syncCachedSet(props2.storageKey, columnState);
949
+ if (props.columnEdit) {
950
+ CachedManager.syncCachedSet(props.storageKey, columnState);
951
951
  }
952
952
  };
953
953
  const addInitValue = () => {
954
954
  const obj = {};
955
- props2.tableColumns.forEach((v) => {
955
+ props.tableColumns.forEach((v) => {
956
956
  obj[v.prop] = !v.initHidden;
957
957
  });
958
958
  tableData.value = obj;
@@ -5599,9 +5599,9 @@ const require$$0 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
5599
5599
  if (!componentData) {
5600
5600
  return attributes;
5601
5601
  }
5602
- var on2 = componentData.on, props3 = componentData.props, componentDataAttrs = componentData.attrs;
5602
+ var on2 = componentData.on, props2 = componentData.props, componentDataAttrs = componentData.attrs;
5603
5603
  update("on", on2);
5604
- update("props", props3);
5604
+ update("props", props2);
5605
5605
  Object.assign(attributes.attrs, componentDataAttrs);
5606
5606
  return attributes;
5607
5607
  }
@@ -5611,7 +5611,7 @@ const require$$0 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
5611
5611
  return "on" + evt;
5612
5612
  });
5613
5613
  var draggingElement = null;
5614
- var props2 = {
5614
+ var props = {
5615
5615
  options: Object,
5616
5616
  list: {
5617
5617
  type: Array,
@@ -5654,7 +5654,7 @@ const require$$0 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
5654
5654
  var draggableComponent = {
5655
5655
  name: "draggable",
5656
5656
  inheritAttrs: false,
5657
- props: props2,
5657
+ props,
5658
5658
  data: function data() {
5659
5659
  return {
5660
5660
  transitionMode: false,
@@ -6062,20 +6062,20 @@ __sfc_main$1.props = {
6062
6062
  __sfc_main$1.setup = (__props, __ctx) => {
6063
6063
  var _a;
6064
6064
  const instance = (_a = getCurrentInstance()) == null ? void 0 : _a.proxy;
6065
- const props2 = __props;
6065
+ const props = __props;
6066
6066
  const currentTable = ref([]);
6067
6067
  const showColumn = ref([]);
6068
6068
  const unChangedColumn = ref([]);
6069
6069
  const fixedColumn = ref([]);
6070
6070
  const unFixedColumn = ref([]);
6071
6071
  onBeforeMount(() => {
6072
- currentTable.value = deepClone(props2.tableColumns.filter((item) => !item.destory)).sort((a, b) => a._index - b._index < 0 ? -1 : a._index - b._index > 0 ? 1 : 0);
6072
+ currentTable.value = deepClone(props.tableColumns.filter((item) => !item.destory)).sort((a, b) => a._index - b._index < 0 ? -1 : a._index - b._index > 0 ? 1 : 0);
6073
6073
  currentTable.value.map((i) => {
6074
6074
  if (!i.attr) {
6075
6075
  i.attr = {};
6076
6076
  }
6077
6077
  });
6078
- const list = props2.tableColumns.filter((item) => !item.destory);
6078
+ const list = props.tableColumns.filter((item) => !item.destory);
6079
6079
  setFields(list);
6080
6080
  updateColumn();
6081
6081
  if (currentTable.value.every((i) => !i.initHidden)) {
@@ -6089,7 +6089,7 @@ __sfc_main$1.setup = (__props, __ctx) => {
6089
6089
  const setFields = (tableColumns) => {
6090
6090
  const obj = {};
6091
6091
  tableColumns.map((item) => {
6092
- const key = item.category || props2.basicFieldDesc;
6092
+ const key = item.category || props.basicFieldDesc;
6093
6093
  if (!obj[key]) {
6094
6094
  obj[key] = [];
6095
6095
  }
@@ -6174,10 +6174,10 @@ __sfc_main$1.setup = (__props, __ctx) => {
6174
6174
  const newTableColumns = [...fixedColumn.value, ...unFixedColumn.value];
6175
6175
  if (newTableColumns.filter((item) => !item.initHidden).length === 0) {
6176
6176
  (_a2 = instance == null ? void 0 : instance.$openMessage) == null ? void 0 : _a2.warning({
6177
- message: props2.selectEmptyWarningTips,
6177
+ message: props.selectEmptyWarningTips,
6178
6178
  duration: 2e3
6179
6179
  });
6180
- throw new Error(props2.selectEmptyWarningTips);
6180
+ throw new Error(props.selectEmptyWarningTips);
6181
6181
  }
6182
6182
  const columnState = {};
6183
6183
  const obj = {};
@@ -6191,8 +6191,8 @@ __sfc_main$1.setup = (__props, __ctx) => {
6191
6191
  };
6192
6192
  obj[i.prop] = !columnState[i.prop].initHidden;
6193
6193
  });
6194
- if (props2.columnEdit) {
6195
- CachedManager.syncCachedSet(props2.storageKey, columnState);
6194
+ if (props.columnEdit) {
6195
+ CachedManager.syncCachedSet(props.storageKey, columnState);
6196
6196
  }
6197
6197
  return obj;
6198
6198
  };
@@ -6430,12 +6430,6 @@ var _sfc_render$1 = function render5() {
6430
6430
  var _sfc_staticRenderFns$1 = [];
6431
6431
  var __component__$1 = /* @__PURE__ */ normalizeComponent(__sfc_main$1, _sfc_render$1, _sfc_staticRenderFns$1, false, null, null, null, null);
6432
6432
  const ColumnCheckDrawer = __component__$1.exports;
6433
- async function clearDragCached() {
6434
- await CachedManager.asyncCachedSet(`${props.storageKey}$drag-column-width`, null);
6435
- }
6436
- async function clearColumnEditCached() {
6437
- await CachedManager.asyncCachedSet(props.storageKey, null);
6438
- }
6439
6433
  const __sfc_main = defineComponent({
6440
6434
  name: "nf-search-form"
6441
6435
  });
@@ -7071,7 +7065,7 @@ __sfc_main.props = {
7071
7065
  };
7072
7066
  __sfc_main.setup = (__props, __ctx) => {
7073
7067
  var _a;
7074
- const props2 = __props;
7068
+ const props = __props;
7075
7069
  const emit = __ctx.emit;
7076
7070
  const instance = (_a = getCurrentInstance()) == null ? void 0 : _a.proxy;
7077
7071
  const defaultButtonSlot = ref();
@@ -7082,24 +7076,24 @@ __sfc_main.setup = (__props, __ctx) => {
7082
7076
  const nfSearchFormModel = ref({});
7083
7077
  const initLocalShow = (init = false) => {
7084
7078
  if (!init) {
7085
- props2.formOptions._skip = true;
7079
+ props.formOptions._skip = true;
7086
7080
  }
7087
- const result = props2.formOptions.filter((item) => {
7081
+ const result = props.formOptions.filter((item) => {
7088
7082
  var _a2;
7089
- if ((_a2 = props2.showItems) == null ? void 0 : _a2.includes(item.prop)) {
7083
+ if ((_a2 = props.showItems) == null ? void 0 : _a2.includes(item.prop)) {
7090
7084
  item.initHidden = false;
7091
7085
  }
7092
7086
  return !item.initHidden;
7093
7087
  }).map((item) => item.prop);
7094
7088
  if (!init) {
7095
7089
  nextTick(() => {
7096
- props2.formOptions._skip = false;
7090
+ props.formOptions._skip = false;
7097
7091
  });
7098
7092
  }
7099
7093
  if (result.length) {
7100
7094
  return result;
7101
7095
  }
7102
- return props2.formOptions.map((item) => item.prop);
7096
+ return props.formOptions.map((item) => item.prop);
7103
7097
  };
7104
7098
  const localShowItems = ref(initLocalShow(true));
7105
7099
  watch(() => {
@@ -7114,9 +7108,9 @@ __sfc_main.setup = (__props, __ctx) => {
7114
7108
  immediate: true
7115
7109
  });
7116
7110
  const syncLocalShowColumnToCookies = () => {
7117
- if (props2.columnEdit) {
7111
+ if (props.columnEdit) {
7118
7112
  const columnState = {};
7119
- props2.formOptions.map((i, index2) => {
7113
+ props.formOptions.map((i, index2) => {
7120
7114
  const prop = i.prop;
7121
7115
  columnState[prop] = {
7122
7116
  initHidden: i.initHidden || false,
@@ -7124,12 +7118,12 @@ __sfc_main.setup = (__props, __ctx) => {
7124
7118
  index: index2
7125
7119
  };
7126
7120
  });
7127
- CachedManager.syncCachedSet(props2.storageKey, columnState);
7121
+ CachedManager.syncCachedSet(props.storageKey, columnState);
7128
7122
  }
7129
7123
  };
7130
7124
  const syncShowItemToInitHidden = () => {
7131
- props2.formOptions._skip = true;
7132
- props2.formOptions.forEach((item) => {
7125
+ props.formOptions._skip = true;
7126
+ props.formOptions.forEach((item) => {
7133
7127
  var _a2;
7134
7128
  if ((_a2 = localShowItems.value) == null ? void 0 : _a2.includes(item.prop)) {
7135
7129
  item.initHidden = false;
@@ -7138,7 +7132,7 @@ __sfc_main.setup = (__props, __ctx) => {
7138
7132
  }
7139
7133
  });
7140
7134
  nextTick(() => {
7141
- props2.formOptions._skip = false;
7135
+ props.formOptions._skip = false;
7142
7136
  });
7143
7137
  };
7144
7138
  const setLocalShowItems = (list, syncToInitHidden = false) => {
@@ -7150,11 +7144,11 @@ __sfc_main.setup = (__props, __ctx) => {
7150
7144
  }
7151
7145
  };
7152
7146
  const syncCookiesToLocalShowColumn = async () => {
7153
- if (props2.columnEdit) {
7147
+ if (props.columnEdit) {
7154
7148
  try {
7155
- let columnState = CachedManager.syncCachedGet(props2.storageKey);
7149
+ let columnState = CachedManager.syncCachedGet(props.storageKey);
7156
7150
  if (!columnState) {
7157
- columnState = await CachedManager.asyncCachedGet(props2.storageKey);
7151
+ columnState = await CachedManager.asyncCachedGet(props.storageKey);
7158
7152
  }
7159
7153
  if (columnState) {
7160
7154
  if (typeof columnState === "string") {
@@ -7175,12 +7169,12 @@ __sfc_main.setup = (__props, __ctx) => {
7175
7169
  };
7176
7170
  const initCachedData = async () => {
7177
7171
  var _a2, _b;
7178
- if (props2.columnEdit) {
7179
- let cached = CachedManager.syncCachedGet(props2.storageKey);
7172
+ if (props.columnEdit) {
7173
+ let cached = CachedManager.syncCachedGet(props.storageKey);
7180
7174
  if (!cached) {
7181
- cached = await CachedManager.asyncCachedGet(props2.storageKey);
7175
+ cached = await CachedManager.asyncCachedGet(props.storageKey);
7182
7176
  }
7183
- const cachedPriority = props2.priority === "cached";
7177
+ const cachedPriority = props.priority === "cached";
7184
7178
  if (cachedPriority ? cached : (_a2 = localShowItems.value) == null ? void 0 : _a2.length) {
7185
7179
  cachedPriority ? await syncCookiesToLocalShowColumn() : syncLocalShowColumnToCookies();
7186
7180
  } else if (cachedPriority ? (_b = localShowItems.value) == null ? void 0 : _b.length : cached) {
@@ -7197,8 +7191,8 @@ __sfc_main.setup = (__props, __ctx) => {
7197
7191
  const renderSearchFormItemOptions = ref([]);
7198
7192
  let initSearchForm = true;
7199
7193
  const syncCookiesToSearchFormItemOptions = async (readCached = true) => {
7200
- props2.formOptions._skip = true;
7201
- const columns = props2.formOptions.map((item, index2) => {
7194
+ props.formOptions._skip = true;
7195
+ const columns = props.formOptions.map((item, index2) => {
7202
7196
  item.key = item.key || createUniqueString();
7203
7197
  item._index = index2;
7204
7198
  item.__index = index2;
@@ -7206,13 +7200,13 @@ __sfc_main.setup = (__props, __ctx) => {
7206
7200
  set(item, "destory", !!item.destory);
7207
7201
  return item;
7208
7202
  });
7209
- if (readCached && props2.columnEdit) {
7203
+ if (readCached && props.columnEdit) {
7210
7204
  try {
7211
- let columnState = CachedManager.syncCachedGet(props2.storageKey);
7205
+ let columnState = CachedManager.syncCachedGet(props.storageKey);
7212
7206
  if (!columnState) {
7213
- columnState = await CachedManager.asyncCachedGet(props2.storageKey);
7207
+ columnState = await CachedManager.asyncCachedGet(props.storageKey);
7214
7208
  }
7215
- props2.formOptions._skip = true;
7209
+ props.formOptions._skip = true;
7216
7210
  if (columnState) {
7217
7211
  if (typeof columnState === "string") {
7218
7212
  columnState = JSON.parse(columnState);
@@ -7239,7 +7233,7 @@ __sfc_main.setup = (__props, __ctx) => {
7239
7233
  initSearchForm = false;
7240
7234
  calcColumns();
7241
7235
  }
7242
- props2.formOptions._skip = false;
7236
+ props.formOptions._skip = false;
7243
7237
  });
7244
7238
  };
7245
7239
  syncCookiesToSearchFormItemOptions();
@@ -7253,17 +7247,17 @@ __sfc_main.setup = (__props, __ctx) => {
7253
7247
  });
7254
7248
  const showBtnBoxLabel = ref("");
7255
7249
  watch(() => {
7256
- return props2.btnBoxLabel;
7250
+ return props.btnBoxLabel;
7257
7251
  }, () => {
7258
- showBtnBoxLabel.value = props2.btnBoxLabel;
7252
+ showBtnBoxLabel.value = props.btnBoxLabel;
7259
7253
  }, {
7260
7254
  immediate: true
7261
7255
  });
7262
7256
  onBeforeMount(() => {
7263
7257
  watch(() => {
7264
- return props2.formOptions;
7258
+ return props.formOptions;
7265
7259
  }, async () => {
7266
- if (props2.formOptions._skip) {
7260
+ if (props.formOptions._skip) {
7267
7261
  return;
7268
7262
  }
7269
7263
  setLocalShowItems(initLocalShow());
@@ -7275,7 +7269,7 @@ __sfc_main.setup = (__props, __ctx) => {
7275
7269
  });
7276
7270
  const refreshNfSearchFormModel = (outEmit = true, init = false) => {
7277
7271
  const obj = {};
7278
- props2.formOptions.filter((item) => !item.destory).forEach((v) => {
7272
+ props.formOptions.filter((item) => !item.destory).forEach((v) => {
7279
7273
  if (localShowItems.value.includes(v.prop)) {
7280
7274
  if (init) {
7281
7275
  if (v.initValue !== void 0) {
@@ -7306,7 +7300,7 @@ __sfc_main.setup = (__props, __ctx) => {
7306
7300
  const domWidth = ref();
7307
7301
  const topDom = ref();
7308
7302
  const refreshLabel = () => {
7309
- if (props2.btnModel === "inline" && !props2.btnBoxLabel && props2.labelPosition === "top") {
7303
+ if (props.btnModel === "inline" && !props.btnBoxLabel && props.labelPosition === "top") {
7310
7304
  if (nfSearchFormRef.value.$el.getBoundingClientRect().left === defaultButtonSlot.value.$el.getBoundingClientRect().left) {
7311
7305
  showBtnBoxLabel.value = "";
7312
7306
  } else {
@@ -7329,8 +7323,8 @@ __sfc_main.setup = (__props, __ctx) => {
7329
7323
  refreshLabel();
7330
7324
  };
7331
7325
  const calcColumns = () => {
7332
- if (props2.columns) {
7333
- newColumns.value = props2.columns;
7326
+ if (props.columns) {
7327
+ newColumns.value = props.columns;
7334
7328
  return;
7335
7329
  }
7336
7330
  if (!nfSearchFormRef.value)
@@ -7393,7 +7387,7 @@ __sfc_main.setup = (__props, __ctx) => {
7393
7387
  return true;
7394
7388
  });
7395
7389
  nextTick(() => {
7396
- props2.formOptions._skip = false;
7390
+ props.formOptions._skip = false;
7397
7391
  });
7398
7392
  localShowItems.value = prop.formOptions.filter((item) => !item.initHidden).map((item) => item.prop);
7399
7393
  await syncLocalShowColumnToCookies();
@@ -7403,7 +7397,7 @@ __sfc_main.setup = (__props, __ctx) => {
7403
7397
  refreshLabel();
7404
7398
  };
7405
7399
  const columnCheckConfirmFeedback = (value) => {
7406
- if (!props2.columnEdit) {
7400
+ if (!props.columnEdit) {
7407
7401
  const itemsList = [];
7408
7402
  for (const key in value) {
7409
7403
  if (value[key]) {
@@ -7430,6 +7424,12 @@ __sfc_main.setup = (__props, __ctx) => {
7430
7424
  console.log(e);
7431
7425
  }
7432
7426
  };
7427
+ async function clearDragCached() {
7428
+ await CachedManager.asyncCachedSet(`${props.storageKey}$drag-column-width`, null);
7429
+ }
7430
+ async function clearColumnEditCached() {
7431
+ await CachedManager.asyncCachedSet(props.storageKey, null);
7432
+ }
7433
7433
  const nfSearchFormItemOptionFieldsSave = async (value) => {
7434
7434
  columnCheckConfirmFeedback(value);
7435
7435
  await syncCookiesToLocalShowColumn();
@@ -1047,11 +1047,11 @@ const columnCheckConfirm = async (cb, error) => {
1047
1047
  }
1048
1048
  }
1049
1049
 
1050
- export async function clearDragCached() {
1050
+ async function clearDragCached() {
1051
1051
  await CachedManager.asyncCachedSet(`${props.storageKey}$drag-column-width`, null)
1052
1052
  }
1053
1053
 
1054
- export async function clearColumnEditCached() {
1054
+ async function clearColumnEditCached() {
1055
1055
  await CachedManager.asyncCachedSet(props.storageKey, null)
1056
1056
  }
1057
1057
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@94ai/nf-search-form",
3
- "version": "3.2.71",
3
+ "version": "3.2.75",
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.2.71",
18
- "@94ai/nf-button": "^3.2.71",
19
- "@94ai/nf-double-half-year": "^3.2.71",
20
- "@94ai/nf-double-quarter": "^3.2.71",
21
- "@94ai/nf-double-week": "^3.2.71",
22
- "@94ai/nf-double-year": "^3.2.71",
23
- "@94ai/nf-drawer": "^3.2.71",
24
- "@94ai/nf-form": "^3.2.71",
25
- "@94ai/nf-form-item": "^3.2.71",
26
- "@94ai/nf-half-year-picker": "^3.2.71",
27
- "@94ai/nf-lazy-select": "^3.2.71",
28
- "@94ai/nf-message": "^3.2.71",
29
- "@94ai/nf-quarter-picker": "^3.2.71",
30
- "@94ai/nf-select-transfer": "^3.2.71",
31
- "@94ai/nf-theme-chalk": "^3.2.71",
32
- "@94ai/nf-virtual-select": "^3.2.71",
17
+ "@94ai/common-utils": "^3.2.75",
18
+ "@94ai/nf-button": "^3.2.75",
19
+ "@94ai/nf-double-half-year": "^3.2.75",
20
+ "@94ai/nf-double-quarter": "^3.2.75",
21
+ "@94ai/nf-double-week": "^3.2.75",
22
+ "@94ai/nf-double-year": "^3.2.75",
23
+ "@94ai/nf-drawer": "^3.2.75",
24
+ "@94ai/nf-form": "^3.2.75",
25
+ "@94ai/nf-form-item": "^3.2.75",
26
+ "@94ai/nf-half-year-picker": "^3.2.75",
27
+ "@94ai/nf-lazy-select": "^3.2.75",
28
+ "@94ai/nf-message": "^3.2.75",
29
+ "@94ai/nf-quarter-picker": "^3.2.75",
30
+ "@94ai/nf-select-transfer": "^3.2.75",
31
+ "@94ai/nf-theme-chalk": "^3.2.75",
32
+ "@94ai/nf-virtual-select": "^3.2.75",
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": "7dd798a04d78ba60682dc8db365591e980029d37"
51
+ "gitHead": "3e303fef4a30e065979f80c4df5000243b57d652"
52
52
  }