@94ai/nf-search-form 3.2.35 → 3.2.38

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
@@ -76,10 +76,6 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
76
76
  type: import("vue-demi").PropType<Record<string, any>>;
77
77
  default: undefined;
78
78
  };
79
- inline: {
80
- type: import("vue-demi").PropType<boolean>;
81
- default: boolean;
82
- };
83
79
  upIcon: {
84
80
  type: import("vue-demi").PropType<string>;
85
81
  default: string;
@@ -158,12 +154,16 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
158
154
  type: import("vue-demi").PropType<"right" | "left" | "top">;
159
155
  default: string;
160
156
  };
157
+ inline: {
158
+ type: import("vue-demi").PropType<boolean>;
159
+ default: boolean;
160
+ };
161
161
  btnBoxLabel: {
162
162
  type: import("vue-demi").PropType<string>;
163
163
  default: string;
164
164
  };
165
165
  btnModel: {
166
- type: import("vue-demi").PropType<"inline" | "block">;
166
+ type: import("vue-demi").PropType<"block" | "inline">;
167
167
  default: string;
168
168
  };
169
169
  labelWidth: {
@@ -481,10 +481,6 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
481
481
  type: import("vue-demi").PropType<Record<string, any>>;
482
482
  default: undefined;
483
483
  };
484
- inline: {
485
- type: import("vue-demi").PropType<boolean>;
486
- default: boolean;
487
- };
488
484
  upIcon: {
489
485
  type: import("vue-demi").PropType<string>;
490
486
  default: string;
@@ -563,12 +559,16 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
563
559
  type: import("vue-demi").PropType<"right" | "left" | "top">;
564
560
  default: string;
565
561
  };
562
+ inline: {
563
+ type: import("vue-demi").PropType<boolean>;
564
+ default: boolean;
565
+ };
566
566
  btnBoxLabel: {
567
567
  type: import("vue-demi").PropType<string>;
568
568
  default: string;
569
569
  };
570
570
  btnModel: {
571
- type: import("vue-demi").PropType<"inline" | "block">;
571
+ type: import("vue-demi").PropType<"block" | "inline">;
572
572
  default: string;
573
573
  };
574
574
  labelWidth: {
@@ -837,7 +837,6 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
837
837
  disabled: boolean;
838
838
  itemWidth: number;
839
839
  rules: Record<string, any>;
840
- inline: boolean;
841
840
  upIcon: string;
842
841
  downIcon: string;
843
842
  columns: number;
@@ -856,8 +855,9 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
856
855
  statusIcon: boolean;
857
856
  validateOnRuleChange: boolean;
858
857
  labelPosition: "right" | "left" | "top";
858
+ inline: boolean;
859
859
  btnBoxLabel: string;
860
- btnModel: "inline" | "block";
860
+ btnModel: "block" | "inline";
861
861
  labelWidth: number;
862
862
  formOptions: any;
863
863
  closable: boolean;
@@ -990,10 +990,6 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
990
990
  type: import("vue-demi").PropType<Record<string, any>>;
991
991
  default: undefined;
992
992
  };
993
- inline: {
994
- type: import("vue-demi").PropType<boolean>;
995
- default: boolean;
996
- };
997
993
  upIcon: {
998
994
  type: import("vue-demi").PropType<string>;
999
995
  default: string;
@@ -1072,12 +1068,16 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
1072
1068
  type: import("vue-demi").PropType<"right" | "left" | "top">;
1073
1069
  default: string;
1074
1070
  };
1071
+ inline: {
1072
+ type: import("vue-demi").PropType<boolean>;
1073
+ default: boolean;
1074
+ };
1075
1075
  btnBoxLabel: {
1076
1076
  type: import("vue-demi").PropType<string>;
1077
1077
  default: string;
1078
1078
  };
1079
1079
  btnModel: {
1080
- type: import("vue-demi").PropType<"inline" | "block">;
1080
+ type: import("vue-demi").PropType<"block" | "inline">;
1081
1081
  default: string;
1082
1082
  };
