@94ai/nf-table 3.2.37 → 3.2.39

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.
@@ -185,7 +185,7 @@ __sfc_main$2.setup = (__props, __ctx) => {
185
185
  return fields2;
186
186
  });
187
187
  const submit = () => {
188
- var _a2;
188
+ var _a2, _b;
189
189
  visible.value = false;
190
190
  const columnState = {};
191
191
  props.tableColumns.map((i, index2) => {
@@ -197,7 +197,8 @@ __sfc_main$2.setup = (__props, __ctx) => {
197
197
  index: index2
198
198
  };
199
199
  });
200
- (_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");
200
+ (_a2 = instance == null ? void 0 : instance.$cookies) == null ? void 0 : _a2.remove(props.storageKey);
201
+ (_b = instance == null ? void 0 : instance.$cookies) == null ? void 0 : _b.set(props.storageKey, JSON.stringify(columnState), -1, "/xxxx/xxxx/xxxx");
201
202
  emit("save", tableData.value);
202
203
  };
203
204
  const addInitValue = () => {
@@ -5434,7 +5435,7 @@ __sfc_main$1.setup = (__props, __ctx) => {
5434
5435
  updateColumn();
5435
5436
  };
5436
5437
  const syncTableColumnsToCookies = () => {
5437
- var _a2;
5438
+ var _a2, _b;
5438
5439
  const newTableColumns = [...fixedColumn.value, ...unFixedColumn.value];
5439
5440
  if (newTableColumns.filter((item) => !item.type && item.prop !== props.operationPropKey && !item.initHidden).length === 0) {
5440
5441
  instance == null ? void 0 : instance.$openMessage.warning({
@@ -5466,7 +5467,8 @@ __sfc_main$1.setup = (__props, __ctx) => {
5466
5467
  };
5467
5468
  obj[i.prop] = !columnState[i.prop].initHidden;
5468
5469
  });
5469
- (_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");
5470
+ (_a2 = instance == null ? void 0 : instance.$cookies) == null ? void 0 : _a2.remove(props.storageKey);
5471
+ (_b = instance == null ? void 0 : instance.$cookies) == null ? void 0 : _b.set(props.storageKey, JSON.stringify(columnState), -1, "/xxxx/xxxx/xxxx");
5470
5472
  return obj;
5471
5473
  };
5472
5474
  const drag = vueDemi.ref(false);
@@ -6246,20 +6248,21 @@ __sfc_main.setup = (__props, __ctx) => {
6246
6248
  immediate: true
6247
6249
  });
6248
6250
  const syncLocalShowColumnToCookies = () => {
6249
- var _a2;
6251
+ var _a2, _b2;
6250
6252
  if (props.columnEdit) {
6251
6253
  const columnState = {};
6252
6254
  props.columns.map((i, index2) => {
6253
- var _a3, _b2;
6255
+ var _a3, _b3;
6254
6256
  const prop = i.prop || ((_a3 = i.attr) == null ? void 0 : _a3.prop);
6255
6257
  columnState[prop] = {
6256
6258
  initHidden: i.initHidden || false,
6257
- fixed: ((_b2 = i.attr) == null ? void 0 : _b2.fixed) || false,
6259
+ fixed: ((_b3 = i.attr) == null ? void 0 : _b3.fixed) || false,
6258
6260
  prop,
6259
6261
  index: index2
6260
6262
  };
6261
6263
  });
6262
- (_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");
6264
+ (_a2 = instance == null ? void 0 : instance.$cookies) == null ? void 0 : _a2.remove(props.storageKey);
6265
+ (_b2 = instance == null ? void 0 : instance.$cookies) == null ? void 0 : _b2.set(props.storageKey, JSON.stringify(columnState), -1, "/xxxx/xxxx/xxxx");
6263
6266
  }
6264
6267
  };
6265
6268
  const syncShowItemToInitHidden = () => {
@@ -183,7 +183,7 @@ __sfc_main$2.setup = (__props, __ctx) => {
183
183
  return fields2;
184
184
  });
185
185
  const submit = () => {
186
- var _a2;
186
+ var _a2, _b;
187
187
  visible.value = false;
188
188
  const columnState = {};
189
189
  props.tableColumns.map((i, index2) => {
@@ -195,7 +195,8 @@ __sfc_main$2.setup = (__props, __ctx) => {
195
195
  index: index2
196
196
  };
197
197
  });
198
- (_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");
198
+ (_a2 = instance == null ? void 0 : instance.$cookies) == null ? void 0 : _a2.remove(props.storageKey);
199
+ (_b = instance == null ? void 0 : instance.$cookies) == null ? void 0 : _b.set(props.storageKey, JSON.stringify(columnState), -1, "/xxxx/xxxx/xxxx");
199
200
  emit("save", tableData.value);
200
201
  };
201
202
  const addInitValue = () => {
@@ -5432,7 +5433,7 @@ __sfc_main$1.setup = (__props, __ctx) => {
5432
5433
  updateColumn();
5433
5434
  };
5434
5435
  const syncTableColumnsToCookies = () => {
5435
- var _a2;
5436
+ var _a2, _b;
5436
5437
  const newTableColumns = [...fixedColumn.value, ...unFixedColumn.value];
5437
5438
  if (newTableColumns.filter((item) => !item.type && item.prop !== props.operationPropKey && !item.initHidden).length === 0) {
5438
5439
  instance == null ? void 0 : instance.$openMessage.warning({
@@ -5464,7 +5465,8 @@ __sfc_main$1.setup = (__props, __ctx) => {
5464
5465
  };
5465
5466
  obj[i.prop] = !columnState[i.prop].initHidden;
5466
5467
  });
5467
- (_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");
5468
+ (_a2 = instance == null ? void 0 : instance.$cookies) == null ? void 0 : _a2.remove(props.storageKey);
5469
+ (_b = instance == null ? void 0 : instance.$cookies) == null ? void 0 : _b.set(props.storageKey, JSON.stringify(columnState), -1, "/xxxx/xxxx/xxxx");
5468
5470
  return obj;
5469
5471
  };
5470
5472
  const drag = ref(false);
@@ -6244,20 +6246,21 @@ __sfc_main.setup = (__props, __ctx) => {
6244
6246
  immediate: true
6245
6247
  });
6246
6248
  const syncLocalShowColumnToCookies = () => {
6247
- var _a2;
6249
+ var _a2, _b2;
6248
6250
  if (props.columnEdit) {
6249
6251
  const columnState = {};
6250
6252
  props.columns.map((i, index2) => {
6251
- var _a3, _b2;
6253
+ var _a3, _b3;
6252
6254
  const prop = i.prop || ((_a3 = i.attr) == null ? void 0 : _a3.prop);
6253
6255
  columnState[prop] = {
6254
6256
  initHidden: i.initHidden || false,
6255
- fixed: ((_b2 = i.attr) == null ? void 0 : _b2.fixed) || false,
6257
+ fixed: ((_b3 = i.attr) == null ? void 0 : _b3.fixed) || false,
6256
6258
  prop,
6257
6259
  index: index2
6258
6260
  };
6259
6261
  });
6260
- (_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");
6262
+ (_a2 = instance == null ? void 0 : instance.$cookies) == null ? void 0 : _a2.remove(props.storageKey);
6263
+ (_b2 = instance == null ? void 0 : instance.$cookies) == null ? void 0 : _b2.set(props.storageKey, JSON.stringify(columnState), -1, "/xxxx/xxxx/xxxx");
6261
6264
  }
6262
6265
  };
6263
6266
  const syncShowItemToInitHidden = () => {
@@ -154,8 +154,8 @@ const submit = () =>{
154
154
  index
155
155
  }
156
156
  })
157
- // @ts-ignore
158
- instance?.$cookies?.set(props.storageKey, JSON.stringify(columnState), -1, 'xxxx/xxxx/xxxx', 'xxxx.xxxx.xxxx.com')
157
+ instance?.$cookies?.remove(props.storageKey)
158
+ instance?.$cookies?.set(props.storageKey, JSON.stringify(columnState), -1, '/xxxx/xxxx/xxxx')
159
159
  emit('save', tableData.value)
160
160
  }
161
161
 
@@ -380,8 +380,8 @@ const syncTableColumnsToCookies = () => {
380
380
  }
381
381
  obj[i.prop] = !columnState[i.prop].initHidden
382
382
  })
383
- // @ts-ignore
384
- instance?.$cookies?.set(props.storageKey, JSON.stringify(columnState), -1, 'xxxx/xxxx/xxxx', 'xxxx.xxxx.xxxx.com')
383
+ instance?.$cookies?.remove(props.storageKey)
384
+ instance?.$cookies?.set(props.storageKey, JSON.stringify(columnState), -1, '/xxxx/xxxx/xxxx')
385
385
  return obj
386
386
  }
387
387
 
@@ -837,8 +837,8 @@ const syncLocalShowColumnToCookies = () => {
837
837
  index
838
838
  }
839
839
  })
840
- // @ts-ignore
841
- instance?.$cookies?.set(props.storageKey, JSON.stringify(columnState), -1, 'xxxx/xxxx/xxxx', 'xxxx.xxxx.xxxx.com')
840
+ instance?.$cookies?.remove(props.storageKey)
841
+ instance?.$cookies?.set(props.storageKey, JSON.stringify(columnState), -1, '/xxxx/xxxx/xxxx')
842
842
  }
