@94ai/nf-table 100.1.9 → 100.1.17

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.
@@ -1,13 +1,58 @@
1
- import { defineComponent, getCurrentInstance, ref, computed, onMounted, onBeforeMount, watch, nextTick } from "vue-demi";
2
- import { deepClone } from "@94ai/common-utils";
1
+ import { defineComponent, getCurrentInstance, ref, computed, onMounted, onBeforeMount, watch, nextTick, set as set$1 } from "vue-demi";
3
2
  import { normalizeComponent } from "@94ai/vue2-runtime-helpers";
3
+ import { deepClone } from "@94ai/common-utils";
4
4
  import { Loading } from "element-ui";
5
- import VueCookies from "vue-cookies";
6
5
  import NfMessage from "@94ai/nf-message";
6
+ function promisifyRequest(request) {
7
+ return new Promise((resolve, reject) => {
8
+ request.oncomplete = request.onsuccess = () => resolve(request.result);
9
+ request.onabort = request.onerror = () => reject(request.error);
10
+ });
11
+ }
12
+ function createStore(dbName, storeName) {
13
+ const request = indexedDB.open(dbName);
14
+ request.onupgradeneeded = () => request.result.createObjectStore(storeName);
15
+ const dbp = promisifyRequest(request);
16
+ return (txMode, callback) => dbp.then((db) => callback(db.transaction(storeName, txMode).objectStore(storeName)));
17
+ }
18
+ let defaultGetStoreFunc;
19
+ function defaultGetStore() {
20
+ if (!defaultGetStoreFunc) {
21
+ defaultGetStoreFunc = createStore("keyval-store", "keyval");
22
+ }
23
+ return defaultGetStoreFunc;
24
+ }
25
+ function get(key, customStore = defaultGetStore()) {
26
+ return customStore("readonly", (store) => promisifyRequest(store.get(key)));
27
+ }
28
+ function set(key, value, customStore = defaultGetStore()) {
29
+ return customStore("readwrite", (store) => {
30
+ store.put(value, key);
31
+ return promisifyRequest(store.transaction);
32
+ });
33
+ }
34
+ function del(key, customStore = defaultGetStore()) {
35
+ return customStore("readwrite", (store) => {
36
+ store.delete(key);
37
+ return promisifyRequest(store.transaction);
38
+ });
39
+ }
7
40
  const __sfc_main$2 = defineComponent({
8
41
  name: "NfColumnCheckDialog"
9
42
  });
