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

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 CHANGED
@@ -1427,6 +1427,8 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
1427
1427
  syncCookiesToSearchFormItemOptions: (readCached?: boolean) => Promise<void>;
1428
1428
  onResize: (params?: Record<string, any>) => Promise<void>;
1429
1429
  visibleChange: () => void;
1430
+ clearDragCached: () => Promise<void>;
1431
+ clearColumnEditCached: () => Promise<void>;
1430
1432
  }> & import("vue/types/v3-component-options").ExtractComputedReturns<{}> & import("vue-demi").ComponentCustomProperties & Readonly<import("vue-demi").ExtractPropTypes<{
1431
1433
  columns: {
1432
1434
  type: import("vue-demi").PropType<number>;
@@ -2331,6 +2333,8 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
2331
2333
  syncCookiesToSearchFormItemOptions: (readCached?: boolean) => Promise<void>;
2332
2334
  onResize: (params?: Record<string, any>) => Promise<void>;
2333
2335
  visibleChange: () => void;
2336
+ clearDragCached: () => Promise<void>;
2337
+ clearColumnEditCached: () => Promise<void>;
2334
2338
  }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {
2335
2339
  onChange: (event: Record<string, any>) => void;
2336
2340
  itemsChange: (event: string[]) => void;
@@ -19,7 +19,7 @@ __sfc_main$5.props = {
19
19
  };
20
20
  __sfc_main$5.setup = (__props, __ctx) => {
21
21
  var _a;
22
- const props = __props;
22
+ const props2 = __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 props.value;
60
+ return props2.value;
61
61
  }, () => {
62
62
  var _a2, _b, _c, _d, _e, _f;
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])) {
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])) {
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 props = __props;
167
+ const props2 = __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 props.value;
205
+ return props2.value;
206
206
  }, () => {
207
207
  var _a2, _b;
208
- startTime.value = (_a2 = props.value) == null ? void 0 : _a2[0];
209
- endTime.value = (_b = props.value) == null ? void 0 : _b[1];
208
+ startTime.value = (_a2 = props2.value) == null ? void 0 : _a2[0];
209
+ endTime.value = (_b = props2.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 props = __props;
305
+ const props2 = __props;
306
306
  const instance = (_a = vueDemi.getCurrentInstance()) == null ? void 0 : _a.proxy;
307
307
  const slotName = vueDemi.computed(() => {
308
- return props.itemOptions.slot || "";
308
+ return props2.itemOptions.slot || "";
309
309
  });
310
310
  const width = vueDemi.computed(() => {
311
- return (props.itemOptions.width || props.itemWidth) + "px";
311
+ return (props2.itemOptions.width || props2.itemWidth) + "px";
312
312
  });
313
313
  const currentVal = vueDemi.computed({
314
314
  get() {
315
- return props.value;
315
+ return props2.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
- ...props.itemOptions
325
+ ...props2.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 props.itemOptions;
349
+ return props2.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
- ...props.itemOptions.events
358
+ ...props2.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 props.itemOptions.tooltip;
366
+ return props2.itemOptions.tooltip;
367
367
  });
368
368
  const isInput = vueDemi.computed(() => {
369
369
  var _a2;
370
- return ((_a2 = props.itemOptions) == null ? void 0 : _a2.element) === "el-input";
370
+ return ((_a2 = props2.itemOptions) == null ? void 0 : _a2.element) === "el-input";
371
371
  });
372
372
  const isInputNumber = vueDemi.computed(() => {
373
373
  var _a2;
374
- return ((_a2 = props.itemOptions) == null ? void 0 : _a2.element) === "el-input-number";
374
+ return ((_a2 = props2.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 = props.itemOptions) == null ? void 0 : _a2.element;
378
+ const element = (_a2 = props2.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 = props.itemOptions) == null ? void 0 : _a2.element;
383
+ const element = (_a2 = props2.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 = props.itemOptions) == null ? void 0 : _a2.element;
389
- const type = (_b = props.itemOptions) == null ? void 0 : _b.type;
388
+ const element = (_a2 = props2.itemOptions) == null ? void 0 : _a2.element;
389
+ const type = (_b = props2.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 = props.itemOptions) == null ? void 0 : _a2.element;
396
+ const element = (_a2 = props2.itemOptions) == null ? void 0 : _a2.element;
397
397
  const isDatePicker = element === "el-date-picker" || element === "nf-date-picker";
398
- const isMonthRange = ((_b = props.itemOptions) == null ? void 0 : _b.type) === "monthrange";
398
+ const isMonthRange = ((_b = props2.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 = props.itemOptions) == null ? void 0 : _a2.element;
403
+ const element = (_a2 = props2.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 = props.itemOptions) == null ? void 0 : _a2.element;
409
+ const element = (_a2 = props2.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 = props.itemOptions) == null ? void 0 : _a2.element;
415
- const isHalfYearRange = element === "nf-half-year-picker" && ((_b = props.itemOptions) == null ? void 0 : _b.type) === "halfyearrange";
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";
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 = props.itemOptions) == null ? void 0 : _a2.element) === "nf-half-year-picker" && ((_b = props.itemOptions) == null ? void 0 : _b.type) !== "halfyearrange";
420
+ return ((_a2 = props2.itemOptions) == null ? void 0 : _a2.element) === "nf-half-year-picker" && ((_b = props2.itemOptions) == null ? void 0 : _b.type) !== "halfyearrange";
421
421
  });
422
422
  const isQuarterPickerQuarterRange = vueDemi.computed(() => {
423
423
  var _a2, _b;
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";
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";
426
426
  return isHalfYearRange || element === "nf-double-quarter";
427
427
  });
428
428
  const isQuarterPicker = vueDemi.computed(() => {
429
429
  var _a2, _b;
430
- return ((_a2 = props.itemOptions) == null ? void 0 : _a2.element) === "nf-quarter-picker" && ((_b = props.itemOptions) == null ? void 0 : _b.type) !== "quarterrange";
430
+ return ((_a2 = props2.itemOptions) == null ? void 0 : _a2.element) === "nf-quarter-picker" && ((_b = props2.itemOptions) == null ? void 0 : _b.type) !== "quarterrange";
431
431
  });
432
432
  const isDoubleWeek = vueDemi.computed(() => {
433
433
  var _a2;
434
- return ((_a2 = props.itemOptions) == null ? void 0 : _a2.element) === "nf-double-week";
434
+ return ((_a2 = props2.itemOptions) == null ? void 0 : _a2.element) === "nf-double-week";
435
435
  });
436
436
  const isCascader = vueDemi.computed(() => {
437
437
  var _a2;
438
- return ((_a2 = props.itemOptions) == null ? void 0 : _a2.element) === "el-cascader";
438
+ return ((_a2 = props2.itemOptions) == null ? void 0 : _a2.element) === "el-cascader";
439
439
  });
440
440
  const isTimeSelect = vueDemi.computed(() => {
441
441
  var _a2;
442
- return ((_a2 = props.itemOptions) == null ? void 0 : _a2.element) === "el-time-select" && props.itemOptions.type !== "datetimerange";
442
+ return ((_a2 = props2.itemOptions) == null ? void 0 : _a2.element) === "el-time-select" && props2.itemOptions.type !== "datetimerange";
443
443
  });
444
444
  const isTimeSelectRange = vueDemi.computed(() => {
445
- return props.itemOptions.element === "el-time-select" && props.itemOptions.type === "datetimerange";
445
+ return props2.itemOptions.element === "el-time-select" && props2.itemOptions.type === "datetimerange";
446
446
  });
447
447
  const isTimePicker = vueDemi.computed(() => {
448
- return props.itemOptions.element === "el-time-picker";
448
+ return props2.itemOptions.element === "el-time-picker";
449
449
  });
450
450
  const isNumberRange = vueDemi.computed(() => {
451
- return props.itemOptions.element === "number-range";
451
+ return props2.itemOptions.element === "number-range";
452
452
  });
453
453
  const isSelectTransfer = vueDemi.computed(() => {
454
- return props.itemOptions.element === "nf-select-transfer";
454
+ return props2.itemOptions.element === "nf-select-transfer";
455
455
  });
456
456
  const handleChange = (event) => {
457
457
  var _a2, _b;
458
- if ((_b = (_a2 = props.itemOptions) == null ? void 0 : _a2.events) == null ? void 0 : _b.change) {
459
- props.itemOptions.events.change(event, instance);
458
+ if ((_b = (_a2 = props2.itemOptions) == null ? void 0 : _a2.events) == null ? void 0 : _b.change) {
459
+ props2.itemOptions.events.change(event, instance);
460
460
  }
461
461
  };
462
462
  const handleInput = (event) => {
463
463
  var _a2, _b;
464
- if ((_b = (_a2 = props.itemOptions) == null ? void 0 : _a2.events) == null ? void 0 : _b.keyup) {
465
- props.itemOptions.events.keyup(event, instance);
464
+ if ((_b = (_a2 = props2.itemOptions) == null ? void 0 : _a2.events) == null ? void 0 : _b.keyup) {
465
+ props2.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 props = __props;
907
+ const props2 = __props;
908
908
  const tableData = vueDemi.ref({});
909
909
  const emit = __ctx.emit;
910
910
  const visible = vueDemi.computed({
911
911
  get() {
912
- return props.show;
912
+ return props2.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
- props.tableColumns.filter((item) => !item.destory).map((item) => {
921
- const key = item.category || props.basicFieldDesc;
920
+ props2.tableColumns.filter((item) => !item.destory).map((item) => {
921
+ const key = item.category || props2.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
- props.tableColumns.map((i, index2) => {
943
+ props2.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 (props.columnEdit) {
952
- commonUtils.CachedManager.syncCachedSet(props.storageKey, columnState);
951
+ if (props2.columnEdit) {
952
+ commonUtils.CachedManager.syncCachedSet(props2.storageKey, columnState);
953
953
  }
954
954
  };
955
955
  const addInitValue = () => {
956
956
  const obj = {};
957
- props.tableColumns.forEach((v) => {
957
+ props2.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, props2 = componentData.props, componentDataAttrs = componentData.attrs;
5604
+ var on2 = componentData.on, props3 = componentData.props, componentDataAttrs = componentData.attrs;
5605
5605
  update("on", on2);
5606
- update("props", props2);
5606
+ update("props", props3);
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 props = {
5616
+ var props2 = {
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,
5659
+ props: props2,
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 props = __props;
6067
+ const props2 = __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(props.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(props2.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 = props.tableColumns.filter((item) => !item.destory);
6080
+ const list = props2.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 || props.basicFieldDesc;
6094
+ const key = item.category || props2.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: props.selectEmptyWarningTips,
6179
+ message: props2.selectEmptyWarningTips,
6180
6180
  duration: 2e3
6181
6181
  });
6182
- throw new Error(props.selectEmptyWarningTips);
6182
+ throw new Error(props2.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 (props.columnEdit) {
6197
- commonUtils.CachedManager.syncCachedSet(props.storageKey, columnState);
6196
+ if (props2.columnEdit) {
6197
+ commonUtils.CachedManager.syncCachedSet(props2.storageKey, columnState);
6198
6198
  }
6199
6199
  return obj;
6200
6200
  };
@@ -6432,6 +6432,12 @@ 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
+ }
6435
6441
  const __sfc_main = vueDemi.defineComponent({
6436
6442
  name: "nf-search-form"
6437
6443
  });
@@ -7067,7 +7073,7 @@ __sfc_main.props = {
7067
7073
  };
7068
7074
  __sfc_main.setup = (__props, __ctx) => {
7069
7075
  var _a;
7070
- const props = __props;
7076
+ const props2 = __props;
7071
7077
  const emit = __ctx.emit;
7072
7078
  const instance = (_a = vueDemi.getCurrentInstance()) == null ? void 0 : _a.proxy;
7073
7079
  const defaultButtonSlot = vueDemi.ref();
@@ -7078,24 +7084,24 @@ __sfc_main.setup = (__props, __ctx) => {
7078
7084
  const nfSearchFormModel = vueDemi.ref({});
7079
7085
  const initLocalShow = (init = false) => {
7080
7086
  if (!init) {
7081
- props.formOptions._skip = true;
7087
+ props2.formOptions._skip = true;
7082
7088
  }
7083
- const result = props.formOptions.filter((item) => {
7089
+ const result = props2.formOptions.filter((item) => {
7084
7090
  var _a2;
7085
- if ((_a2 = props.showItems) == null ? void 0 : _a2.includes(item.prop)) {
7091
+ if ((_a2 = props2.showItems) == null ? void 0 : _a2.includes(item.prop)) {
7086
7092
  item.initHidden = false;
7087
7093
  }
7088
7094
  return !item.initHidden;
7089
7095
  }).map((item) => item.prop);
7090
7096
  if (!init) {
7091
7097
  vueDemi.nextTick(() => {
7092
- props.formOptions._skip = false;
7098
+ props2.formOptions._skip = false;
7093
7099
  });
7094
7100
  }
7095
7101
  if (result.length) {
7096
7102
  return result;
7097
7103
  }
7098
- return props.formOptions.map((item) => item.prop);
7104
+ return props2.formOptions.map((item) => item.prop);
7099
7105
  };
7100
7106
  const localShowItems = vueDemi.ref(initLocalShow(true));
7101
7107
  vueDemi.watch(() => {
@@ -7110,9 +7116,9 @@ __sfc_main.setup = (__props, __ctx) => {
7110
7116
  immediate: true
7111
7117
  });
7112
7118
  const syncLocalShowColumnToCookies = () => {
7113
- if (props.columnEdit) {
7119
+ if (props2.columnEdit) {
7114
7120
  const columnState = {};
7115
- props.formOptions.map((i, index2) => {
7121
+ props2.formOptions.map((i, index2) => {
7116
7122
  const prop = i.prop;
7117
7123
  columnState[prop] = {
7118
7124
  initHidden: i.initHidden || false,
@@ -7120,12 +7126,12 @@ __sfc_main.setup = (__props, __ctx) => {
7120
7126
  index: index2
7121
7127
  };
7122
7128
  });
7123
- commonUtils.CachedManager.syncCachedSet(props.storageKey, columnState);
7129
+ commonUtils.CachedManager.syncCachedSet(props2.storageKey, columnState);
7124
7130
  }
7125
7131
  };
7126
7132
  const syncShowItemToInitHidden = () => {
7127
- props.formOptions._skip = true;
7128
- props.formOptions.forEach((item) => {
7133
+ props2.formOptions._skip = true;
7134
+ props2.formOptions.forEach((item) => {
7129
7135
  var _a2;
7130
7136
  if ((_a2 = localShowItems.value) == null ? void 0 : _a2.includes(item.prop)) {
7131
7137
  item.initHidden = false;
@@ -7134,7 +7140,7 @@ __sfc_main.setup = (__props, __ctx) => {
7134
7140
  }
7135
7141
  });
7136
7142
  vueDemi.nextTick(() => {
7137
- props.formOptions._skip = false;
7143
+ props2.formOptions._skip = false;
7138
7144
  });
7139
7145
  };
7140
7146
  const setLocalShowItems = (list, syncToInitHidden = false) => {
@@ -7146,11 +7152,11 @@ __sfc_main.setup = (__props, __ctx) => {
7146
7152
  }
7147
7153
  };
7148
7154
  const syncCookiesToLocalShowColumn = async () => {
7149
- if (props.columnEdit) {
7155
+ if (props2.columnEdit) {
7150
7156
  try {
7151
- let columnState = commonUtils.CachedManager.syncCachedGet(props.storageKey);
7157
+ let columnState = commonUtils.CachedManager.syncCachedGet(props2.storageKey);
7152
7158
  if (!columnState) {
7153
- columnState = await commonUtils.CachedManager.asyncCachedGet(props.storageKey);
7159
+ columnState = await commonUtils.CachedManager.asyncCachedGet(props2.storageKey);
7154
7160
  }
7155
7161
  if (columnState) {
7156
7162
  if (typeof columnState === "string") {
@@ -7171,12 +7177,12 @@ __sfc_main.setup = (__props, __ctx) => {
7171
7177
  };
7172
7178
  const initCachedData = async () => {
7173
7179
  var _a2, _b;
7174
- if (props.columnEdit) {
7175
- let cached = commonUtils.CachedManager.syncCachedGet(props.storageKey);
7180
+ if (props2.columnEdit) {
7181
+ let cached = commonUtils.CachedManager.syncCachedGet(props2.storageKey);
7176
7182
  if (!cached) {
7177
- cached = await commonUtils.CachedManager.asyncCachedGet(props.storageKey);
7183
+ cached = await commonUtils.CachedManager.asyncCachedGet(props2.storageKey);
7178
7184
  }
7179
- const cachedPriority = props.priority === "cached";
7185
+ const cachedPriority = props2.priority === "cached";
7180
7186
  if (cachedPriority ? cached : (_a2 = localShowItems.value) == null ? void 0 : _a2.length) {
7181
7187
  cachedPriority ? await syncCookiesToLocalShowColumn() : syncLocalShowColumnToCookies();
7182
7188
  } else if (cachedPriority ? (_b = localShowItems.value) == null ? void 0 : _b.length : cached) {
@@ -7193,8 +7199,8 @@ __sfc_main.setup = (__props, __ctx) => {
7193
7199
  const renderSearchFormItemOptions = vueDemi.ref([]);
7194
7200
  let initSearchForm = true;
7195
7201
  const syncCookiesToSearchFormItemOptions = async (readCached = true) => {
7196
- props.formOptions._skip = true;
7197
- const columns = props.formOptions.map((item, index2) => {
7202
+ props2.formOptions._skip = true;
7203
+ const columns = props2.formOptions.map((item, index2) => {
7198
7204
  item.key = item.key || commonUtils.createUniqueString();
7199
7205
  item._index = index2;
7200
7206
  item.__index = index2;
@@ -7202,13 +7208,13 @@ __sfc_main.setup = (__props, __ctx) => {
7202
7208
  vue.set(item, "destory", !!item.destory);
7203
7209
  return item;
7204
7210
  });
7205
- if (readCached && props.columnEdit) {
7211
+ if (readCached && props2.columnEdit) {
7206
7212
  try {
7207
- let columnState = commonUtils.CachedManager.syncCachedGet(props.storageKey);
7213
+ let columnState = commonUtils.CachedManager.syncCachedGet(props2.storageKey);
7208
7214
  if (!columnState) {
7209
- columnState = await commonUtils.CachedManager.asyncCachedGet(props.storageKey);
7215
+ columnState = await commonUtils.CachedManager.asyncCachedGet(props2.storageKey);
7210
7216
  }
7211
- props.formOptions._skip = true;
7217
+ props2.formOptions._skip = true;
7212
7218
  if (columnState) {
7213
7219
  if (typeof columnState === "string") {
7214
7220
  columnState = JSON.parse(columnState);
@@ -7235,7 +7241,7 @@ __sfc_main.setup = (__props, __ctx) => {
7235
7241
  initSearchForm = false;
7236
7242
  calcColumns();
7237
7243
  }
7238
- props.formOptions._skip = false;
7244
+ props2.formOptions._skip = false;
7239
7245
  });
7240
7246
  };
7241
7247
  syncCookiesToSearchFormItemOptions();
@@ -7249,17 +7255,17 @@ __sfc_main.setup = (__props, __ctx) => {
7249
7255
  });
7250
7256
  const showBtnBoxLabel = vueDemi.ref("");
7251
7257
  vueDemi.watch(() => {
7252
- return props.btnBoxLabel;
7258
+ return props2.btnBoxLabel;
7253
7259
  }, () => {
7254
- showBtnBoxLabel.value = props.btnBoxLabel;
7260
+ showBtnBoxLabel.value = props2.btnBoxLabel;
7255
7261
  }, {
7256
7262
  immediate: true
7257
7263
  });
7258
7264
  vueDemi.onBeforeMount(() => {
7259
7265
  vueDemi.watch(() => {
7260
- return props.formOptions;
7266
+ return props2.formOptions;
7261
7267
  }, async () => {
7262
- if (props.formOptions._skip) {
7268
+ if (props2.formOptions._skip) {
7263
7269
  return;
7264
7270
  }
7265
7271
  setLocalShowItems(initLocalShow());
@@ -7271,7 +7277,7 @@ __sfc_main.setup = (__props, __ctx) => {
7271
7277
  });
7272
7278
  const refreshNfSearchFormModel = (outEmit = true, init = false) => {
7273
7279
  const obj = {};
7274
- props.formOptions.filter((item) => !item.destory).forEach((v) => {
7280
+ props2.formOptions.filter((item) => !item.destory).forEach((v) => {
7275
7281
  if (localShowItems.value.includes(v.prop)) {
7276
7282
  if (init) {
7277
7283
  if (v.initValue !== void 0) {
@@ -7302,7 +7308,7 @@ __sfc_main.setup = (__props, __ctx) => {
7302
7308
  const domWidth = vueDemi.ref();
7303
7309
  const topDom = vueDemi.ref();
7304
7310
  const refreshLabel = () => {
7305
- if (props.btnModel === "inline" && !props.btnBoxLabel && props.labelPosition === "top") {
7311
+ if (props2.btnModel === "inline" && !props2.btnBoxLabel && props2.labelPosition === "top") {
7306
7312
  if (nfSearchFormRef.value.$el.getBoundingClientRect().left === defaultButtonSlot.value.$el.getBoundingClientRect().left) {
7307
7313
  showBtnBoxLabel.value = "";
7308
7314
  } else {
@@ -7325,8 +7331,8 @@ __sfc_main.setup = (__props, __ctx) => {
7325
7331
  refreshLabel();
7326
7332
  };
7327
7333
  const calcColumns = () => {
7328
- if (props.columns) {
7329
- newColumns.value = props.columns;
7334
+ if (props2.columns) {
7335
+ newColumns.value = props2.columns;
7330
7336
  return;
7331
7337
  }
7332
7338
  if (!nfSearchFormRef.value)
@@ -7389,7 +7395,7 @@ __sfc_main.setup = (__props, __ctx) => {
7389
7395
  return true;
7390
7396
  });
7391
7397
  vueDemi.nextTick(() => {
7392
- props.formOptions._skip = false;
7398
+ props2.formOptions._skip = false;
7393
7399
  });
7394
7400
  localShowItems.value = prop.formOptions.filter((item) => !item.initHidden).map((item) => item.prop);
7395
7401
  await syncLocalShowColumnToCookies();
@@ -7399,7 +7405,7 @@ __sfc_main.setup = (__props, __ctx) => {
7399
7405
  refreshLabel();
7400
7406
  };
7401
7407
  const columnCheckConfirmFeedback = (value) => {
7402
- if (!props.columnEdit) {
7408
+ if (!props2.columnEdit) {
7403
7409
  const itemsList = [];
7404
7410
  for (const key in value) {
7405
7411
  if (value[key]) {
@@ -7529,7 +7535,9 @@ __sfc_main.setup = (__props, __ctx) => {
7529
7535
  */
7530
7536
  syncCookiesToSearchFormItemOptions,
7531
7537
  onResize,
7532
- visibleChange: refreshLabel
7538
+ visibleChange: refreshLabel,
7539
+ clearDragCached,
7540
+ clearColumnEditCached
7533
7541
  });
7534
7542
  };
7535
7543
  __sfc_main.components = Object.assign({
@@ -17,7 +17,7 @@ __sfc_main$5.props = {
17
17
  };
18
18
  __sfc_main$5.setup = (__props, __ctx) => {
19
19
  var _a;
20
- const props = __props;
20
+ const props2 = __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 props.value;
58
+ return props2.value;
59
59
  }, () => {
60
60
  var _a2, _b, _c, _d, _e, _f;
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])) {
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])) {
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 props = __props;
165
+ const props2 = __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 props.value;
203
+ return props2.value;
204
204
  }, () => {
205
205
  var _a2, _b;
206
- startTime.value = (_a2 = props.value) == null ? void 0 : _a2[0];
207
- endTime.value = (_b = props.value) == null ? void 0 : _b[1];
206
+ startTime.value = (_a2 = props2.value) == null ? void 0 : _a2[0];
207
+ endTime.value = (_b = props2.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 props = __props;
303
+ const props2 = __props;
304
304
  const instance = (_a = getCurrentInstance()) == null ? void 0 : _a.proxy;
305
305
  const slotName = computed(() => {
306
- return props.itemOptions.slot || "";
306
+ return props2.itemOptions.slot || "";
307
307
  });
308
308
  const width = computed(() => {
309
- return (props.itemOptions.width || props.itemWidth) + "px";
309
+ return (props2.itemOptions.width || props2.itemWidth) + "px";
310
310
  });
311
311
  const currentVal = computed({
312
312
  get() {
313
- return props.value;
313
+ return props2.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
- ...props.itemOptions
323
+ ...props2.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 props.itemOptions;
347
+ return props2.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
- ...props.itemOptions.events
356
+ ...props2.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 props.itemOptions.tooltip;
364
+ return props2.itemOptions.tooltip;
365
365
  });
366
366
  const isInput = computed(() => {
367
367
  var _a2;
368
- return ((_a2 = props.itemOptions) == null ? void 0 : _a2.element) === "el-input";
368
+ return ((_a2 = props2.itemOptions) == null ? void 0 : _a2.element) === "el-input";
369
369
  });
370
370
  const isInputNumber = computed(() => {
371
371
  var _a2;
372
- return ((_a2 = props.itemOptions) == null ? void 0 : _a2.element) === "el-input-number";
372
+ return ((_a2 = props2.itemOptions) == null ? void 0 : _a2.element) === "el-input-number";
373
373
  });
374
374
  const isSelect = computed(() => {
375
375
  var _a2;
376
- const element = (_a2 = props.itemOptions) == null ? void 0 : _a2.element;
376
+ const element = (_a2 = props2.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 = props.itemOptions) == null ? void 0 : _a2.element;
381
+ const element = (_a2 = props2.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 = props.itemOptions) == null ? void 0 : _a2.element;
387
- const type = (_b = props.itemOptions) == null ? void 0 : _b.type;
386
+ const element = (_a2 = props2.itemOptions) == null ? void 0 : _a2.element;
387
+ const type = (_b = props2.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 = props.itemOptions) == null ? void 0 : _a2.element;
394
+ const element = (_a2 = props2.itemOptions) == null ? void 0 : _a2.element;
395
395
  const isDatePicker = element === "el-date-picker" || element === "nf-date-picker";
396
- const isMonthRange = ((_b = props.itemOptions) == null ? void 0 : _b.type) === "monthrange";
396
+ const isMonthRange = ((_b = props2.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 = props.itemOptions) == null ? void 0 : _a2.element;
401
+ const element = (_a2 = props2.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 = props.itemOptions) == null ? void 0 : _a2.element;
407
+ const element = (_a2 = props2.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 = props.itemOptions) == null ? void 0 : _a2.element;
413
- const isHalfYearRange = element === "nf-half-year-picker" && ((_b = props.itemOptions) == null ? void 0 : _b.type) === "halfyearrange";
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";
414
414
  return isHalfYearRange || element === "nf-double-half-year";
415
415
  });
416
416
  const isHalfYearPicker = computed(() => {
417
417
  var _a2, _b;
418
- return ((_a2 = props.itemOptions) == null ? void 0 : _a2.element) === "nf-half-year-picker" && ((_b = props.itemOptions) == null ? void 0 : _b.type) !== "halfyearrange";
418
+ return ((_a2 = props2.itemOptions) == null ? void 0 : _a2.element) === "nf-half-year-picker" && ((_b = props2.itemOptions) == null ? void 0 : _b.type) !== "halfyearrange";
419
419
  });
420
420
  const isQuarterPickerQuarterRange = computed(() => {
421
421
  var _a2, _b;
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";
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";
424
424
  return isHalfYearRange || element === "nf-double-quarter";
425
425
  });
426
426
  const isQuarterPicker = computed(() => {
427
427
  var _a2, _b;
428
- return ((_a2 = props.itemOptions) == null ? void 0 : _a2.element) === "nf-quarter-picker" && ((_b = props.itemOptions) == null ? void 0 : _b.type) !== "quarterrange";
428
+ return ((_a2 = props2.itemOptions) == null ? void 0 : _a2.element) === "nf-quarter-picker" && ((_b = props2.itemOptions) == null ? void 0 : _b.type) !== "quarterrange";
429
429
  });
430
430
  const isDoubleWeek = computed(() => {
431
431
  var _a2;
432
- return ((_a2 = props.itemOptions) == null ? void 0 : _a2.element) === "nf-double-week";
432
+ return ((_a2 = props2.itemOptions) == null ? void 0 : _a2.element) === "nf-double-week";
433
433
  });
434
434
  const isCascader = computed(() => {
435
435
  var _a2;
436
- return ((_a2 = props.itemOptions) == null ? void 0 : _a2.element) === "el-cascader";
436
+ return ((_a2 = props2.itemOptions) == null ? void 0 : _a2.element) === "el-cascader";
437
437
  });
438
438
  const isTimeSelect = computed(() => {
439
439
  var _a2;
440
- return ((_a2 = props.itemOptions) == null ? void 0 : _a2.element) === "el-time-select" && props.itemOptions.type !== "datetimerange";
440
+ return ((_a2 = props2.itemOptions) == null ? void 0 : _a2.element) === "el-time-select" && props2.itemOptions.type !== "datetimerange";
441
441
  });
442
442
  const isTimeSelectRange = computed(() => {
443
- return props.itemOptions.element === "el-time-select" && props.itemOptions.type === "datetimerange";
443
+ return props2.itemOptions.element === "el-time-select" && props2.itemOptions.type === "datetimerange";
444
444
  });
445
445
  const isTimePicker = computed(() => {
446
- return props.itemOptions.element === "el-time-picker";
446
+ return props2.itemOptions.element === "el-time-picker";
447
447
  });
448
448
  const isNumberRange = computed(() => {
449
- return props.itemOptions.element === "number-range";
449
+ return props2.itemOptions.element === "number-range";
450
450
  });
451
451
  const isSelectTransfer = computed(() => {
452
- return props.itemOptions.element === "nf-select-transfer";
452
+ return props2.itemOptions.element === "nf-select-transfer";
453
453
  });
454
454
  const handleChange = (event) => {
455
455
  var _a2, _b;
456
- if ((_b = (_a2 = props.itemOptions) == null ? void 0 : _a2.events) == null ? void 0 : _b.change) {
457
- props.itemOptions.events.change(event, instance);
456
+ if ((_b = (_a2 = props2.itemOptions) == null ? void 0 : _a2.events) == null ? void 0 : _b.change) {
457
+ props2.itemOptions.events.change(event, instance);
458
458
  }
459
459
  };
460
460
  const handleInput = (event) => {
461
461
  var _a2, _b;
462
- if ((_b = (_a2 = props.itemOptions) == null ? void 0 : _a2.events) == null ? void 0 : _b.keyup) {
463
- props.itemOptions.events.keyup(event, instance);
462
+ if ((_b = (_a2 = props2.itemOptions) == null ? void 0 : _a2.events) == null ? void 0 : _b.keyup) {
463
+ props2.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 props = __props;
905
+ const props2 = __props;
906
906
  const tableData = ref({});
907
907
  const emit = __ctx.emit;
908
908
  const visible = computed({
909
909
  get() {
910
- return props.show;
910
+ return props2.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
- props.tableColumns.filter((item) => !item.destory).map((item) => {
919
- const key = item.category || props.basicFieldDesc;
918
+ props2.tableColumns.filter((item) => !item.destory).map((item) => {
919
+ const key = item.category || props2.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
- props.tableColumns.map((i, index2) => {
941
+ props2.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 (props.columnEdit) {
950
- CachedManager.syncCachedSet(props.storageKey, columnState);
949
+ if (props2.columnEdit) {
950
+ CachedManager.syncCachedSet(props2.storageKey, columnState);
951
951
  }
952
952
  };
953
953
  const addInitValue = () => {
954
954
  const obj = {};
955
- props.tableColumns.forEach((v) => {
955
+ props2.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, props2 = componentData.props, componentDataAttrs = componentData.attrs;
5602
+ var on2 = componentData.on, props3 = componentData.props, componentDataAttrs = componentData.attrs;
5603
5603
  update("on", on2);
5604
- update("props", props2);
5604
+ update("props", props3);
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 props = {
5614
+ var props2 = {
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,
5657
+ props: props2,
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 props = __props;
6065
+ const props2 = __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(props.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(props2.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 = props.tableColumns.filter((item) => !item.destory);
6078
+ const list = props2.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 || props.basicFieldDesc;
6092
+ const key = item.category || props2.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: props.selectEmptyWarningTips,
6177
+ message: props2.selectEmptyWarningTips,
6178
6178
  duration: 2e3
6179
6179
  });
6180
- throw new Error(props.selectEmptyWarningTips);
6180
+ throw new Error(props2.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 (props.columnEdit) {
6195
- CachedManager.syncCachedSet(props.storageKey, columnState);
6194
+ if (props2.columnEdit) {
6195
+ CachedManager.syncCachedSet(props2.storageKey, columnState);
6196
6196
  }
6197
6197
  return obj;
6198
6198
  };
@@ -6430,6 +6430,12 @@ 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
+ }
6433
6439
  const __sfc_main = defineComponent({
6434
6440
  name: "nf-search-form"
6435
6441
  });
@@ -7065,7 +7071,7 @@ __sfc_main.props = {
7065
7071
  };
7066
7072
  __sfc_main.setup = (__props, __ctx) => {
7067
7073
  var _a;
7068
- const props = __props;
7074
+ const props2 = __props;
7069
7075
  const emit = __ctx.emit;
7070
7076
  const instance = (_a = getCurrentInstance()) == null ? void 0 : _a.proxy;
7071
7077
  const defaultButtonSlot = ref();
@@ -7076,24 +7082,24 @@ __sfc_main.setup = (__props, __ctx) => {
7076
7082
  const nfSearchFormModel = ref({});
7077
7083
  const initLocalShow = (init = false) => {
7078
7084
  if (!init) {
7079
- props.formOptions._skip = true;
7085
+ props2.formOptions._skip = true;
7080
7086
  }
7081
- const result = props.formOptions.filter((item) => {
7087
+ const result = props2.formOptions.filter((item) => {
7082
7088
  var _a2;
7083
- if ((_a2 = props.showItems) == null ? void 0 : _a2.includes(item.prop)) {
7089
+ if ((_a2 = props2.showItems) == null ? void 0 : _a2.includes(item.prop)) {
7084
7090
  item.initHidden = false;
7085
7091
  }
7086
7092
  return !item.initHidden;
7087
7093
  }).map((item) => item.prop);
7088
7094
  if (!init) {
7089
7095
  nextTick(() => {
7090
- props.formOptions._skip = false;
7096
+ props2.formOptions._skip = false;
7091
7097
  });
7092
7098
  }
7093
7099
  if (result.length) {
7094
7100
  return result;
7095
7101
  }
7096
- return props.formOptions.map((item) => item.prop);
7102
+ return props2.formOptions.map((item) => item.prop);
7097
7103
  };
7098
7104
  const localShowItems = ref(initLocalShow(true));
7099
7105
  watch(() => {
@@ -7108,9 +7114,9 @@ __sfc_main.setup = (__props, __ctx) => {
7108
7114
  immediate: true
7109
7115
  });
7110
7116
  const syncLocalShowColumnToCookies = () => {
7111
- if (props.columnEdit) {
7117
+ if (props2.columnEdit) {
7112
7118
  const columnState = {};
7113
- props.formOptions.map((i, index2) => {
7119
+ props2.formOptions.map((i, index2) => {
7114
7120
  const prop = i.prop;
7115
7121
  columnState[prop] = {
7116
7122
  initHidden: i.initHidden || false,
@@ -7118,12 +7124,12 @@ __sfc_main.setup = (__props, __ctx) => {
7118
7124
  index: index2
7119
7125
  };
7120
7126
  });
7121
- CachedManager.syncCachedSet(props.storageKey, columnState);
7127
+ CachedManager.syncCachedSet(props2.storageKey, columnState);
7122
7128
  }
7123
7129
  };
7124
7130
  const syncShowItemToInitHidden = () => {
7125
- props.formOptions._skip = true;
7126
- props.formOptions.forEach((item) => {
7131
+ props2.formOptions._skip = true;
7132
+ props2.formOptions.forEach((item) => {
7127
7133
  var _a2;
7128
7134
  if ((_a2 = localShowItems.value) == null ? void 0 : _a2.includes(item.prop)) {
7129
7135
  item.initHidden = false;
@@ -7132,7 +7138,7 @@ __sfc_main.setup = (__props, __ctx) => {
7132
7138
  }
7133
7139
  });
7134
7140
  nextTick(() => {
7135
- props.formOptions._skip = false;
7141
+ props2.formOptions._skip = false;
7136
7142
  });
7137
7143
  };
7138
7144
  const setLocalShowItems = (list, syncToInitHidden = false) => {
@@ -7144,11 +7150,11 @@ __sfc_main.setup = (__props, __ctx) => {
7144
7150
  }
7145
7151
  };
7146
7152
  const syncCookiesToLocalShowColumn = async () => {
7147
- if (props.columnEdit) {
7153
+ if (props2.columnEdit) {
7148
7154
  try {
7149
- let columnState = CachedManager.syncCachedGet(props.storageKey);
7155
+ let columnState = CachedManager.syncCachedGet(props2.storageKey);
7150
7156
  if (!columnState) {
7151
- columnState = await CachedManager.asyncCachedGet(props.storageKey);
7157
+ columnState = await CachedManager.asyncCachedGet(props2.storageKey);
7152
7158
  }
7153
7159
  if (columnState) {
7154
7160
  if (typeof columnState === "string") {
@@ -7169,12 +7175,12 @@ __sfc_main.setup = (__props, __ctx) => {
7169
7175
  };
7170
7176
  const initCachedData = async () => {
7171
7177
  var _a2, _b;
7172
- if (props.columnEdit) {
7173
- let cached = CachedManager.syncCachedGet(props.storageKey);
7178
+ if (props2.columnEdit) {
7179
+ let cached = CachedManager.syncCachedGet(props2.storageKey);
7174
7180
  if (!cached) {
7175
- cached = await CachedManager.asyncCachedGet(props.storageKey);
7181
+ cached = await CachedManager.asyncCachedGet(props2.storageKey);
7176
7182
  }
7177
- const cachedPriority = props.priority === "cached";
7183
+ const cachedPriority = props2.priority === "cached";
7178
7184
  if (cachedPriority ? cached : (_a2 = localShowItems.value) == null ? void 0 : _a2.length) {
7179
7185
  cachedPriority ? await syncCookiesToLocalShowColumn() : syncLocalShowColumnToCookies();
7180
7186
  } else if (cachedPriority ? (_b = localShowItems.value) == null ? void 0 : _b.length : cached) {
@@ -7191,8 +7197,8 @@ __sfc_main.setup = (__props, __ctx) => {
7191
7197
  const renderSearchFormItemOptions = ref([]);
7192
7198
  let initSearchForm = true;
7193
7199
  const syncCookiesToSearchFormItemOptions = async (readCached = true) => {
7194
- props.formOptions._skip = true;
7195
- const columns = props.formOptions.map((item, index2) => {
7200
+ props2.formOptions._skip = true;
7201
+ const columns = props2.formOptions.map((item, index2) => {
7196
7202
  item.key = item.key || createUniqueString();
7197
7203
  item._index = index2;
7198
7204
  item.__index = index2;
@@ -7200,13 +7206,13 @@ __sfc_main.setup = (__props, __ctx) => {
7200
7206
  set(item, "destory", !!item.destory);
7201
7207
  return item;
7202
7208
  });
7203
- if (readCached && props.columnEdit) {
7209
+ if (readCached && props2.columnEdit) {
7204
7210
  try {
7205
- let columnState = CachedManager.syncCachedGet(props.storageKey);
7211
+ let columnState = CachedManager.syncCachedGet(props2.storageKey);
7206
7212
  if (!columnState) {
7207
- columnState = await CachedManager.asyncCachedGet(props.storageKey);
7213
+ columnState = await CachedManager.asyncCachedGet(props2.storageKey);
7208
7214
  }
7209
- props.formOptions._skip = true;
7215
+ props2.formOptions._skip = true;
7210
7216
  if (columnState) {
7211
7217
  if (typeof columnState === "string") {
7212
7218
  columnState = JSON.parse(columnState);
@@ -7233,7 +7239,7 @@ __sfc_main.setup = (__props, __ctx) => {
7233
7239
  initSearchForm = false;
7234
7240
  calcColumns();
7235
7241
  }
7236
- props.formOptions._skip = false;
7242
+ props2.formOptions._skip = false;
7237
7243
  });
7238
7244
  };
7239
7245
  syncCookiesToSearchFormItemOptions();
@@ -7247,17 +7253,17 @@ __sfc_main.setup = (__props, __ctx) => {
7247
7253
  });
7248
7254
  const showBtnBoxLabel = ref("");
7249
7255
  watch(() => {
7250
- return props.btnBoxLabel;
7256
+ return props2.btnBoxLabel;
7251
7257
  }, () => {
7252
- showBtnBoxLabel.value = props.btnBoxLabel;
7258
+ showBtnBoxLabel.value = props2.btnBoxLabel;
7253
7259
  }, {
7254
7260
  immediate: true
7255
7261
  });
7256
7262
  onBeforeMount(() => {
7257
7263
  watch(() => {
7258
- return props.formOptions;
7264
+ return props2.formOptions;
7259
7265
  }, async () => {
7260
- if (props.formOptions._skip) {
7266
+ if (props2.formOptions._skip) {
7261
7267
  return;
7262
7268
  }
7263
7269
  setLocalShowItems(initLocalShow());
@@ -7269,7 +7275,7 @@ __sfc_main.setup = (__props, __ctx) => {
7269
7275
  });
7270
7276
  const refreshNfSearchFormModel = (outEmit = true, init = false) => {
7271
7277
  const obj = {};
7272
- props.formOptions.filter((item) => !item.destory).forEach((v) => {
7278
+ props2.formOptions.filter((item) => !item.destory).forEach((v) => {
7273
7279
  if (localShowItems.value.includes(v.prop)) {
7274
7280
  if (init) {
7275
7281
  if (v.initValue !== void 0) {
@@ -7300,7 +7306,7 @@ __sfc_main.setup = (__props, __ctx) => {
7300
7306
  const domWidth = ref();
7301
7307
  const topDom = ref();
7302
7308
  const refreshLabel = () => {
7303
- if (props.btnModel === "inline" && !props.btnBoxLabel && props.labelPosition === "top") {
7309
+ if (props2.btnModel === "inline" && !props2.btnBoxLabel && props2.labelPosition === "top") {
7304
7310
  if (nfSearchFormRef.value.$el.getBoundingClientRect().left === defaultButtonSlot.value.$el.getBoundingClientRect().left) {
7305
7311
  showBtnBoxLabel.value = "";
7306
7312
  } else {
@@ -7323,8 +7329,8 @@ __sfc_main.setup = (__props, __ctx) => {
7323
7329
  refreshLabel();
7324
7330
  };
7325
7331
  const calcColumns = () => {
7326
- if (props.columns) {
7327
- newColumns.value = props.columns;
7332
+ if (props2.columns) {
7333
+ newColumns.value = props2.columns;
7328
7334
  return;
7329
7335
  }
7330
7336
  if (!nfSearchFormRef.value)
@@ -7387,7 +7393,7 @@ __sfc_main.setup = (__props, __ctx) => {
7387
7393
  return true;
7388
7394
  });
7389
7395
  nextTick(() => {
7390
- props.formOptions._skip = false;
7396
+ props2.formOptions._skip = false;
7391
7397
  });
7392
7398
  localShowItems.value = prop.formOptions.filter((item) => !item.initHidden).map((item) => item.prop);
7393
7399
  await syncLocalShowColumnToCookies();
@@ -7397,7 +7403,7 @@ __sfc_main.setup = (__props, __ctx) => {
7397
7403
  refreshLabel();
7398
7404
  };
7399
7405
  const columnCheckConfirmFeedback = (value) => {
7400
- if (!props.columnEdit) {
7406
+ if (!props2.columnEdit) {
7401
7407
  const itemsList = [];
7402
7408
  for (const key in value) {
7403
7409
  if (value[key]) {
@@ -7527,7 +7533,9 @@ __sfc_main.setup = (__props, __ctx) => {
7527
7533
  */
7528
7534
  syncCookiesToSearchFormItemOptions,
7529
7535
  onResize,
7530
- visibleChange: refreshLabel
7536
+ visibleChange: refreshLabel,
7537
+ clearDragCached,
7538
+ clearColumnEditCached
7531
7539
  });
7532
7540
  };
7533
7541
  __sfc_main.components = Object.assign({
@@ -487,6 +487,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
487
487
  syncCookiesToSearchFormItemOptions: (readCached?: boolean) => Promise<void>;
488
488
  onResize: (params?: Record<string, any>) => Promise<void>;
489
489
  visibleChange: () => void;
490
+ clearDragCached: () => Promise<void>;
491
+ clearColumnEditCached: () => Promise<void>;
490
492
  }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {
491
493
  onChange: (event: Record<string, any>) => void;
492
494
  itemsChange: (event: string[]) => void;
@@ -1047,6 +1047,14 @@ const columnCheckConfirm = async (cb, error) => {
1047
1047
  }
1048
1048
  }
1049
1049
 
1050
+ export async function clearDragCached() {
1051
+ await CachedManager.asyncCachedSet(`${props.storageKey}$drag-column-width`, null)
1052
+ }
1053
+
1054
+ export async function clearColumnEditCached() {
1055
+ await CachedManager.asyncCachedSet(props.storageKey, null)
1056
+ }
1057
+
1050
1058
  /**
1051
1059
  * 保存表单显示的字段
1052
1060
  */
@@ -1133,7 +1141,9 @@ defineExpose({
1133
1141
  */
1134
1142
  syncCookiesToSearchFormItemOptions,
1135
1143
  onResize,
1136
- visibleChange: refreshLabel
1144
+ visibleChange: refreshLabel,
1145
+ clearDragCached,
1146
+ clearColumnEditCached
1137
1147
  })
1138
1148
 
1139
1149
  </script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@94ai/nf-search-form",
3
- "version": "3.2.70",
3
+ "version": "3.2.71",
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.70",
18
- "@94ai/nf-button": "^3.2.70",
19
- "@94ai/nf-double-half-year": "^3.2.70",
20
- "@94ai/nf-double-quarter": "^3.2.70",
21
- "@94ai/nf-double-week": "^3.2.70",
22
- "@94ai/nf-double-year": "^3.2.70",
23
- "@94ai/nf-drawer": "^3.2.70",
24
- "@94ai/nf-form": "^3.2.70",
25
- "@94ai/nf-form-item": "^3.2.70",
26
- "@94ai/nf-half-year-picker": "^3.2.70",
27
- "@94ai/nf-lazy-select": "^3.2.70",
28
- "@94ai/nf-message": "^3.2.70",
29
- "@94ai/nf-quarter-picker": "^3.2.70",
30
- "@94ai/nf-select-transfer": "^3.2.70",
31
- "@94ai/nf-theme-chalk": "^3.2.70",
32
- "@94ai/nf-virtual-select": "^3.2.70",
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",
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": "8d34ebea758609976687c2585cea11a0ca01a7c8"
51
+ "gitHead": "7dd798a04d78ba60682dc8db365591e980029d37"
52
52
  }