843
843
  }
844
844
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@94ai/nf-table",
3
- "version": "3.2.37",
3
+ "version": "3.2.39",
4
4
  "description": "> TODO: description",
5
5
  "keywords": [],
6
6
  "author": "zoujiahe <zoujiahe@94ai.com>",
@@ -14,10 +14,10 @@
14
14
  "url": "http://94ai.gitlab.com/zoujiahe/common-ui.git"
15
15
  },
16
16
  "dependencies": {
17
- "@94ai/nf-drawer": "^3.2.37",
18
- "@94ai/nf-message": "^3.2.37",
19
- "@94ai/nf-search-form": "^3.2.37",
20
- "@94ai/nf-theme-chalk": "^3.2.37",
17
+ "@94ai/nf-drawer": "^3.2.39",
18
+ "@94ai/nf-message": "^3.2.39",
19
+ "@94ai/nf-search-form": "^3.2.39",
20
+ "@94ai/nf-theme-chalk": "^3.2.39",
21
21
  "vue-cookies": "^1.8.3",
22
22
  "vue-demi": "^0.14.5",
23
23
  "vuedraggable": "^2.24.3"
@@ -35,5 +35,5 @@
35
35
  "types": "lib/index.d.ts",
36
36
  "main": "lib/nf-table.cjs.js",
37
37
  "module": "lib/nf-table.esm-bundler.js",
38
- "gitHead": "6372974ccd59eb1fb5d5d9ca9bb7eaccdb1caab4"
38
+ "gitHead": "2d8de0eed9e909548efa5db7b820f299fa123942"
39
39
  }