1083
1083
  labelWidth: {
@@ -1464,10 +1464,6 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
1464
1464
  type: import("vue-demi").PropType<Record<string, any>>;
1465
1465
  default: undefined;
1466
1466
  };
1467
- inline: {
1468
- type: import("vue-demi").PropType<boolean>;
1469
- default: boolean;
1470
- };
1471
1467
  upIcon: {
1472
1468
  type: import("vue-demi").PropType<string>;
1473
1469
  default: string;
@@ -1546,12 +1542,16 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
1546
1542
  type: import("vue-demi").PropType<"right" | "left" | "top">;
1547
1543
  default: string;
1548
1544
  };
1545
+ inline: {
1546
+ type: import("vue-demi").PropType<boolean>;
1547
+ default: boolean;
1548
+ };
1549
1549
  btnBoxLabel: {
1550
1550
  type: import("vue-demi").PropType<string>;
1551
1551
  default: string;
1552
1552
  };
1553
1553
  btnModel: {
1554
- type: import("vue-demi").PropType<"inline" | "block">;
1554
+ type: import("vue-demi").PropType<"block" | "inline">;
1555
1555
  default: string;
1556
1556
  };
1557
1557
  labelWidth: {
@@ -1869,10 +1869,6 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
1869
1869
  type: import("vue-demi").PropType<Record<string, any>>;
1870
1870
  default: undefined;
1871
1871
  };
1872
- inline: {
1873
- type: import("vue-demi").PropType<boolean>;
1874
- default: boolean;
1875
- };
1876
1872
  upIcon: {
1877
1873
  type: import("vue-demi").PropType<string>;
1878
1874
  default: string;
@@ -1951,12 +1947,16 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
1951
1947
  type: import("vue-demi").PropType<"right" | "left" | "top">;
1952
1948
  default: string;
1953
1949
  };
1950
+ inline: {
1951
+ type: import("vue-demi").PropType<boolean>;
1952
+ default: boolean;
1953
+ };
1954
1954
  btnBoxLabel: {
1955
1955
  type: import("vue-demi").PropType<string>;
1956
1956
  default: string;
1957
1957
  };
1958
1958
  btnModel: {
1959
- type: import("vue-demi").PropType<"inline" | "block">;
1959
+ type: import("vue-demi").PropType<"block" | "inline">;
1960
1960
  default: string;
1961
1961
  };
1962
1962
  labelWidth: {
@@ -2294,7 +2294,6 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
2294
2294
  disabled: boolean;
2295
2295
  itemWidth: number;
2296
2296
  rules: Record<string, any>;
2297
- inline: boolean;
2298
2297
  upIcon: string;
2299
2298
  downIcon: string;
2300
2299
  columns: number;
@@ -2313,8 +2312,9 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
2313
2312
  statusIcon: boolean;
2314
2313
  validateOnRuleChange: boolean;
2315
2314
  labelPosition: "right" | "left" | "top";
2315
+ inline: boolean;
2316
2316
  btnBoxLabel: string;
2317
- btnModel: "inline" | "block";
2317
+ btnModel: "block" | "inline";
2318
2318
  labelWidth: number;
2319
2319
  formOptions: any;
2320
2320
  closable: boolean;
@@ -2448,10 +2448,6 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
2448
2448
  type: import("vue-demi").PropType<Record<string, any>>;
2449
2449
  default: undefined;
2450
2450
  };
2451
- inline: {
2452
- type: import("vue-demi").PropType<boolean>;
2453
- default: boolean;
2454
- };
2455
2451
  upIcon: {
2456
2452
  type: import("vue-demi").PropType<string>;
2457
2453
  default: string;
@@ -2530,12 +2526,16 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
2530
2526
  type: import("vue-demi").PropType<"right" | "left" | "top">;
2531
2527
  default: string;
2532
2528
  };