10
43
  __sfc_main$2.props = {
44
+ columnEdit: {
45
+ key: "columnEdit",
46
+ required: false,
47
+ type: Boolean,
48
+ default: false
49
+ },
50
+ operationPropKey: {
51
+ key: "operationPropKey",
52
+ required: false,
53
+ type: String,
54
+ default: "operation"
55
+ },
11
56
  storageKey: {
12
57
  key: "storageKey",
13
58
  required: false,
@@ -50,12 +95,6 @@ __sfc_main$2.props = {
50
95
  type: Array,
51
96
  default: () => []
52
97
  },
53
- showColumn: {
54
- key: "showColumn",
55
- required: false,
56
- type: Array,
57
- default: void 0
58
- },
59
98
  modalAppendToBody: {
60
99
  key: "modalAppendToBody",
61
100
  required: false,
@@ -139,8 +178,9 @@ __sfc_main$2.setup = (__props, __ctx) => {
139
178
  var _a;
140
179
  const props = __props;
141
180
  const emit = __ctx.emit;
142
- const instance = (_a = getCurrentInstance()) == null ? void 0 : _a.proxy;
181
+ (_a = getCurrentInstance()) == null ? void 0 : _a.proxy;
143
182
  const tableData = ref({});
183
+ const unChangedColumn = ref([]);
144
184
  const visible = computed({
145
185
  get() {
146
186
  return props.show;
@@ -151,7 +191,7 @@ __sfc_main$2.setup = (__props, __ctx) => {
151
191
  });
152
192
  const fields = computed(() => {
153
193
  const obj = {};
154
- deepClone(props.tableColumns).sort((a, b) => a.__index - b.__index < 0 ? -1 : a.__index - b.__index > 0 ? 1 : 0).map((item) => {
194
+ props.tableColumns.filter((item) => !item.destory).map((item) => {
155
195
  if (!item.type) {
156
196
  const key = item.category || "基础字段";
157
197
  if (!obj[key]) {
@@ -169,36 +209,45 @@ __sfc_main$2.setup = (__props, __ctx) => {
169
209
  }
170
210
  return fields2;
171
211
  });
172
- const submit = () => {
173
- var _a2, _b;
212
+ const submit = async () => {
174
213
  visible.value = false;
175
214
  const columnState = {};
176
215
  props.tableColumns.map((i, index2) => {
177
- var _a3;
216
+ var _a2;
178
217
  columnState[i.prop] = {
179
218
  initHidden: !tableData.value[i.prop] || false,
180
- fixed: ((_a3 = i.attr) == null ? void 0 : _a3.fixed) || false,
219
+ fixed: ((_a2 = i.attr) == null ? void 0 : _a2.fixed) || false,
181
220
  prop: i.prop,
182
221
  index: index2
183
222
  };
184
223
  });
185
- (_a2 = instance == null ? void 0 : instance.$cookies) == null ? void 0 : _a2.remove(props.storageKey);
186
- (_b = instance == null ? void 0 : instance.$cookies) == null ? void 0 : _b.set(props.storageKey, JSON.stringify(columnState), -1, "/xxxx/xxxx/xxxx");
187
224
  emit("save", tableData.value);
225
+ if (props.columnEdit) {
226
+ await set(props.storageKey, columnState);
227
+ }
188
228
  };
189
229
  const addInitValue = () => {
190
230
  const obj = {};
191
231
  props.tableColumns.forEach((v) => {
192
- var _a2;
193
- obj[v.prop] = ((_a2 = props.showColumn) == null ? void 0 : _a2.length) ? (props.showColumn || []).includes(v.prop) : true;
232
+ obj[v.prop] = !v.initHidden;
194
233
  });
195
234
  tableData.value = obj;
235
+ if (props.tableColumns.findIndex((item) => !!item.type) > -1) {
236
+ unChangedColumn.value.push("selection");
237
+ }
238
+ if (props.tableColumns.findIndex((item) => {
239
+ var _a2;
240
+ return (item.prop || ((_a2 = item.attr) == null ? void 0 : _a2.prop)) === props.operationPropKey;
241
+ }) > -1) {
242
+ unChangedColumn.value.push(props.operationPropKey);
243
+ }
196
244
  };
197
245
  onMounted(() => {
198
246
  addInitValue();
199
247
  });
200
248
  return {
201
249
  tableData,
250
+ unChangedColumn,
202
251
  visible,
203
252
  fields,
204
253
  submit
@@ -258,7 +307,8 @@ var _sfc_render$3 = function render() {
258
307
  key: obj.prop,
259
308
  staticClass: "nf-check-box",
260
309
  attrs: {
261
- "label": obj.prop
310
+ "label": obj.prop,
311
+ "disabled": _vm.unChangedColumn.includes(obj.prop)
262
312
  },
263
313
  model: {
264
314
  value: _vm.tableData[obj.prop],
@@ -5256,6 +5306,12 @@ __sfc_main$1.props = {
5256
5306
  type: String,
5257
5307
  default: "operation"
5258
5308
  },
5309
+ columnEdit: {
5310
+ key: "columnEdit",
5311
+ required: false,
5312
+ type: Boolean,
5313
+ default: false
5314
+ },
5259
5315
  searchPlaceholder: {
5260
5316
  key: "searchPlaceholder",
5261
5317
  required: false,
@@ -5419,8 +5475,8 @@ __sfc_main$1.setup = (__props, __ctx) => {
5419
5475
  }
5420
5476
  updateColumn();
5421
5477
  };
5422
- const syncTableColumnsToCookies = () => {
5423
- var _a2, _b, _c;
5478
+ const syncTableColumnsToCookies = async () => {
5479
+ var _a2;
5424
5480
  const newTableColumns = [...fixedColumn.value, ...unFixedColumn.value];
5425
5481
  if (newTableColumns.filter((item) => !item.type && item.prop !== props.operationPropKey && !item.initHidden).length === 0) {
5426
5482
  (_a2 = instance == null ? void 0 : instance.$openMessage) == null ? void 0 : _a2.warning({
@@ -5452,8 +5508,9 @@ __sfc_main$1.setup = (__props, __ctx) => {
5452
5508
  };
5453
5509
  obj[i.prop] = !columnState[i.prop].initHidden;
5454
5510
  });
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");
5511
+ if (props.columnEdit) {
5512
+ await set(props.storageKey, columnState);
5513
+ }
5457
5514
  return obj;
5458
5515
  };
5459
5516
  const drag = ref(false);
@@ -6136,7 +6193,7 @@ __sfc_main.props = {
6136
6193
  }
6137
6194
  };
6138
6195
  __sfc_main.setup = (__props, __ctx) => {
6139
- var _a, _b, _c, _d;
6196
+ var _a;
6140
6197
  const props = __props;
6141
6198
  const emit = __ctx.emit;
6142
6199
  const instance = (_a = getCurrentInstance()) == null ? void 0 : _a.proxy;
@@ -6174,7 +6231,7 @@ __sfc_main.setup = (__props, __ctx) => {
6174
6231
  watch(() => {
6175
6232
  return props.loading;
6176
6233
  }, async () => {
6177
- var _a2, _b2;
6234
+ var _a2, _b;
6178
6235
  if (props.loading) {
6179
6236
  await nextTick();
6180
6237
  const {
@@ -6196,7 +6253,7 @@ __sfc_main.setup = (__props, __ctx) => {
6196
6253
  customClass
6197
6254
  });
6198
6255
  } else {
6199
- (_b2 = loadingInstance.value) == null ? void 0 : _b2.close();
6256
+ (_b = loadingInstance.value) == null ? void 0 : _b.close();
6200
6257
  }
6201
6258
  }, {
6202
6259
  immediate: true
@@ -6204,9 +6261,9 @@ __sfc_main.setup = (__props, __ctx) => {
6204
6261
  const initLocalShow = () => {
6205
6262
  props.columns._skip = true;
6206
6263
  const result = props.columns.filter((item) => {
6207
- var _a2, _b2;
6264
+ var _a2, _b;
6208
6265
  const prop = item.prop || ((_a2 = item.attr) == null ? void 0 : _a2.prop);
6209
- if ((_b2 = props.showColumn) == null ? void 0 : _b2.includes(prop)) {
6266
+ if ((_b = props.showColumn) == null ? void 0 : _b.includes(prop)) {
6210
6267
  item.initHidden = false;
6211
6268
  }
6212
6269
  return !item.initHidden;
@@ -6214,7 +6271,9 @@ __sfc_main.setup = (__props, __ctx) => {
6214
6271
  var _a2;
6215
6272
  return item.prop || ((_a2 = item.attr) == null ? void 0 : _a2.prop);
6216
6273
  });
6217
- props.columns._skip = false;
6274
+ nextTick(() => {
6275
+ props.columns._skip = false;
6276
+ });
6218
6277
  if (result.length) {
6219
6278
  return result;
6220
6279
  }
@@ -6232,73 +6291,84 @@ __sfc_main.setup = (__props, __ctx) => {
6232
6291
  }, {
6233
6292
  immediate: true
6234
6293
  });
6235
- const syncLocalShowColumnToCookies = () => {
6236
- var _a2, _b2;
6294
+ const syncLocalShowColumnToCookies = async () => {
6237
6295
  if (props.columnEdit) {
6238
6296
  const columnState = {};
6239
6297
  props.columns.map((i, index2) => {
6240
- var _a3, _b3;
6241
- const prop = i.prop || ((_a3 = i.attr) == null ? void 0 : _a3.prop);
6298
+ var _a2, _b;
6299
+ const prop = i.prop || ((_a2 = i.attr) == null ? void 0 : _a2.prop);
6242
6300
  columnState[prop] = {
6243
6301
  initHidden: i.initHidden || false,
6244
- fixed: ((_b3 = i.attr) == null ? void 0 : _b3.fixed) || false,
6302
+ fixed: ((_b = i.attr) == null ? void 0 : _b.fixed) || false,
6245
6303
  prop,
6246
6304
  index: index2
6247
6305
  };
6248
6306
  });
6249
- (_a2 = instance == null ? void 0 : instance.$cookies) == null ? void 0 : _a2.remove(props.storageKey);
6250
- (_b2 = instance == null ? void 0 : instance.$cookies) == null ? void 0 : _b2.set(props.storageKey, JSON.stringify(columnState), -1, "/xxxx/xxxx/xxxx");
6307
+ await set(props.storageKey, columnState);
6251
6308
  }
6252
6309
  };
6253
6310
  const syncShowItemToInitHidden = () => {
6254
6311
  props.columns._skip = true;
6255
6312
  props.columns.forEach((item) => {
6256
- var _a2, _b2;
6313
+ var _a2, _b;
6257
6314
  const prop = item.prop || ((_a2 = item.attr) == null ? void 0 : _a2.prop);
6258
- if ((_b2 = localShowColumn.value) == null ? void 0 : _b2.includes(prop)) {
6315
+ if ((_b = localShowColumn.value) == null ? void 0 : _b.includes(prop)) {
6259
6316
  item.initHidden = false;
6260
6317
  } else {
6261
6318
  item.initHidden = true;
6262
6319
  }
6263
6320
  });
6264
- props.columns._skip = false;
6321
+ nextTick(() => {
6322
+ props.columns._skip = false;
6323
+ });
6265
6324
  };
6266
- const syncCookiesToLocalShowColumn = () => {
6267
- var _a2;
6325
+ const syncCookiesToLocalShowColumn = async () => {
6268
6326
  if (props.columnEdit) {
6269
- let columnState = (_a2 = instance == null ? void 0 : instance.$cookies) == null ? void 0 : _a2.get(props.storageKey);
6270
- if (columnState) {
6271
- if (typeof columnState === "string") {
6272
- columnState = JSON.parse(columnState);
6273
- }
6274
- const showColumnItems = [];
6275
- for (const key in columnState) {
6276
- if (!columnState[key].initHidden) {
6277
- showColumnItems.push(columnState[key].prop);
6327
+ try {
6328
+ let columnState = await get(props.storageKey);
6329
+ if (columnState) {
6330
+ if (typeof columnState === "string") {
6331
+ columnState = JSON.parse(columnState);
6332
+ }
6333
+ const showColumnItems = [];
6334
+ for (const key in columnState) {
6335
+ if (!columnState[key].initHidden) {
6336
+ showColumnItems.push(columnState[key].prop);
6337
+ }
6278
6338
  }
6339
+ localShowColumn.value = showColumnItems;
6340
+ syncShowItemToInitHidden();
6279
6341
  }
6280
- localShowColumn.value = showColumnItems;
6281
- syncShowItemToInitHidden();
6342
+ } catch (e) {
6343
+ console.log(e);
6282
6344
  }
6283
6345
  }
6284
6346
  };
6285
- if (props.columnEdit) {
6286
- const cached = (_b = instance == null ? void 0 : instance.$cookies) == null ? void 0 : _b.get(props.storageKey);
6287
- const cachedPriority = props.priority === "cached";
6288
- if (cachedPriority ? cached : (_c = localShowColumn.value) == null ? void 0 : _c.length) {
6289
- cachedPriority ? syncCookiesToLocalShowColumn() : syncLocalShowColumnToCookies();
6290
- } else if (cachedPriority ? (_d = localShowColumn.value) == null ? void 0 : _d.length : cached) {
6291
- cachedPriority ? syncLocalShowColumnToCookies() : syncCookiesToLocalShowColumn();
6347
+ const initCachedData = async () => {
6348
+ var _a2, _b;
6349
+ if (props.columnEdit) {
6350
+ try {
6351
+ const cached = await get(props.storageKey);
6352
+ const cachedPriority = props.priority === "cached";
6353
+ if (cachedPriority ? cached : (_a2 = localShowColumn.value) == null ? void 0 : _a2.length) {
6354
+ cachedPriority ? await syncCookiesToLocalShowColumn() : await syncLocalShowColumnToCookies();
6355
+ } else if (cachedPriority ? (_b = localShowColumn.value) == null ? void 0 : _b.length : cached) {
6356
+ cachedPriority ? await syncLocalShowColumnToCookies() : await syncCookiesToLocalShowColumn();
6357
+ }
6358
+ } catch (e) {
6359
+ console.log(e);
6360
+ await del(props.storageKey);
6361
+ }
6292
6362
  }
6293
- }
6363
+ };
6364
+ initCachedData();
6294
6365
  const tableColumns = ref([]);
6295
6366
  const elTableRefKey = ref(Date.now());
6296
- const syncCookiesToTableColumn = (readCached = true) => {
6297
- var _a2;
6367
+ const syncCookiesToTableColumn = async (readCached = true) => {
6298
6368
  props.columns._skip = true;
6299
6369
  const columns = props.columns.map((item, index2) => {
6300
- var _a3;
6301
- ((_a3 = item.label) == null ? void 0 : _a3.length) || 0;
6370
+ var _a2;
6371
+ ((_a2 = item.label) == null ? void 0 : _a2.length) || 0;
6302
6372
  const attr = item.attr || {};
6303
6373
  if (!attr["min-width"] && item.label) {
6304
6374
  const fs = 14;
@@ -6317,31 +6387,40 @@ __sfc_main.setup = (__props, __ctx) => {
6317
6387
  delete item.attr.prop;
6318
6388
  delete item.attr.label;
6319
6389
  item._index = index2;
6390
+ set$1(item, "initHidden", item.initHidden);
6391
+ set$1(item, "destory", item.destory);
6320
6392
  item.__index = index2;
6321
6393
  return item;
6322
6394
  });
6323
6395
  if (readCached && props.columnEdit) {
6324
- let columnState = (_a2 = instance == null ? void 0 : instance.$cookies) == null ? void 0 : _a2.get(props.storageKey);
6325
- if (columnState) {
6326
- if (typeof columnState === "string") {
6327
- columnState = JSON.parse(columnState);
6328
- }
6329
- for (const key in columnState) {
6330
- const state = columnState[key];
6331
- columns.every((i) => {
6332
- if (i.prop === key) {
6333
- i.initHidden = state.initHidden;
6334
- i.attr ? i.attr["fixed"] = state.fixed : i.attr = {
6335
- fixed: state.fixed
6336
- };
6337
- i._index = state.index;
6338
- return false;
6339
- }
6340
- return true;
6341
- });
6396
+ try {
6397
+ let columnState = await get(props.storageKey);
6398
+ props.columns._skip = true;
6399
+ if (columnState) {
6400
+ if (typeof columnState === "string") {
6401
+ columnState = JSON.parse(columnState);
6402
+ }
6403
+ for (const key in columnState) {
6404
+ const state = columnState[key];
6405
+ columns.every((i) => {
6406
+ if (i.prop === key) {
6407
+ i.initHidden = state.initHidden;
6408
+ i.attr ? i.attr["fixed"] = state.fixed : i.attr = {
6409
+ fixed: state.fixed
6410
+ };
6411
+ i._index = state.index;
6412
+ return false;
6413
+ }
6414
+ return true;
6415
+ });
6416
+ }
6342
6417
  }
6418
+ } catch (e) {
6419
+ console.log(e);
6420
+ await del(props.storageKey);
6343
6421
  }
6344
6422
  }
6423
+ await nextTick();
6345
6424
  props.columns._skip = true;
6346
6425
  tableColumns.value = columns.sort((a, b) => a._index - b._index < 0 ? -1 : a._index - b._index > 0 ? 1 : 0);
6347
6426
  elTableRefKey.value = Date.now();
@@ -6350,11 +6429,12 @@ __sfc_main.setup = (__props, __ctx) => {
6350
6429
  onBeforeMount(() => {
6351
6430
  watch(() => {
6352
6431
  return props.columns;
6353
- }, () => {
6432
+ }, async () => {
6354
6433
  if (props.columns._skip) {
6355
6434
  return;
6356
6435
  }
6357
- syncCookiesToTableColumn(false);
6436
+ localShowColumn.value = initLocalShow();
6437
+ await syncCookiesToTableColumn(false);
6358
6438
  }, {
6359
6439
  deep: true
6360
6440
  });
@@ -6410,14 +6490,10 @@ __sfc_main.setup = (__props, __ctx) => {
6410
6490
  };
6411
6491
  });
6412
6492
  const isShow = (row) => {
6413
- var _a2;
6414
6493
  if (row.type) {
6415
6494
  return true;
6416
6495
  }
6417
- if (!((_a2 = localShowColumn.value) == null ? void 0 : _a2.length)) {
6418
- return !row.initHidden && !row.destory;
6419
- }
6420
- return localShowColumn.value.includes(row.prop) && !row.initHidden && !row.destory;
6496
+ return !row.initHidden && !row.destory;
6421
6497
  };
6422
6498
  const resetNfSearchFormModel = () => {
6423
6499
  var _a2;
@@ -6464,20 +6540,20 @@ __sfc_main.setup = (__props, __ctx) => {
6464
6540
  (_a2 = elTableRef.value) == null ? void 0 : _a2.clearFilter();
6465
6541
  };
6466
6542
  const doLayout = () => {
6467
- var _a2, _b2;
6468
- (_b2 = (_a2 = elTableRef.value) == null ? void 0 : _a2.doLayout) == null ? void 0 : _b2.call(_a2);
6543
+ var _a2, _b;
6544
+ (_b = (_a2 = elTableRef.value) == null ? void 0 : _a2.doLayout) == null ? void 0 : _b.call(_a2);
6469
6545
  };
6470
6546
  const sort2 = (prop, order) => {
6471
6547
  var _a2;
6472
6548
  (_a2 = elTableRef.value) == null ? void 0 : _a2.sort(prop, order);
6473
6549
  };
6474
6550
  const headerDragend = async (newWidth, oldWidth, column, event) => {
6475
- var _a2, _b2;
6551
+ var _a2, _b;
6476
6552
  await nextTick();
6477
6553
  if (newWidth < column.minWidth) {
6478
6554
  column.width = column.minWidth;
6479
6555
  }
6480
- await ((_b2 = (_a2 = props.tableEvents)["header-dragend"]) == null ? void 0 : _b2.call(_a2, newWidth, oldWidth, column, event));
6556
+ await ((_b = (_a2 = props.tableEvents)["header-dragend"]) == null ? void 0 : _b.call(_a2, newWidth, oldWidth, column, event));
6481
6557
  };
6482
6558
  const columnCheckConfirmFeedback = (value) => {
6483
6559
  if (!props.columnEdit) {
@@ -6491,18 +6567,18 @@ __sfc_main.setup = (__props, __ctx) => {
6491
6567
  syncShowItemToInitHidden();
6492
6568
  }
6493
6569
  };
6494
- const fieldsConfirm = (value) => {
6570
+ const fieldsConfirm = async (value) => {
6495
6571
  columnCheckConfirmFeedback(value);
6496
- syncCookiesToLocalShowColumn();
6497
- syncCookiesToTableColumn();
6572
+ await syncCookiesToLocalShowColumn();
6573
+ await syncCookiesToTableColumn();
6498
6574
  emit("fieldsChange", localShowColumn.value);
6499
6575
  };
6500
- const columnCheckConfirm = (cb, error) => {
6576
+ const columnCheckConfirm = async (cb, error) => {
6501
6577
  try {
6502
- const value = columnCheckDrawer.value.syncTableColumnsToCookies();
6578
+ const value = await columnCheckDrawer.value.syncTableColumnsToCookies();
6503
6579
  columnCheckConfirmFeedback(value);
6504
- syncCookiesToLocalShowColumn();
6505
- syncCookiesToTableColumn();
6580
+ await syncCookiesToLocalShowColumn();
6581
+ await syncCookiesToTableColumn();
6506
6582
  emit("fieldsChange", localShowColumn.value);
6507
6583
  cb();
6508
6584
  } catch (e) {
@@ -6511,7 +6587,7 @@ __sfc_main.setup = (__props, __ctx) => {
6511
6587
  }
6512
6588
  };
6513
6589
  onMounted(() => {
6514
- var _a2, _b2;
6590
+ var _a2, _b;
6515
6591
  if (props.calHeight && nfTableContent.value) {
6516
6592
  const tableContentH = (_a2 = nfTableContent.value) == null ? void 0 : _a2.offsetHeight;
6517
6593
  const actionH = nfTableActionContainerRef.value.offsetHeight;
@@ -6520,7 +6596,7 @@ __sfc_main.setup = (__props, __ctx) => {
6520
6596
  elTableHeight.value = h;
6521
6597
  }
6522
6598
  } else {
6523
- elTableHeight.value = (_b2 = props.tableAttrs) == null ? void 0 : _b2.height;
6599
+ elTableHeight.value = (_b = props.tableAttrs) == null ? void 0 : _b.height;
6524
6600
  }
6525
6601
  });
6526
6602
  return Object.assign({
@@ -6539,7 +6615,6 @@ __sfc_main.setup = (__props, __ctx) => {
6539
6615
  showData,
6540
6616
  hasOperationSlot,
6541
6617
  hasActionBarSlot,
6542
- localShowColumn,
6543
6618
  tableColumns,
6544
6619
  elTableRefKey,
6545
6620
  tableAttrer,
@@ -7287,7 +7362,7 @@ var _sfc_render = function render3() {
7287
7362
  attrs: {
7288
7363
  "show": _vm.nfColumCheckDialogVisible,
7289
7364
  "table-columns": _vm.columns,
7290
- "show-column": _vm.localShowColumn,
7365
+ "column-edit": _vm.columnEdit,
7291
7366
  "storage-key": _vm.storageKey,
7292
7367
  "title": _vm.columnCheckTitle,
7293
7368
  "width": _vm.columnCheckWidth,
@@ -7305,7 +7380,8 @@ var _sfc_render = function render3() {
7305
7380
  "show-close": _vm.columnCheckShowClose,
7306
7381
  "before-close": _vm.columnCheckBeforeClose,
7307
7382
  "center": _vm.columnCheckCenter,
7308
- "destroy-on-close": _vm.columnCheckDestroyOnClose
7383
+ "destroy-on-close": _vm.columnCheckDestroyOnClose,
7384
+ "operation-prop-key": _vm.operationPropKey
7309
7385
  },
7310
7386
  on: {
7311
7387
  "update:show": function($event) {
@@ -7348,6 +7424,7 @@ var _sfc_render = function render3() {
7348
7424
  "fixed-left-desc": _vm.columnCheckFixedLeftDesc,
7349
7425
  "clear-desc": _vm.columnCheckClearDesc,
7350
7426
  "no-fixed-desc": _vm.columnCheckNoFixedDesc,
7427
+ "column-edit": _vm.columnEdit,
7351
7428
  "get-checked-length-desc": _vm.columnCheckGetCheckedLengthDesc,
7352
7429
  "get-all-check-desc": _vm.columnCheckGetAllCheckDesc,
7353
7430
  "operation-prop-key": _vm.operationPropKey,
@@ -7361,9 +7438,6 @@ var _sfc_staticRenderFns = [];
7361
7438
  var __component__ = /* @__PURE__ */ normalizeComponent(__sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, null, null, null);
7362
7439
  const NfTable = __component__.exports;
7363
7440
  NfTable.install = (app) => {
7364
- if (!app.$cookies) {
7365
- app.use(VueCookies);
7366
- }
7367
7441
  if (!app.$openMessage) {
7368
7442
  app.use(NfMessage);
7369
7443
  }