@94ai/nf-search-form 3.2.37 → 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.
@@ -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, "xxxx/xxxx/xxxx", "xxxx.xxxx.xxxx.com");
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, "xxxx/xxxx/xxxx", "xxxx.xxxx.xxxx.com");
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, "xxxx/xxxx/xxxx", "xxxx.xxxx.xxxx.com");
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, "xxxx/xxxx/xxxx", "xxxx.xxxx.xxxx.com");
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, "xxxx/xxxx/xxxx", "xxxx.xxxx.xxxx.com");
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, "xxxx/xxxx/xxxx", "xxxx.xxxx.xxxx.com");
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 = () => {
@@ -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, 'xxxx/xxxx/xxxx', 'xxxx.xxxx.xxxx.com')
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, 'xxxx/xxxx/xxxx', 'xxxx.xxxx.xxxx.com')
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, 'xxxx/xxxx/xxxx', 'xxxx.xxxx.xxxx.com')
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.37",
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.37",
18
- "@94ai/nf-double-half-year": "^3.2.37",
19
- "@94ai/nf-double-quarter": "^3.2.37",
20
- "@94ai/nf-double-week": "^3.2.37",
21
- "@94ai/nf-double-year": "^3.2.37",
22
- "@94ai/nf-drawer": "^3.2.37",
23
- "@94ai/nf-form": "^3.2.37",
24
- "@94ai/nf-form-item": "^3.2.37",
25
- "@94ai/nf-half-year-picker": "^3.2.37",
26
- "@94ai/nf-message": "^3.2.37",
27
- "@94ai/nf-quarter-picker": "^3.2.37",
28
- "@94ai/nf-select-transfer": "^3.2.37",
29
- "@94ai/nf-theme-chalk": "^3.2.37",
30
- "@94ai/nf-virtual-select": "^3.2.37",
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"