2529
+ inline: {
2530
+ type: import("vue-demi").PropType<boolean>;
2531
+ default: boolean;
2532
+ };
2533
2533
  btnBoxLabel: {
2534
2534
  type: import("vue-demi").PropType<string>;
2535
2535
  default: string;
2536
2536
  };
2537
2537
  btnModel: {
2538
- type: import("vue-demi").PropType<"inline" | "block">;
2538
+ type: import("vue-demi").PropType<"block" | "inline">;
2539
2539
  default: string;
2540
2540
  };
2541
2541
  labelWidth: {
@@ -956,7 +956,7 @@ __sfc_main$2.setup = (__props, __ctx) => {
956
956
  });
957
957
  const instance = (_a = vueDemi.getCurrentInstance()) == null ? void 0 : _a.proxy;
958
958
  const submit = () => {
959
- var _a2;
959
+ var _a2, _b;
960
960
  visible.value = false;
961
961
  const columnState = {};
962
962
  props.tableColumns.map((i, index2) => {
@@ -966,7 +966,8 @@ __sfc_main$2.setup = (__props, __ctx) => {
966
966
  index: index2
967
967
  };
968
968
  });
969
- (_a2 = instance == null ? void 0 : instance.$cookies) == null ? void 0 : _a2.set(props.storageKey, JSON.stringify(columnState), -1);
969
+ (_a2 = instance == null ? void 0 : instance.$cookies) == null ? void 0 : _a2.remove(props.storageKey);
970
+ (_b = instance == null ? void 0 : instance.$cookies) == null ? void 0 : _b.set(props.storageKey, JSON.stringify(columnState), -1, "xxxx/xxxx/xxxx");
970
971
  emit("save", tableData.value);
971
972
  };
