@94ai/nf-table 100.1.8 → 100.1.9

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.
@@ -5422,10 +5422,10 @@ __sfc_main$1.setup = (__props, __ctx) => {
5422
5422
  updateColumn();
5423
5423
  };
5424
5424
  const syncTableColumnsToCookies = () => {
5425
- var _a2, _b;
5425
+ var _a2, _b, _c;
5426
5426
  const newTableColumns = [...fixedColumn.value, ...unFixedColumn.value];
5427
5427
  if (newTableColumns.filter((item) => !item.type && item.prop !== props.operationPropKey && !item.initHidden).length === 0) {
5428
- instance == null ? void 0 : instance.$openMessage.warning({
5428
+ (_a2 = instance == null ? void 0 : instance.$openMessage) == null ? void 0 : _a2.warning({
5429
5429
  message: props.selectEmptyWarningTips,
5430
5430
  duration: 2e3
5431
5431
  });
@@ -5454,8 +5454,8 @@ __sfc_main$1.setup = (__props, __ctx) => {
5454
5454
  };
5455
5455
  obj[i.prop] = !columnState[i.prop].initHidden;
5456
5456
  });
5457
- (_a2 = instance == null ? void 0 : instance.$cookies) == null ? void 0 : _a2.remove(props.storageKey);
5458
- (_b = instance == null ? void 0 : instance.$cookies) == null ? void 0 : _b.set(props.storageKey, JSON.stringify(columnState), -1, "/xxxx/xxxx/xxxx");
5457
+ (_b = instance == null ? void 0 : instance.$cookies) == null ? void 0 : _b.remove(props.storageKey);
5458
+ (_c = instance == null ? void 0 : instance.$cookies) == null ? void 0 : _c.set(props.storageKey, JSON.stringify(columnState), -1, "/xxxx/xxxx/xxxx");
5459
5459
  return obj;
5460
5460
  };
5461
5461
  const drag = vueDemi.ref(false);
@@ -5420,10 +5420,10 @@ __sfc_main$1.setup = (__props, __ctx) => {
5420
5420
  updateColumn();
5421
5421
  };
5422
5422
  const syncTableColumnsToCookies = () => {
5423
- var _a2, _b;
5423
+ var _a2, _b, _c;
5424
5424
  const newTableColumns = [...fixedColumn.value, ...unFixedColumn.value];
5425
5425
  if (newTableColumns.filter((item) => !item.type && item.prop !== props.operationPropKey && !item.initHidden).length === 0) {
5426
- instance == null ? void 0 : instance.$openMessage.warning({
5426
+ (_a2 = instance == null ? void 0 : instance.$openMessage) == null ? void 0 : _a2.warning({
5427
5427
  message: props.selectEmptyWarningTips,
5428
5428
  duration: 2e3
5429
5429
  });
@@ -5452,8 +5452,8 @@ __sfc_main$1.setup = (__props, __ctx) => {
5452
5452
  };
5453
5453
  obj[i.prop] = !columnState[i.prop].initHidden;
5454
5454
  });
5455
- (_a2 = instance == null ? void 0 : instance.$cookies) == null ? void 0 : _a2.remove(props.storageKey);
5456
- (_b = instance == null ? void 0 : instance.$cookies) == null ? void 0 : _b.set(props.storageKey, JSON.stringify(columnState), -1, "/xxxx/xxxx/xxxx");
5455
+ (_b = instance == null ? void 0 : instance.$cookies) == null ? void 0 : _b.remove(props.storageKey);
5456
+ (_c = instance == null ? void 0 : instance.$cookies) == null ? void 0 : _c.set(props.storageKey, JSON.stringify(columnState), -1, "/xxxx/xxxx/xxxx");
5457
5457
  return obj;
5458
5458
  };
5459
5459
  const drag = ref(false);
@@ -354,7 +354,7 @@ const syncTableColumnsToCookies = () => {
354
354
  const newTableColumns = [...fixedColumn.value, ...unFixedColumn.value]
355
355
  if (newTableColumns.filter(item => !item.type && item.prop !== props.operationPropKey && !item.initHidden).length === 0) {
356
356
  // @ts-ignore
357
- instance?.$openMessage.warning({
357
+ instance?.$openMessage?.warning({
358
358
  message: props.selectEmptyWarningTips,
359
359
  duration: 2000,
360
360
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@94ai/nf-table",
3
- "version": "100.1.8",
3
+ "version": "100.1.9",
4
4
  "description": "> TODO: description",
5
5
  "keywords": [],
6
6
  "author": "zoujiahe <zoujiahe@94ai.com>",
@@ -14,11 +14,11 @@
14
14
  "url": "http://94ai.gitlab.com/zoujiahe/common-ui.git"
15
15
  },
16
16
  "dependencies": {
17
- "@94ai/common-utils": "^100.1.8",
18
- "@94ai/nf-drawer": "^100.1.8",
19
- "@94ai/nf-message": "^100.1.8",
20
- "@94ai/nf-search-form": "^100.1.8",
21
- "@94ai/nf-theme-chalk": "^100.1.8",
17
+ "@94ai/common-utils": "^100.1.9",
18
+ "@94ai/nf-drawer": "^100.1.9",
19
+ "@94ai/nf-message": "^100.1.9",
20
+ "@94ai/nf-search-form": "^100.1.9",
21
+ "@94ai/nf-theme-chalk": "^100.1.9",
22
22
  "vue-cookies": "^1.8.3",
23
23
  "vue-demi": "^0.14.5",
24
24
  "vuedraggable": "^2.24.3"
@@ -36,5 +36,5 @@
36
36
  "types": "lib/index.d.ts",
37
37
  "main": "lib/nf-table.cjs.js",
38
38
  "module": "lib/nf-table.esm-bundler.js",
39
- "gitHead": "9026240baa75f1b459275f767f772997d626686f"
39
+ "gitHead": "39459d15baea73427838a5d69ff485723b3dc9f2"
40
40
  }