972
973
  const addInitValue = () => {
@@ -6178,7 +6179,7 @@ __sfc_main$1.setup = (__props, __ctx) => {
6178
6179
  updateColumn();
6179
6180
  };
6180
6181
  const syncTableColumnsToCookies = () => {
6181
- var _a2;
6182
+ var _a2, _b;
6182
6183
  const newTableColumns = [...fixedColumn.value, ...unFixedColumn.value];
6183
6184
  if (newTableColumns.filter((item) => !item.initHidden).length === 0) {
6184
6185
  instance == null ? void 0 : instance.$openMessage.warning({
@@ -6199,7 +6200,8 @@ __sfc_main$1.setup = (__props, __ctx) => {
6199
6200
  };
6200
6201
  obj[i.prop] = !columnState[i.prop].initHidden;
6201
6202
  });
6202
- (_a2 = instance == null ? void 0 : instance.$cookies) == null ? void 0 : _a2.set(props.storageKey, JSON.stringify(columnState), -1);
6203
+ (_a2 = instance == null ? void 0 : instance.$cookies) == null ? void 0 : _a2.remove(props.storageKey);
6204
+ (_b = instance == null ? void 0 : instance.$cookies) == null ? void 0 : _b.set(props.storageKey, JSON.stringify(columnState), -1, "xxxx/xxxx/xxxx");
6203
6205
  return obj;
6204
6206
  };
6205
6207
  const drag = vueDemi.ref(false);
@@ -7087,7 +7089,7 @@ __sfc_main.setup = (__props, __ctx) => {
7087
7089
  immediate: true
7088
7090
  });
7089
7091
  const syncLocalShowColumnToCookies = () => {
7090
- var _a2;
7092
+ var _a2, _b2;
7091
7093
  if (props.columnEdit) {
7092
7094
  const columnState = {};
7093
7095
  props.formOptions.map((i, index2) => {
@@ -7098,7 +7100,8 @@ __sfc_main.setup = (__props, __ctx) => {
7098
7100
  index: index2
7099
7101
  };
7100
7102
  });
7101
- (_a2 = instance == null ? void 0 : instance.$cookies) == null ? void 0 : _a2.set(props.storageKey, JSON.stringify(columnState), -1);
7103
+ (_a2 = instance == null ? void 0 : instance.$cookies) == null ? void 0 : _a2.remove(props.storageKey);
7104
+ (_b2 = instance == null ? void 0 : instance.$cookies) == null ? void 0 : _b2.set(props.storageKey, JSON.stringify(columnState), -1, "xxxx/xxxx/xxxx");
7102
7105
  }
7103
7106
  };
7104
7107
  const syncCookiesToLocalShowColumn = () => {
@@ -954,7 +954,7 @@ __sfc_main$2.setup = (__props, __ctx) => {
954
954
  });
955
955
  const instance = (_a = getCurrentInstance()) == null ? void 0 : _a.proxy;
956
956
  const submit = () => {
957
- var _a2;
957
+ var _a2, _b;
958
958
  visible.value = false;
959
959
  const columnState = {};
960
960
  props.tableColumns.map((i, index2) => {
@@ -964,7 +964,8 @@ __sfc_main$2.setup = (__props, __ctx) => {
964
964
  index: index2
965
965
  };
966
966
  });
967
- (_a2 = instance == null ? void 0 : instance.$cookies) == null ? void 0 : _a2.set(props.storageKey, JSON.stringify(columnState), -1);
967
+ (_a2 = instance == null ? void 0 : instance.$cookies) == null ? void 0 : _a2.remove(props.storageKey);
968
+ (_b = instance == null ? void 0 : instance.$cookies) == null ? void 0 : _b.set(props.storageKey, JSON.stringify(columnState), -1, "xxxx/xxxx/xxxx");
968
969
  emit("save", tableData.value);
969
970
  };
970
971
  const addInitValue = () => {
@@ -6176,7 +6177,7 @@ __sfc_main$1.setup = (__props, __ctx) => {
6176
6177
  updateColumn();
6177
6178
  };
6178
6179
  const syncTableColumnsToCookies = () => {
6179
- var _a2;
6180
+ var _a2, _b;
6180
6181
  const newTableColumns = [...fixedColumn.value, ...unFixedColumn.value];
6181
6182
  if (newTableColumns.filter((item) => !item.initHidden).length === 0) {
6182
6183
  instance == null ? void 0 : instance.$openMessage.warning({
@@ -6197,7 +6198,8 @@ __sfc_main$1.setup = (__props, __ctx) => {
6197
6198
  };
6198
6199
  obj[i.prop] = !columnState[i.prop].initHidden;
6199
6200
  });
6200
- (_a2 = instance == null ? void 0 : instance.$cookies) == null ? void 0 : _a2.set(props.storageKey, JSON.stringify(columnState), -1);
6201
+ (_a2 = instance == null ? void 0 : instance.$cookies) == null ? void 0 : _a2.remove(props.storageKey);
6202
+ (_b = instance == null ? void 0 : instance.$cookies) == null ? void 0 : _b.set(props.storageKey, JSON.stringify(columnState), -1, "xxxx/xxxx/xxxx");
6201
6203
  return obj;
6202
6204
  };
6203
6205
  const drag = ref(false);
@@ -7085,7 +7087,7 @@ __sfc_main.setup = (__props, __ctx) => {
7085
7087
  immediate: true
7086
7088
  });
7087
7089
  const syncLocalShowColumnToCookies = () => {
7088
- var _a2;
7090
+ var _a2, _b2;
7089
7091
  if (props.columnEdit) {
7090
7092
  const columnState = {};
7091
7093
  props.formOptions.map((i, index2) => {
@@ -7096,7 +7098,8 @@ __sfc_main.setup = (__props, __ctx) => {
7096
7098
  index: index2
7097
7099
  };
7098
7100
  });
7099
- (_a2 = instance == null ? void 0 : instance.$cookies) == null ? void 0 : _a2.set(props.storageKey, JSON.stringify(columnState), -1);
7101
+ (_a2 = instance == null ? void 0 : instance.$cookies) == null ? void 0 : _a2.remove(props.storageKey);
7102
+ (_b2 = instance == null ? void 0 : instance.$cookies) == null ? void 0 : _b2.set(props.storageKey, JSON.stringify(columnState), -1, "xxxx/xxxx/xxxx");
7100
7103
  }
7101
7104
  };
7102
7105
  const syncCookiesToLocalShowColumn = () => {
@@ -77,10 +77,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
77
77
  type: import("vue-demi").PropType<Record<string, any>>;
78
78
  default: undefined;
79
79
  };
80
- inline: {
81
- type: import("vue-demi").PropType<boolean>;
82
- default: boolean;
83
- };
84
80
  upIcon: {
85
81
  type: import("vue-demi").PropType<string>;
86
82
  default: string;
@@ -159,12 +155,16 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
159
155
  type: import("vue-demi").PropType<"right" | "left" | "top">;
160
156
  default: string;
161
157
  };
158
+ inline: {
159
+ type: import("vue-demi").PropType<boolean>;
160
+ default: boolean;
161
+ };
162
162
  btnBoxLabel: {
163
163
  type: import("vue-demi").PropType<string>;
164
164
  default: string;
165
165
  };
166
166
  btnModel: {
167
- type: import("vue-demi").PropType<"inline" | "block">;
167
+ type: import("vue-demi").PropType<"block" | "inline">;
168
168
  default: string;
169
169
  };
170
170
  labelWidth: {
@@ -559,10 +559,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
559
559
  type: import("vue-demi").PropType<Record<string, any>>;
560
560
  default: undefined;
561
561
  };
562
- inline: {
563
- type: import("vue-demi").PropType<boolean>;
564
- default: boolean;
565
- };
566
562
  upIcon: {
567
563
  type: import("vue-demi").PropType<string>;
568
564
  default: string;
@@ -641,12 +637,16 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
641
637
  type: import("vue-demi").PropType<"right" | "left" | "top">;
642
638
  default: string;
643
639
  };
640
+ inline: {
641
+ type: import("vue-demi").PropType<boolean>;
642
+ default: boolean;
643
+ };
644
644
  btnBoxLabel: {
645
645
  type: import("vue-demi").PropType<string>;
646
646
  default: string;
647
647
  };
648
648
  btnModel: {
649
- type: import("vue-demi").PropType<"inline" | "block">;
649
+ type: import("vue-demi").PropType<"block" | "inline">;
650
650
  default: string;
651
651
  };
652
652
  labelWidth: {
@@ -907,7 +907,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
907
907
  disabled: boolean;
908
908
  itemWidth: number;
909
909
  rules: Record<string, any>;
910
- inline: boolean;
911
910
  upIcon: string;
912
911
  downIcon: string;
913
912
  columns: number;
@@ -926,6 +925,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue-demi").DefineCompone
926
925
  statusIcon: boolean;
927
926
  validateOnRuleChange: boolean;
928
927
  labelPosition: 'top' | 'right' | 'left';
928
+ inline: boolean;
929
929
  btnBoxLabel: string;
930
930
  btnModel: 'inline' | 'block';
931
931
  labelWidth: number;
@@ -160,8 +160,9 @@ const submit = () => {
160
160
  index
161
161
  }
162
162
  })
163
- // @ts-ignore
164
- instance?.$cookies?.set(props.storageKey, JSON.stringify(columnState), -1)
163
+
164
+ instance?.$cookies?.remove(props.storageKey)
165
+ instance?.$cookies?.set(props.storageKey, JSON.stringify(columnState), -1, 'xxxx/xxxx/xxxx')
165
166
  emit('save', tableData.value)
166
167
  }
167
168
 
@@ -362,8 +362,8 @@ const syncTableColumnsToCookies = () => {
362
362
  }
363
363
  obj[i.prop] = !columnState[i.prop].initHidden
364
364
  })
365
- // @ts-ignore
366
- instance?.$cookies?.set(props.storageKey, JSON.stringify(columnState), -1)
365
+ instance?.$cookies?.remove(props.storageKey)
366
+ instance?.$cookies?.set(props.storageKey, JSON.stringify(columnState), -1, 'xxxx/xxxx/xxxx')
367
367
  return obj
368
368
  }
369
369
 
@@ -641,8 +641,8 @@ const syncLocalShowColumnToCookies = () => {
641
641
  index
642
642
  }
643
643
  })
644
- // @ts-ignore
645
- instance?.$cookies?.set(props.storageKey, JSON.stringify(columnState), -1)
644
+ instance?.$cookies?.remove(props.storageKey)
645
+ instance?.$cookies?.set(props.storageKey, JSON.stringify(columnState), -1, 'xxxx/xxxx/xxxx')
646
646
  }
647
647
  }
648
648
  const syncCookiesToLocalShowColumn = () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@94ai/nf-search-form",
3
- "version": "3.2.35",
3
+ "version": "3.2.38",
4
4
  "description": "> TODO: description",
5
5
  "keywords": [],
6
6
  "author": "zoujiahe <zoujiahe@94ai.com>",
@@ -14,20 +14,20 @@
14
14
  "url": "http://94ai.gitlab.com/zoujiahe/common-ui.git"
15
15
  },
16
16
  "dependencies": {
17
- "@94ai/nf-action": "^3.2.35",
18
- "@94ai/nf-double-half-year": "^3.2.35",
19
- "@94ai/nf-double-quarter": "^3.2.35",
20
- "@94ai/nf-double-week": "^3.2.35",
21
- "@94ai/nf-double-year": "^3.2.35",
22
- "@94ai/nf-drawer": "^3.2.35",
23
- "@94ai/nf-form": "^3.2.35",
24
- "@94ai/nf-form-item": "^3.2.35",
25
- "@94ai/nf-half-year-picker": "^3.2.35",
26
- "@94ai/nf-message": "^3.2.35",
27
- "@94ai/nf-quarter-picker": "^3.2.35",
28
- "@94ai/nf-select-transfer": "^3.2.35",
29
- "@94ai/nf-theme-chalk": "^3.2.35",
30
- "@94ai/nf-virtual-select": "^3.2.35",
17
+ "@94ai/nf-action": "^3.2.38",
18
+ "@94ai/nf-double-half-year": "^3.2.38",
19
+ "@94ai/nf-double-quarter": "^3.2.38",
20
+ "@94ai/nf-double-week": "^3.2.38",
21
+ "@94ai/nf-double-year": "^3.2.38",
22
+ "@94ai/nf-drawer": "^3.2.38",
23
+ "@94ai/nf-form": "^3.2.38",
24
+ "@94ai/nf-form-item": "^3.2.38",
25
+ "@94ai/nf-half-year-picker": "^3.2.38",
26
+ "@94ai/nf-message": "^3.2.38",
27
+ "@94ai/nf-quarter-picker": "^3.2.38",
28
+ "@94ai/nf-select-transfer": "^3.2.38",
29
+ "@94ai/nf-theme-chalk": "^3.2.38",
30
+ "@94ai/nf-virtual-select": "^3.2.38",
31
31
  "vue-cookies": "^1.8.3",
32
32
  "vue-demi": "^0.14.5",
33
33
  "vuedraggable": "^2.24.3"
@@ -45,5 +45,5 @@
45
45
  "types": "lib/index.d.ts",
46
46
  "main": "lib/nf-search-form.cjs.js",
47
47
  "module": "lib/nf-search-form.esm-bundler.js",
48
- "gitHead": "98f8d6851ec74d978e54fa3f16676b24eba5e63f"
48
+ "gitHead": "6372974ccd59eb1fb5d5d9ca9bb7eaccdb1caab4"
49
49
  }