@94ai/nf-table 8.3.23 → 10.0.0

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.
@@ -2415,7 +2415,7 @@ var autoScroll = throttle$1(function(evt, options, rootEl2, isFallback) {
2415
2415
  clearInterval(autoScrolls[layersOut].pid);
2416
2416
  if (vx != 0 || vy != 0) {
2417
2417
  scrollThisInstance = true;
2418
- autoScrolls[layersOut].pid = setInterval((function() {
2418
+ autoScrolls[layersOut].pid = setInterval(function() {
2419
2419
  if (isFallback && this.layer === 0) {
2420
2420
  Sortable.active._onTouchMove(touchEvt$1);
2421
2421
  }
@@ -2427,7 +2427,7 @@ var autoScroll = throttle$1(function(evt, options, rootEl2, isFallback) {
2427
2427
  }
2428
2428
  }
2429
2429
  scrollBy(autoScrolls[this.layer].el, scrollOffsetX, scrollOffsetY);
2430
- }).bind({
2430
+ }.bind({
2431
2431
  layer: layersOut
2432
2432
  }), 24);
2433
2433
  }
@@ -3132,9 +3132,9 @@ const require$$0 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
3132
3132
  });
3133
3133
  if (mode & 2 && typeof value != "string")
3134
3134
  for (var key in value)
3135
- __webpack_require__.d(ns, key, (function(key2) {
3135
+ __webpack_require__.d(ns, key, function(key2) {
3136
3136
  return value[key2];
3137
- }).bind(null, key));
3137
+ }.bind(null, key));
3138
3138
  return ns;
3139
3139
  };
3140
3140
  __webpack_require__.n = function(module3) {
@@ -5414,16 +5414,12 @@ __sfc_main$1.setup = (__props, __ctx) => {
5414
5414
  }
5415
5415
  }
5416
5416
  };
5417
- const insertColumn = (column, append = false) => {
5417
+ const insertColumn = (column) => {
5418
5418
  if (!unChangedColumn.value.includes(column.prop)) {
5419
5419
  const unFixedIndex = unFixedColumn.value.findIndex((item) => item.prop === column.prop);
5420
5420
  const fixedIndex = fixedColumn.value.findIndex((item) => item.prop === column.prop);
5421
5421
  if (unFixedIndex === -1 && fixedIndex === -1) {
5422
- if (append) {
5423
- (column.attr.fixed ? fixedColumn.value : unFixedColumn.value).push(column);
5424
- } else {
5425
- (column.attr.fixed ? fixedColumn.value : unFixedColumn.value).unshift(column);
5426
- }
5422
+ (column.attr.fixed ? fixedColumn.value : unFixedColumn.value).push(column);
5427
5423
  }
5428
5424
  }
5429
5425
  };
@@ -5475,13 +5471,17 @@ __sfc_main$1.setup = (__props, __ctx) => {
5475
5471
  if (item) {
5476
5472
  item.initHidden = false;
5477
5473
  const cloneItem = commonUtils.deepClone(item);
5478
- if (!cloneItem.attr) {
5479
- cloneItem.attr = {};
5480
- }
5481
5474
  newColumns.push(cloneItem);
5482
5475
  }
5483
5476
  });
5484
5477
  currentTable.value = newColumns;
5478
+ if (columnName.value) {
5479
+ searchValue = currentTable.value.filter((item) => {
5480
+ var _a2;
5481
+ return (_a2 = item.addLabel || item.label) == null ? void 0 : _a2.includes(columnName.value);
5482
+ });
5483
+ setFields(searchValue);
5484
+ }
5485
5485
  currentTable.value.map((item) => {
5486
5486
  if (!unChangedColumn.value.includes(item.prop)) {
5487
5487
  if (item.attr.fixed) {
@@ -5500,7 +5500,7 @@ __sfc_main$1.setup = (__props, __ctx) => {
5500
5500
  searchValue.map((item) => {
5501
5501
  if (!unChangedColumn.value.includes(item.prop)) {
5502
5502
  if (v) {
5503
- insertColumn(item, true);
5503
+ insertColumn(item);
5504
5504
  } else {
5505
5505
  pullAwayColumn(item);
5506
5506
  }
@@ -5512,7 +5512,7 @@ __sfc_main$1.setup = (__props, __ctx) => {
5512
5512
  currentTable.value.map((item) => {
5513
5513
  if (!unChangedColumn.value.includes(item.prop)) {
5514
5514
  if (v) {
5515
- insertColumn(item, true);
5515
+ insertColumn(item);
5516
5516
  } else {
5517
5517
  pullAwayColumn(item);
5518
5518
  }
@@ -5529,7 +5529,7 @@ __sfc_main$1.setup = (__props, __ctx) => {
5529
5529
  if (item.prop === prop) {
5530
5530
  item.initHidden = !v;
5531
5531
  v ? "" : item.attr.fixed = false;
5532
- v ? insertColumn(item, true) : pullAwayColumn(item);
5532
+ v ? insertColumn(item) : pullAwayColumn(item);
5533
5533
  }
5534
5534
  });
5535
5535
  updateCheckStatus();
@@ -9102,8 +9102,7 @@ __sfc_main.props = {
9102
9102
  selectEmptyWarningTips: {
9103
9103
  key: "selectEmptyWarningTips",
9104
9104
  required: false,
9105
- type: String,
9106
- default: "请选择至少一个选项"
9105
+ type: String
9107
9106
  },
9108
9107
  columnDisplayBtnClass: {
9109
9108
  key: "columnDisplayBtnClass",
@@ -9162,32 +9161,27 @@ __sfc_main.props = {
9162
9161
  columnDisplayBtnText: {
9163
9162
  key: "columnDisplayBtnText",
9164
9163
  required: false,
9165
- type: String,
9166
- default: "设置列表字段"
9164
+ type: String
9167
9165
  },
9168
9166
  columnCheckTitle: {
9169
9167
  key: "columnCheckTitle",
9170
9168
  required: false,
9171
- type: String,
9172
- default: "设置显示字段"
9169
+ type: String
9173
9170
  },
9174
9171
  columnCheckCancelButtonText: {
9175
9172
  key: "columnCheckCancelButtonText",
9176
9173
  required: false,
9177
- type: String,
9178
- default: "取消"
9174
+ type: String
9179
9175
  },
9180
9176
  columnCheckConfirmButtonText: {
9181
9177
  key: "columnCheckConfirmButtonText",
9182
9178
  required: false,
9183
- type: String,
9184
- default: "确定"
9179
+ type: String
9185
9180
  },
9186
9181
  columnCheckBasicFieldDesc: {
9187
9182
  key: "columnCheckBasicFieldDesc",
9188
9183
  required: false,
9189
- type: String,
9190
- default: "基础字段"
9184
+ type: String
9191
9185
  },
9192
9186
  columnCheckWidth: {
9193
9187
  key: "columnCheckWidth",
@@ -9276,38 +9270,32 @@ __sfc_main.props = {
9276
9270
  columnCheckSearchPlaceholder: {
9277
9271
  key: "columnCheckSearchPlaceholder",
9278
9272
  required: false,
9279
- type: String,
9280
- default: "搜索"
9273
+ type: String
9281
9274
  },
9282
9275
  columnCheckFixedLeftDesc: {
9283
9276
  key: "columnCheckFixedLeftDesc",
9284
9277
  required: false,
9285
- type: String,
9286
- default: "固定在左侧"
9278
+ type: String
9287
9279
  },
9288
9280
  columnCheckClearDesc: {
9289
9281
  key: "columnCheckClearDesc",
9290
9282
  required: false,
9291
- type: String,
9292
- default: "清除"
9283
+ type: String
9293
9284
  },
9294
9285
  columnCheckNoFixedDesc: {
9295
9286
  key: "columnCheckNoFixedDesc",
9296
9287
  required: false,
9297
- type: String,
9298
- default: "不固定"
9288
+ type: String
9299
9289
  },
9300
9290
  columnCheckGetCheckedLengthDesc: {
9301
9291
  key: "columnCheckGetCheckedLengthDesc",
9302
9292
  required: false,
9303
- type: null,
9304
- default: (length) => (length2) => "已选(" + length2 + ")"
9293
+ type: null
9305
9294
  },
9306
9295
  columnCheckGetAllCheckDesc: {
9307
9296
  key: "columnCheckGetAllCheckDesc",
9308
9297
  required: false,
9309
- type: null,
9310
- default: (length) => (length2) => "全选(" + length2 + ")"
9298
+ type: null
9311
9299
  },
9312
9300
  columnCheckTabs: {
9313
9301
  key: "columnCheckTabs",
@@ -9429,7 +9417,7 @@ __sfc_main.props = {
9429
9417
  }
9430
9418
  };
9431
9419
  __sfc_main.setup = (__props, __ctx) => {
9432
- var _a;
9420
+ var _a, _b, _c;
9433
9421
  const props = __props;
9434
9422
  const emit = __ctx.emit;
9435
9423
  const processedColumns = vueDemi.computed(() => {
@@ -9453,9 +9441,9 @@ __sfc_main.setup = (__props, __ctx) => {
9453
9441
  return {
9454
9442
  ...item.events || {},
9455
9443
  click: (...args) => {
9456
- var _a2, _b;
9457
- (_a2 = item.events) == null ? void 0 : _a2.click(args);
9458
- (_b = item.onClick) == null ? void 0 : _b.call(item, scope.row, scope);
9444
+ var _a2, _b2, _c2;
9445
+ (_b2 = (_a2 = item.events) == null ? void 0 : _a2.click) == null ? void 0 : _b2.call(_a2, args);
9446
+ (_c2 = item.onClick) == null ? void 0 : _c2.call(item, scope.row, scope);
9459
9447
  }
9460
9448
  };
9461
9449
  };
@@ -9474,8 +9462,30 @@ __sfc_main.setup = (__props, __ctx) => {
9474
9462
  const elTableHeight = vueDemi.ref();
9475
9463
  const nfColumCheckDialogVisible = vueDemi.ref(false);
9476
9464
  const preSearchFormData = vueDemi.ref({});
9477
- const cPageChangeSearchApi = vueDemi.ref(props.pageChangeSearchApi ?? props.setEasyConf);
9478
- const cInitSearchApi = vueDemi.ref(props.initSearchApi ?? props.setEasyConf);
9465
+ const cPageChangeSearchApi = vueDemi.ref((_b = props.pageChangeSearchApi) != null ? _b : props.setEasyConf);
9466
+ const cInitSearchApi = vueDemi.ref((_c = props.initSearchApi) != null ? _c : props.setEasyConf);
9467
+ const {
9468
+ t
9469
+ } = commonUtils.useLocale();
9470
+ const localeText = vueDemi.computed(() => ({
9471
+ emptyText: props.emptyText || t("nf.table.emptyText"),
9472
+ columnDisplayBtnText: props.columnDisplayBtnText || t("nf.table.columnDisplayBtnText"),
9473
+ columnCheckTitle: props.columnCheckTitle || t("nf.table.columnCheckTitle"),
9474
+ columnCheckCancelButtonText: props.columnCheckCancelButtonText || t("nf.table.cancel"),
9475
+ columnCheckConfirmButtonText: props.columnCheckConfirmButtonText || t("nf.table.confirm"),
9476
+ columnCheckSearchPlaceholder: props.columnCheckSearchPlaceholder || t("nf.table.searchPlaceholder"),
9477
+ columnCheckFixedLeftDesc: props.columnCheckFixedLeftDesc || t("nf.table.fixedLeft"),
9478
+ columnCheckClearDesc: props.columnCheckClearDesc || t("nf.table.clear"),
9479
+ columnCheckNoFixedDesc: props.columnCheckNoFixedDesc || t("nf.table.noFixed"),
9480
+ columnCheckBasicFieldDesc: props.columnCheckBasicFieldDesc || t("nf.table.basicField"),
9481
+ selectEmptyWarningTips: props.selectEmptyWarningTips || t("nf.table.selectEmptyWarning"),
9482
+ columnCheckGetCheckedLengthDesc: props.columnCheckGetCheckedLengthDesc || ((length) => t("nf.table.checkedLength", {
9483
+ length
9484
+ })),
9485
+ columnCheckGetAllCheckDesc: props.columnCheckGetAllCheckDesc || ((length) => t("nf.table.allCheck", {
9486
+ length
9487
+ }))
9488
+ }));
9479
9489
  const cStorageKey = vueDemi.computed(() => {
9480
9490
  const key = props.storageKey || `nf-table-columns-cached-key-${routeName.value}`;
9481
9491
  const userId = window.userId;
@@ -9484,52 +9494,7 @@ __sfc_main.setup = (__props, __ctx) => {
9484
9494
  }
9485
9495
  return key;
9486
9496
  });
9487
- const cStorageKeyViewIdentity = vueDemi.computed(() => {
9488
- return "nf-table-view-identity";
9489
- });
9490
9497
  const checkViewIdentityChange = async () => {
9491
- const userId = window.userId;
9492
- const viewField = window.viewField;
9493
- if (props.viewIdentity && userId && viewField) {
9494
- let viewIdentity = commonUtils.CachedManager.syncCachedGet(cStorageKeyViewIdentity.value);
9495
- if (!viewIdentity) {
9496
- viewIdentity = await commonUtils.CachedManager.asyncCachedGet(cStorageKeyViewIdentity.value);
9497
- }
9498
- if (!viewIdentity) {
9499
- await commonUtils.CachedManager.asyncCachedSet(cStorageKeyViewIdentity.value, viewField);
9500
- } else {
9501
- const newViewIdentity = viewField.find((item) => item.viewIdentity === props.viewIdentity);
9502
- const oldViewIdentity = viewIdentity.find((item) => item.viewIdentity === props.viewIdentity);
9503
- if (newViewIdentity && !oldViewIdentity || !newViewIdentity && oldViewIdentity) {
9504
- await clearColumnEditCached();
9505
- await clearDragCached();
9506
- } else if (newViewIdentity && oldViewIdentity) {
9507
- let change = false;
9508
- newViewIdentity.fieldList.every((item) => {
9509
- if (!oldViewIdentity.fieldList.includes(item)) {
9510
- change = true;
9511
- return;
9512
- }
9513
- return true;
9514
- });
9515
- if (!change) {
9516
- oldViewIdentity.fieldList.every((item) => {
9517
- if (!newViewIdentity.fieldList.includes(item)) {
9518
- change = true;
9519
- return;
9520
- }
9521
- return true;
9522
- });
9523
- }
9524
- if (change) {
9525
- await clearColumnEditCached();
9526
- await clearDragCached();
9527
- oldViewIdentity.fieldList = newViewIdentity.fieldList;
9528
- await commonUtils.CachedManager.asyncCachedSet(cStorageKeyViewIdentity.value, viewIdentity);
9529
- }
9530
- }
9531
- }
9532
- }
9533
9498
  };
9534
9499
  const cPageAttrs = vueDemi.reactive({
9535
9500
  // 页码,没有props时 & 允许分页时;默认 = 1
@@ -9573,7 +9538,7 @@ __sfc_main.setup = (__props, __ctx) => {
9573
9538
  vueDemi.watch(() => {
9574
9539
  return props.loading || tableLoading.value;
9575
9540
  }, async () => {
9576
- var _a2, _b;
9541
+ var _a2, _b2;
9577
9542
  if (props.loading || tableLoading.value) {
9578
9543
  await vueDemi.nextTick();
9579
9544
  const {
@@ -9595,7 +9560,7 @@ __sfc_main.setup = (__props, __ctx) => {
9595
9560
  customClass
9596
9561
  });
9597
9562
  } else {
9598
- (_b = loadingInstance.value) == null ? void 0 : _b.close();
9563
+ (_b2 = loadingInstance.value) == null ? void 0 : _b2.close();
9599
9564
  }
9600
9565
  }, {
9601
9566
  immediate: true
@@ -9605,9 +9570,9 @@ __sfc_main.setup = (__props, __ctx) => {
9605
9570
  props.columns._skip = true;
9606
9571
  }
9607
9572
  const result = processedColumns.value.filter((item) => {
9608
- var _a2, _b;
9573
+ var _a2, _b2;
9609
9574
  const prop = item.prop || ((_a2 = item.attr) == null ? void 0 : _a2.prop);
9610
- if ((_b = props.showColumn) == null ? void 0 : _b.includes(prop)) {
9575
+ if ((_b2 = props.showColumn) == null ? void 0 : _b2.includes(prop)) {
9611
9576
  item.initHidden = false;
9612
9577
  }
9613
9578
  return !item.initHidden;
@@ -9641,11 +9606,11 @@ __sfc_main.setup = (__props, __ctx) => {
9641
9606
  if (props.columnEdit) {
9642
9607
  const columnState = {};
9643
9608
  processedColumns.value.map((i, index2) => {
9644
- var _a2, _b;
9609
+ var _a2, _b2;
9645
9610
  const prop = i.prop || ((_a2 = i.attr) == null ? void 0 : _a2.prop);
9646
9611
  columnState[prop] = {
9647
9612
  initHidden: i.initHidden || false,
9648
- fixed: ((_b = i.attr) == null ? void 0 : _b.fixed) || false,
9613
+ fixed: ((_b2 = i.attr) == null ? void 0 : _b2.fixed) || false,
9649
9614
  prop,
9650
9615
  index: index2
9651
9616
  };
@@ -9656,9 +9621,9 @@ __sfc_main.setup = (__props, __ctx) => {
9656
9621
  const syncShowItemToInitHidden = () => {
9657
9622
  props.columns._skip = true;
9658
9623
  processedColumns.value.forEach((item) => {
9659
- var _a2, _b;
9624
+ var _a2, _b2;
9660
9625
  const prop = item.prop || ((_a2 = item.attr) == null ? void 0 : _a2.prop);
9661
- if ((_b = localShowColumn.value) == null ? void 0 : _b.includes(prop)) {
9626
+ if ((_b2 = localShowColumn.value) == null ? void 0 : _b2.includes(prop)) {
9662
9627
  item.initHidden = false;
9663
9628
  } else {
9664
9629
  item.initHidden = true;
@@ -9695,7 +9660,7 @@ __sfc_main.setup = (__props, __ctx) => {
9695
9660
  }
9696
9661
  };
9697
9662
  const initCachedData = async () => {
9698
- var _a2, _b;
9663
+ var _a2, _b2;
9699
9664
  if (props.columnEdit) {
9700
9665
  try {
9701
9666
  await checkViewIdentityChange();
@@ -9706,7 +9671,7 @@ __sfc_main.setup = (__props, __ctx) => {
9706
9671
  const cachedPriority = props.priority === "cached";
9707
9672
  if (cachedPriority ? cached : (_a2 = localShowColumn.value) == null ? void 0 : _a2.length) {
9708
9673
  cachedPriority ? await syncCookiesToLocalShowColumn() : await syncLocalShowColumnToCookies();
9709
- } else if (cachedPriority ? (_b = localShowColumn.value) == null ? void 0 : _b.length : cached) {
9674
+ } else if (cachedPriority ? (_b2 = localShowColumn.value) == null ? void 0 : _b2.length : cached) {
9710
9675
  cachedPriority ? await syncLocalShowColumnToCookies() : await syncCookiesToLocalShowColumn();
9711
9676
  }
9712
9677
  } catch (e) {
@@ -9718,6 +9683,7 @@ __sfc_main.setup = (__props, __ctx) => {
9718
9683
  }
9719
9684
  };
9720
9685
  const getMinWidth = (column) => {
9686
+ var _a2, _b2;
9721
9687
  const columnLabel = commonUtils.resolveValue(column.label);
9722
9688
  if ((columnLabel == null ? void 0 : columnLabel.indexOf("$$")) === 0) {
9723
9689
  const value = Number(columnLabel.replace("$$", ""));
@@ -9725,13 +9691,55 @@ __sfc_main.setup = (__props, __ctx) => {
9725
9691
  return value;
9726
9692
  }
9727
9693
  }
9728
- const fs = 14;
9729
- const char = columnLabel.match(/[\u2E80-\u9FFF]/g);
9730
- const charLen = char ? char.length : 0;
9731
- const num = columnLabel.match(/\d|\./g);
9732
- const numLen = num ? num.length : 0;
9733
- const otherLen = columnLabel.length - charLen - numLen;
9734
- return fs * (charLen * 1 + numLen * 0.7 + otherLen * 0.58) + 20 + (column.sortable ? 24 : 0);
9694
+ const label = columnLabel || "";
9695
+ const sortable = column.sortable || ((_a2 = column.attr) == null ? void 0 : _a2.sortable);
9696
+ const hasColumnCheckIcon = props.columnEdit && column.prop === props.operationPropKey && props.columnPosition === "embed";
9697
+ const labelWidth = (hasColumnCheckIcon ? measureText(` ${label} `, "600 14px") + 33 : measureText(sortable ? `${label} ` : label, "600 14px")) + CELL_PADDING + (sortable ? 24 : 0);
9698
+ const tags = [...getTagTexts(column), ...((_b2 = column.fit) == null ? void 0 : _b2.tags) || []];
9699
+ const tagWidth = Math.max(0, ...tags.map((tag) => measureText(` ${tag}`, "12px") + 26 + CELL_PADDING));
9700
+ return Math.ceil(Math.max(labelWidth, tagWidth, column.__contentWidth || 0));
9701
+ };
9702
+ const CELL_PADDING = 20;
9703
+ let measureContext = null;
9704
+ let fontFamily = "";
9705
+ const measureText = (text, font) => {
9706
+ measureContext = measureContext || document.createElement("canvas").getContext("2d");
9707
+ fontFamily = fontFamily || getComputedStyle(document.body).fontFamily;
9708
+ measureContext.font = `${font} ${fontFamily}`;
9709
+ return measureContext.measureText(String(text)).width;
9710
+ };
9711
+ const getTagTexts = (column) => {
9712
+ const tagMap = column.optionsTag || {};
9713
+ return Object.keys(tagMap).filter((key) => tagMap[key]).map((key) => {
9714
+ var _a2;
9715
+ return (_a2 = column.optionsEnum) == null ? void 0 : _a2[key];
9716
+ });
9717
+ };
9718
+ const applyColumnWidth = (item, dragProp) => {
9719
+ if (!item.label || item.type)
9720
+ return;
9721
+ const attr = item.attr;
9722
+ const raw = item.__rawWidth || (item.__rawWidth = {});
9723
+ const applied = item.__appliedWidth || {};
9724
+ if (attr.width !== applied.width)
9725
+ raw.width = attr.width;
9726
+ if (attr["min-width"] !== applied.minWidth)
9727
+ raw.minWidth = attr["min-width"];
9728
+ const need = getMinWidth(item);
9729
+ vueDemi.set(attr, "min-width", Math.max(parseFloat(raw.minWidth) || 0, need) + "px");
9730
+ if (raw.width) {
9731
+ vueDemi.set(attr, "width", Math.max(parseFloat(raw.width) || 0, need) + "px");
9732
+ }
9733
+ if (props.dragCached) {
9734
+ const columnWidth = commonUtils.CachedManager.syncCachedGet(`${cStorageKey.value}$drag-column-width`) || {};
9735
+ if (columnWidth[dragProp]) {
9736
+ vueDemi.set(attr, "width", columnWidth[dragProp]);
9737
+ }
9738
+ }
9739
+ item.__appliedWidth = {
9740
+ width: attr.width,
9741
+ minWidth: attr["min-width"]
9742
+ };
9735
9743
  };
9736
9744
  const tableColumns = vueDemi.ref([]);
9737
9745
  const elTableRefKey = vueDemi.ref(Date.now());
@@ -9740,16 +9748,7 @@ __sfc_main.setup = (__props, __ctx) => {
9740
9748
  const columns = processedColumns.value.map((item, index2) => {
9741
9749
  var _a2;
9742
9750
  const attr = item.attr || {};
9743
- if (!attr["min-width"] && item.label) {
9744
- attr["min-width"] = String(getMinWidth(item)) + "px";
9745
- }
9746
- if (props.dragCached) {
9747
- const prop = item.prop || ((_a2 = item.attr) == null ? void 0 : _a2.prop);
9748
- let columnWidth = commonUtils.CachedManager.syncCachedGet(`${cStorageKey.value}$drag-column-width`) || {};
9749
- if (columnWidth[prop]) {
9750
- attr.width = columnWidth[prop];
9751
- }
9752
- }
9751
+ const dragProp = item.prop || ((_a2 = item.attr) == null ? void 0 : _a2.prop);
9753
9752
  item.attr = {
9754
9753
  ...item.attr,
9755
9754
  ...attr
@@ -9768,6 +9767,11 @@ __sfc_main.setup = (__props, __ctx) => {
9768
9767
  item.optionsEnum[o.value] = o.label;
9769
9768
  item.optionsTag[o.value] = o.tagType;
9770
9769
  });
9770
+ props.columns._skip = true;
9771
+ applyColumnWidth(item, dragProp);
9772
+ vueDemi.nextTick(() => {
9773
+ props.columns._skip = false;
9774
+ });
9771
9775
  });
9772
9776
  } else if (item.options) {
9773
9777
  vueDemi.set(item, "optionsEnum", {});
@@ -9776,6 +9780,7 @@ __sfc_main.setup = (__props, __ctx) => {
9776
9780
  item.optionsTag[o.value] = o.tagType;
9777
9781
  });
9778
9782
  }
9783
+ applyColumnWidth(item, dragProp);
9779
9784
  return item;
9780
9785
  });
9781
9786
  if (readCached && props.columnEdit) {
@@ -9790,26 +9795,40 @@ __sfc_main.setup = (__props, __ctx) => {
9790
9795
  if (typeof columnState === "string") {
9791
9796
  columnState = JSON.parse(columnState);
9792
9797
  }
9798
+ let maxIndex = 0;
9793
9799
  for (const key in columnState) {
9794
9800
  const state = columnState[key];
9795
9801
  columns.every((i) => {
9796
9802
  if (i.prop === key) {
9797
9803
  i.initHidden = state.initHidden;
9798
- i.attr ? i.attr["fixed"] = state.fixed : i.attr = {
9799
- fixed: state.fixed
9800
- };
9804
+ i.attr["fixed"] = state.fixed;
9801
9805
  i._index = state.index;
9806
+ if (maxIndex < state.index) {
9807
+ maxIndex = state.index;
9808
+ }
9802
9809
  return false;
9803
9810
  }
9804
9811
  return true;
9805
9812
  });
9806
9813
  }
9814
+ const columnStateKeys = Object.keys(columnState);
9815
+ columns.forEach((item) => {
9816
+ if (!columnStateKeys.includes(item.prop)) {
9817
+ maxIndex++;
9818
+ item._index = maxIndex;
9819
+ }
9820
+ });
9821
+ const optItem = columns.find((itemOpt) => itemOpt.prop === props.operationPropKey);
9822
+ if (optItem) {
9823
+ maxIndex++;
9824
+ optItem._index = maxIndex++;
9825
+ }
9807
9826
  }
9808
9827
  } catch (e) {
9809
9828
  console.log(e);
9810
9829
  }
9811
9830
  }
9812
- tableColumns.value = columns.sort((a, b) => a._index - b._index < 0 ? -1 : a._index - b._index > 0 ? 1 : 0);
9831
+ tableColumns.value = columns.sort((a, b) => a._index - b._index);
9813
9832
  vueDemi.nextTick(() => {
9814
9833
  props.columns._skip = false;
9815
9834
  });
@@ -9894,7 +9913,7 @@ __sfc_main.setup = (__props, __ctx) => {
9894
9913
  }
9895
9914
  };
9896
9915
  const showPage = vueDemi.computed(() => {
9897
- return showData.value.length > props.pageAttrs["page-size"];
9916
+ return props.data.length > props.pageAttrs["page-size"];
9898
9917
  });
9899
9918
  const renderPage = vueDemi.computed(() => {
9900
9919
  return props.alwaysShowPage || showPage.value;
@@ -9964,8 +9983,8 @@ __sfc_main.setup = (__props, __ctx) => {
9964
9983
  (_a2 = elTableRef.value) == null ? void 0 : _a2.clearFilter();
9965
9984
  };
9966
9985
  const doLayout = () => {
9967
- var _a2, _b;
9968
- (_b = (_a2 = elTableRef.value) == null ? void 0 : _a2.doLayout) == null ? void 0 : _b.call(_a2);
9986
+ var _a2, _b2;
9987
+ (_b2 = (_a2 = elTableRef.value) == null ? void 0 : _a2.doLayout) == null ? void 0 : _b2.call(_a2);
9969
9988
  };
9970
9989
  const sort2 = (prop, order) => {
9971
9990
  var _a2;
@@ -9979,10 +9998,124 @@ __sfc_main.setup = (__props, __ctx) => {
9979
9998
  ...item.style || {}
9980
9999
  };
9981
10000
  };
10001
+ const fitOperationColumn = () => {
10002
+ const table = elTableRef.value;
10003
+ const config = tableColumns.value.find((item) => item.prop === props.operationPropKey);
10004
+ if (!table || !config || !config.attr)
10005
+ return;
10006
+ const column = (table.store.states.columns || []).find((item) => item.property === props.operationPropKey);
10007
+ if (!column)
10008
+ return;
10009
+ const fixedWrapper = column.fixed === "left" || column.fixed === true ? ".el-table__fixed" : column.fixed === "right" ? ".el-table__fixed-right" : "";
10010
+ let cells = fixedWrapper ? [...table.$el.querySelectorAll(`${fixedWrapper} .el-table__fixed-body-wrapper td.${column.id} .cell`)] : [];
10011
+ if (!cells.length)
10012
+ cells = [...table.$el.querySelectorAll(`.el-table__body-wrapper td.${column.id} .cell`)];
10013
+ if (!cells.length)
10014
+ return;
10015
+ const origins = cells.map((cell) => [cell.style.whiteSpace, cell.style.width]);
10016
+ cells.forEach((cell) => {
10017
+ cell.style.whiteSpace = "nowrap";
10018
+ cell.style.width = "max-content";
10019
+ });
10020
+ const contentTags = ["BUTTON", "A", "I", "SVG", "IMG"];
10021
+ const range = document.createRange();
10022
+ const need = Math.max(...cells.map((cell) => {
10023
+ const rect = cell.getBoundingClientRect();
10024
+ let right = rect.left;
10025
+ cell.querySelectorAll("*").forEach((el) => {
10026
+ const tag = el.tagName.toUpperCase();
10027
+ if (!contentTags.includes(tag) && el.children.length)
10028
+ return;
10029
+ let box = el.getBoundingClientRect();
10030
+ if (!box.width)
10031
+ return;
10032
+ if (!contentTags.includes(tag) && !getComputedStyle(el).display.startsWith("inline")) {
10033
+ range.selectNodeContents(el);
10034
+ box = range.getBoundingClientRect();
10035
+ }
10036
+ right = Math.max(right, box.right);
10037
+ });
10038
+ return Math.ceil(right - rect.left + parseFloat(getComputedStyle(cell).paddingRight)) + 1;
10039
+ }));
10040
+ cells.forEach((cell, i) => {
10041
+ cell.style.whiteSpace = origins[i][0];
10042
+ cell.style.width = origins[i][1];
10043
+ });
10044
+ const current = parseFloat(config.attr.width) || column.realWidth || column.width || 0;
10045
+ if (need > current) {
10046
+ config.__contentWidth = need;
10047
+ props.columns._skip = true;
10048
+ vueDemi.set(config.attr, "width", need + "px");
10049
+ config.__appliedWidth = {
10050
+ ...config.__appliedWidth,
10051
+ width: config.attr.width
10052
+ };
10053
+ vueDemi.nextTick(() => {
10054
+ props.columns._skip = false;
10055
+ doLayout();
10056
+ });
10057
+ }
10058
+ };
10059
+ let rowHeightObserver = null;
10060
+ let rowHeightFrame = 0;
10061
+ const syncRowHeights = () => {
10062
+ var _a2;
10063
+ rowHeightFrame = 0;
10064
+ const tableEl = (_a2 = elTableRef.value) == null ? void 0 : _a2.$el;
10065
+ if (!tableEl)
10066
+ return;
10067
+ const bodies = [tableEl.querySelector(".el-table__body-wrapper tbody"), ...tableEl.querySelectorAll(".el-table__fixed-body-wrapper tbody")].filter(Boolean);
10068
+ if (bodies.length < 2)
10069
+ return;
10070
+ const groups = bodies.map((body) => [...body.children].filter((tr) => tr.tagName === "TR"));
10071
+ if (groups.some((rows) => rows.length !== groups[0].length))
10072
+ return;
10073
+ groups.forEach((rows) => rows.forEach((tr) => {
10074
+ if (tr.dataset.nfRowHeight) {
10075
+ tr.style.height = tr.dataset.nfOriginHeight || "";
10076
+ delete tr.dataset.nfRowHeight;
10077
+ }
10078
+ }));
10079
+ const heights = groups.map((rows) => rows.map((tr) => tr.getBoundingClientRect().height));
10080
+ groups[0].forEach((_, i) => {
10081
+ const rowHeights = heights.map((list) => list[i]);
10082
+ const max = Math.max(...rowHeights);
10083
+ if (max - Math.min(...rowHeights) < 0.5)
10084
+ return;
10085
+ groups.forEach((rows) => {
10086
+ const tr = rows[i];
10087
+ tr.dataset.nfOriginHeight = tr.style.height;
10088
+ tr.dataset.nfRowHeight = "1";
10089
+ tr.style.height = max + "px";
10090
+ });
10091
+ });
10092
+ };
10093
+ const observeRowHeights = () => {
10094
+ var _a2;
10095
+ rowHeightObserver == null ? void 0 : rowHeightObserver.disconnect();
10096
+ rowHeightObserver = null;
10097
+ const tableEl = (_a2 = elTableRef.value) == null ? void 0 : _a2.$el;
10098
+ if (!tableEl || !window.ResizeObserver || !tableEl.querySelector(".el-table__fixed-body-wrapper"))
10099
+ return;
10100
+ rowHeightObserver = new ResizeObserver(() => {
10101
+ rowHeightFrame = rowHeightFrame || requestAnimationFrame(syncRowHeights);
10102
+ });
10103
+ tableEl.querySelectorAll(".el-table__body-wrapper td:not(.is-hidden) > .cell, .el-table__fixed-body-wrapper td:not(.is-hidden) > .cell").forEach((cell) => rowHeightObserver.observe(cell));
10104
+ };
10105
+ vueDemi.onBeforeUnmount(() => {
10106
+ rowHeightObserver == null ? void 0 : rowHeightObserver.disconnect();
10107
+ rowHeightFrame && cancelAnimationFrame(rowHeightFrame);
10108
+ });
10109
+ vueDemi.watch([() => props.data, elTableRefKey], () => {
10110
+ vueDemi.nextTick(() => requestAnimationFrame(() => {
10111
+ fitOperationColumn();
10112
+ observeRowHeights();
10113
+ }));
10114
+ });
9982
10115
  const headerDragend = async (newWidth, oldWidth, column, event) => {
9983
- var _a2, _b;
10116
+ var _a2, _b2;
9984
10117
  await vueDemi.nextTick();
9985
- const minWidth = getMinWidth(column);
10118
+ const minWidth = getMinWidth(tableColumns.value.find((item) => item.prop === column.property) || column);
9986
10119
  if (newWidth < minWidth) {
9987
10120
  column.width = minWidth;
9988
10121
  }
@@ -9992,11 +10125,15 @@ __sfc_main.setup = (__props, __ctx) => {
9992
10125
  await commonUtils.CachedManager.asyncCachedSet(`${cStorageKey.value}$drag-column-width`, columnCachedData);
9993
10126
  }
9994
10127
  resizeTable();
9995
- await ((_b = (_a2 = props.tableEvents)["header-dragend"]) == null ? void 0 : _b.call(_a2, newWidth, oldWidth, column, event));
10128
+ await ((_b2 = (_a2 = props.tableEvents)["header-dragend"]) == null ? void 0 : _b2.call(_a2, newWidth, oldWidth, column, event));
9996
10129
  };
9997
10130
  let opFixedRightCleanup = null;
10131
+ vueDemi.onBeforeUnmount(() => {
10132
+ opFixedRightCleanup == null ? void 0 : opFixedRightCleanup();
10133
+ opFixedRightCleanup = null;
10134
+ });
9998
10135
  const initOpFixedRightResizer = async () => {
9999
- var _a2, _b, _c;
10136
+ var _a2, _b2, _c2;
10000
10137
  await vueDemi.nextTick();
10001
10138
  opFixedRightCleanup == null ? void 0 : opFixedRightCleanup();
10002
10139
  opFixedRightCleanup = null;
@@ -10010,7 +10147,7 @@ __sfc_main.setup = (__props, __ctx) => {
10010
10147
  var _a3;
10011
10148
  return (col.prop || ((_a3 = col.attr) == null ? void 0 : _a3.prop)) === props.operationPropKey;
10012
10149
  });
10013
- if (!opCol || ((_b = opCol == null ? void 0 : opCol.attr) == null ? void 0 : _b.fixed) !== "right")
10150
+ if (!opCol || ((_b2 = opCol == null ? void 0 : opCol.attr) == null ? void 0 : _b2.fixed) !== "right")
10014
10151
  return;
10015
10152
  const fixedRightHeader = tableEl.querySelector(".el-table__fixed-right .el-table__fixed-header-wrapper thead tr");
10016
10153
  if (!fixedRightHeader)
@@ -10019,14 +10156,10 @@ __sfc_main.setup = (__props, __ctx) => {
10019
10156
  var _a3;
10020
10157
  return ((_a3 = col == null ? void 0 : col.attr) == null ? void 0 : _a3.fixed) === "right";
10021
10158
  });
10022
- if (fixedIndex < 0)
10023
- return;
10024
10159
  const th = fixedRightHeader.querySelectorAll("th")[fixedIndex];
10025
10160
  if (!th)
10026
10161
  return;
10027
10162
  const fixedRightRoot = tableEl.querySelector(".el-table__fixed-right");
10028
- if (!fixedRightRoot)
10029
- return;
10030
10163
  const oldOverlay = fixedRightRoot.querySelector('[data-nf-fixed-right-overlay="true"]');
10031
10164
  if (oldOverlay)
10032
10165
  oldOverlay.remove();
@@ -10041,8 +10174,6 @@ __sfc_main.setup = (__props, __ctx) => {
10041
10174
  const mainHeader = tableEl.querySelector(".el-table__header-wrapper thead tr");
10042
10175
  const cleanupHideAfter = [];
10043
10176
  const hideNativeAfter = (el) => {
10044
- if (!el)
10045
- return;
10046
10177
  el.classList.add("nf-table-hide-after");
10047
10178
  cleanupHideAfter.push(el);
10048
10179
  };
@@ -10066,7 +10197,7 @@ __sfc_main.setup = (__props, __ctx) => {
10066
10197
  handle.style.pointerEvents = "auto";
10067
10198
  overlay.appendChild(handle);
10068
10199
  let indicatorLine = null;
10069
- const columnProp = opCol.prop || ((_c = opCol.attr) == null ? void 0 : _c.prop);
10200
+ const columnProp = opCol.prop || ((_c2 = opCol.attr) == null ? void 0 : _c2.prop);
10070
10201
  const createIndicatorLine = (rect) => {
10071
10202
  const line = document.createElement("div");
10072
10203
  line.id = "nf-fixed-right-indicator-line";
@@ -10088,6 +10219,7 @@ __sfc_main.setup = (__props, __ctx) => {
10088
10219
  return line;
10089
10220
  };
10090
10221
  let pending = false;
10222
+ let indicatorFrame = 0;
10091
10223
  let cachedRect = null;
10092
10224
  const onPointerMove = (e) => {
10093
10225
  e.preventDefault();
@@ -10104,7 +10236,8 @@ __sfc_main.setup = (__props, __ctx) => {
10104
10236
  if (indicatorLine) {
10105
10237
  if (!pending) {
10106
10238
  pending = true;
10107
- requestAnimationFrame(() => {
10239
+ indicatorFrame = requestAnimationFrame(() => {
10240
+ indicatorFrame = 0;
10108
10241
  indicatorLine.style.display = "block";
10109
10242
  indicatorLine.style.transform = `translateX(${dragX}px)`;
10110
10243
  pending = false;
@@ -10112,7 +10245,11 @@ __sfc_main.setup = (__props, __ctx) => {
10112
10245
  }
10113
10246
  }
10114
10247
  };
10115
- const onPointerUp = async (e) => {
10248
+ const stopPointerDrag = () => {
10249
+ if (indicatorFrame)
10250
+ cancelAnimationFrame(indicatorFrame);
10251
+ indicatorFrame = 0;
10252
+ pending = false;
10116
10253
  document.removeEventListener("pointermove", onPointerMove);
10117
10254
  document.removeEventListener("pointerup", onPointerUp);
10118
10255
  const dragMask = document.getElementById("nf-fixed-right-drag-mask");
@@ -10121,6 +10258,9 @@ __sfc_main.setup = (__props, __ctx) => {
10121
10258
  indicatorLine.remove();
10122
10259
  indicatorLine = null;
10123
10260
  }
10261
+ };
10262
+ const onPointerUp = async (e) => {
10263
+ stopPointerDrag();
10124
10264
  try {
10125
10265
  handle.releasePointerCapture && handle.releasePointerCapture(e.pointerId);
10126
10266
  } catch {
@@ -10170,6 +10310,7 @@ __sfc_main.setup = (__props, __ctx) => {
10170
10310
  handle.addEventListener("pointerdown", onPointerDown);
10171
10311
  opFixedRightCleanup = () => {
10172
10312
  try {
10313
+ stopPointerDrag();
10173
10314
  handle.removeEventListener("pointerdown", onPointerDown);
10174
10315
  handle.remove();
10175
10316
  cleanupHideAfter.forEach((el) => el.classList.remove("nf-table-hide-after"));
@@ -10224,7 +10365,7 @@ __sfc_main.setup = (__props, __ctx) => {
10224
10365
  }
10225
10366
  };
10226
10367
  const calcTableHeight = () => {
10227
- var _a2, _b;
10368
+ var _a2, _b2;
10228
10369
  if (props.calHeight && nfTableContent.value) {
10229
10370
  const tableContentH = (_a2 = nfTableContent.value) == null ? void 0 : _a2.offsetHeight;
10230
10371
  const actionH = nfTableActionContainerRef.value.offsetHeight;
@@ -10233,13 +10374,13 @@ __sfc_main.setup = (__props, __ctx) => {
10233
10374
  elTableHeight.value = h;
10234
10375
  }
10235
10376
  } else {
10236
- elTableHeight.value = (_b = props.tableAttrs) == null ? void 0 : _b.height;
10377
+ elTableHeight.value = (_b2 = props.tableAttrs) == null ? void 0 : _b2.height;
10237
10378
  }
10238
10379
  };
10239
10380
  const searchApi = async (formData = {}, refresh = false) => {
10240
- var _a2, _b, _c;
10241
- (_b = (_a2 = props.searchFormEvents) == null ? void 0 : _a2["onSearch"]) == null ? void 0 : _b.call(_a2, formData);
10242
- if (!((_c = instance == null ? void 0 : instance.$listeners) == null ? void 0 : _c.searchApi))
10381
+ var _a2, _b2, _c2;
10382
+ (_b2 = (_a2 = props.searchFormEvents) == null ? void 0 : _a2["onSearch"]) == null ? void 0 : _b2.call(_a2, formData);
10383
+ if (!((_c2 = instance == null ? void 0 : instance.$listeners) == null ? void 0 : _c2.searchApi))
10243
10384
  return;
10244
10385
  tableLoading.value = true;
10245
10386
  if (refresh || JSON.stringify(preSearchFormData.value) !== JSON.stringify(formData)) {
@@ -10317,15 +10458,9 @@ __sfc_main.setup = (__props, __ctx) => {
10317
10458
  initOpFixedRightResizer();
10318
10459
  });
10319
10460
  const nfTableBorder = window.nfTableBorder;
10320
- const nfSearchFormModel = vueDemi.computed({
10321
- get: () => {
10322
- var _a2;
10323
- return ((_a2 = nfSearchFormRef.value) == null ? void 0 : _a2.nfSearchFormModel) || {};
10324
- },
10325
- set: (formData) => {
10326
- var _a2, _b;
10327
- return (_b = (_a2 = nfSearchFormRef.value) == null ? void 0 : _a2.setNfSearchFormModel) == null ? void 0 : _b.call(_a2, formData);
10328
- }
10461
+ const nfSearchFormModel = vueDemi.computed(() => {
10462
+ var _a2;
10463
+ return ((_a2 = nfSearchFormRef.value) == null ? void 0 : _a2.nfSearchFormModel) || {};
10329
10464
  });
10330
10465
  return Object.assign({
10331
10466
  resolveValue: commonUtils.resolveValue,
@@ -10344,6 +10479,7 @@ __sfc_main.setup = (__props, __ctx) => {
10344
10479
  columnCheckNfDrawer,
10345
10480
  elTableHeight,
10346
10481
  nfColumCheckDialogVisible,
10482
+ localeText,
10347
10483
  cStorageKey,
10348
10484
  cPageAttrs,
10349
10485
  handleSizeChange,
@@ -10519,7 +10655,7 @@ __sfc_main.components = Object.assign({
10519
10655
  ColumnCheckDrawer
10520
10656
  }, __sfc_main.components);
10521
10657
  var _sfc_render = function render4() {
10522
- var _a, _b, _c2, _d;
10658
+ var _a, _b, _c2, _d, _e, _f;
10523
10659
  var _vm = this, _c = _vm._self._c;
10524
10660
  _vm._self._setupProxy;
10525
10661
  return _c("div", {
@@ -10533,7 +10669,7 @@ var _sfc_render = function render4() {
10533
10669
  "onSearch": _vm.searchApi
10534
10670
  }
10535
10671
  }, "nf-search-form", _vm.searchFormAttrer, false), _vm.searchFormEvents), [_vm._l(((_a2 = _vm.nfSearchFormRef) == null ? void 0 : _a2.renderSearchFormItemOptions) || [], function(item) {
10536
- var _a3, _b2, _c3, _d2, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B;
10672
+ var _a3, _b2, _c3, _d2, _e2, _f2, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B;
10537
10673
  return [((_a3 = item.tooltip) == null ? void 0 : _a3.slot) ? _vm._t(item.tooltip.slot, null, {
10538
10674
  "slot": item.tooltip.slot
10539
10675
  }) : _vm._e(), item.slot ? _vm._t(item.slot, null, {
@@ -10541,7 +10677,7 @@ var _sfc_render = function render4() {
10541
10677
  "formData": _vm.nfSearchFormModel
10542
10678
  }) : _vm._e(), ((_b2 = item.inputSlot) == null ? void 0 : _b2.prepend) ? _vm._t((_c3 = item.inputSlot) == null ? void 0 : _c3.prepend, null, {
10543
10679
  "slot": (_d2 = item.inputSlot) == null ? void 0 : _d2.prepend
10544
- }) : _vm._e(), ((_e = item.inputSlot) == null ? void 0 : _e.append) ? _vm._t((_f = item.inputSlot) == null ? void 0 : _f.append, null, {
10680
+ }) : _vm._e(), ((_e2 = item.inputSlot) == null ? void 0 : _e2.append) ? _vm._t((_f2 = item.inputSlot) == null ? void 0 : _f2.append, null, {
10545
10681
  "slot": (_g = item.inputSlot) == null ? void 0 : _g.append
10546
10682
  }) : _vm._e(), ((_h = item.inputSlot) == null ? void 0 : _h.suffix) ? _vm._t((_i = item.inputSlot) == null ? void 0 : _i.suffix, null, {
10547
10683
  "slot": (_j = item.inputSlot) == null ? void 0 : _j.suffix
@@ -10588,7 +10724,7 @@ var _sfc_render = function render4() {
10588
10724
  _vm.nfColumCheckDialogVisible = true;
10589
10725
  }
10590
10726
  }
10591
- }, [_vm._v(" " + _vm._s(_vm.columnDisplayBtnText) + " ")])];
10727
+ }, [_vm._v(" " + _vm._s(_vm.localeText.columnDisplayBtnText) + " ")])];
10592
10728
  }) : _vm._e(), !_vm.virtualized ? _c("el-table", _vm._g(_vm._b({
10593
10729
  key: _vm.elTableRefKey,
10594
10730
  ref: "elTableRef",
@@ -10598,7 +10734,7 @@ var _sfc_render = function render4() {
10598
10734
  },
10599
10735
  attrs: {
10600
10736
  "data": _vm.showData,
10601
- "fit": ((_b = _vm.tableAttrer) == null ? void 0 : _b.fit) ?? true,
10737
+ "fit": (_c2 = (_b = _vm.tableAttrer) == null ? void 0 : _b.fit) != null ? _c2 : true,
10602
10738
  "height": _vm.elTableHeight
10603
10739
  }
10604
10740
  }, "el-table", _vm.tableAttrer, false), _vm.tableEventer), [_vm._l(_vm.tableColumns, function(column) {
@@ -10645,7 +10781,7 @@ var _sfc_render = function render4() {
10645
10781
  "popper-class": "actionTooltipRef",
10646
10782
  "placement": "top",
10647
10783
  "effect": "dark",
10648
- "content": _vm.columnDisplayBtnText
10784
+ "content": _vm.localeText.columnDisplayBtnText
10649
10785
  }
10650
10786
  }, [_c("i", {
10651
10787
  staticClass: "iconfont icon-liebiao_xianshiliemu operation-icon-column-check",
@@ -10727,7 +10863,7 @@ var _sfc_render = function render4() {
10727
10863
  attrs: {
10728
10864
  "slot": "empty",
10729
10865
  "image-size": _vm.emptyImageSize,
10730
- "description": _vm.emptyText
10866
+ "description": _vm.localeText.emptyText
10731
10867
  },
10732
10868
  slot: "empty"
10733
10869
  })];
@@ -10744,11 +10880,11 @@ var _sfc_render = function render4() {
10744
10880
  ref: "elTableRef",
10745
10881
  class: {
10746
10882
  "nf-table-container": true,
10747
- "nf-default-table-border": !_vm.nfTableBorder && !((_c2 = _vm.tableAttrs) == null ? void 0 : _c2.border)
10883
+ "nf-default-table-border": !_vm.nfTableBorder && !((_d = _vm.tableAttrs) == null ? void 0 : _d.border)
10748
10884
  },
10749
10885
  attrs: {
10750
10886
  "data": _vm.tableData,
10751
- "fit": ((_d = _vm.tableAttrer) == null ? void 0 : _d.fit) ?? true,
10887
+ "fit": (_f = (_e = _vm.tableAttrer) == null ? void 0 : _e.fit) != null ? _f : true,
10752
10888
  "height": _vm.elTableHeight
10753
10889
  }
10754
10890
  }, "el-table", _vm.tableAttrer, false), _vm.tableEventer), [_vm._l(_vm.tableColumns, function(column) {
@@ -10802,7 +10938,7 @@ var _sfc_render = function render4() {
10802
10938
  "popper-class": "actionTooltipRef",
10803
10939
  "placement": "top",
10804
10940
  "effect": "dark",
10805
- "content": _vm.columnDisplayBtnText
10941
+ "content": _vm.localeText.columnDisplayBtnText
10806
10942
  }
10807
10943
  }, [_c("i", {
10808
10944
  staticClass: "iconfont icon-liebiao_xianshiliemu operation-icon-column-check",
@@ -10884,7 +11020,7 @@ var _sfc_render = function render4() {
10884
11020
  attrs: {
10885
11021
  "slot": "empty",
10886
11022
  "image-size": _vm.emptyImageSize,
10887
- "description": _vm.emptyText
11023
+ "description": _vm.localeText.emptyText
10888
11024
  },
10889
11025
  slot: "empty"
10890
11026
  })];
@@ -10896,7 +11032,7 @@ var _sfc_render = function render4() {
10896
11032
  }, [_vm._t("actionBar", function() {
10897
11033
  var _a2;
10898
11034
  return [((_a2 = _vm.actionBarOptList) == null ? void 0 : _a2.length) && !_vm.hasActionBarSlot ? [_vm._l(_vm.actionBarOptList, function(item, index2) {
10899
- var _a3, _b2, _c3, _d2, _e, _f, _g, _h, _i, _j;
11035
+ var _a3, _b2, _c3, _d2, _e2, _f2, _g, _h, _i, _j;
10900
11036
  return [item.element === "el-button" ? _c("nf-button", _vm._g({
10901
11037
  key: item.key || index2,
10902
11038
  class: _vm.resolveValue(item.class),
@@ -11171,9 +11307,9 @@ var _sfc_render = function render4() {
11171
11307
  "slot": "prefix"
11172
11308
  }) : _vm._e(), ((_d2 = item.slot) == null ? void 0 : _d2.suffix) ? _vm._t(item.slot.suffix, null, {
11173
11309
  "slot": "suffix"
11174
- }) : _vm._e(), ((_e = item.slot) == null ? void 0 : _e.prepend) ? _vm._t(item.slot.prepend, null, {
11310
+ }) : _vm._e(), ((_e2 = item.slot) == null ? void 0 : _e2.prepend) ? _vm._t(item.slot.prepend, null, {
11175
11311
  "slot": "prepend"
11176
- }) : _vm._e(), ((_f = item.slot) == null ? void 0 : _f.append) ? _vm._t(item.slot.append, null, {
11312
+ }) : _vm._e(), ((_f2 = item.slot) == null ? void 0 : _f2.append) ? _vm._t(item.slot.append, null, {
11177
11313
  "slot": "append"
11178
11314
  }) : _vm._e()], 2) : _vm._e(), item.element === "el-autocomplete" ? _c("el-autocomplete", _vm._g({
11179
11315
  key: item.key || index2,
@@ -11284,10 +11420,10 @@ var _sfc_render = function render4() {
11284
11420
  })], 2)], 2), _vm.nfColumCheckDialogVisible && _vm.checkMode === "dialog" ? _c("column-check-dialog", {
11285
11421
  ref: "columnCheckDialog",
11286
11422
  attrs: {
11287
- "title": _vm.columnCheckTitle,
11288
- "confirm-text": _vm.columnCheckConfirmButtonText,
11289
- "cancel-text": _vm.columnCheckCancelButtonText,
11290
- "basic-field-desc": _vm.columnCheckBasicFieldDesc,
11423
+ "title": _vm.localeText.columnCheckTitle,
11424
+ "confirm-text": _vm.localeText.columnCheckConfirmButtonText,
11425
+ "cancel-text": _vm.localeText.columnCheckCancelButtonText,
11426
+ "basic-field-desc": _vm.localeText.columnCheckBasicFieldDesc,
11291
11427
  "show": _vm.nfColumCheckDialogVisible,
11292
11428
  "table-columns": _vm.processedColumns,
11293
11429
  "column-edit": _vm.columnEdit,
@@ -11321,9 +11457,9 @@ var _sfc_render = function render4() {
11321
11457
  })], 2) : _vm._e(), _vm.checkMode === "drawer" ? _c("nf-drawer", _vm._b({
11322
11458
  ref: "columnCheckNfDrawer",
11323
11459
  attrs: {
11324
- "title": _vm.columnCheckTitle,
11325
- "cancel-button-text": _vm.columnCheckCancelButtonText,
11326
- "confirm-button-text": _vm.columnCheckConfirmButtonText,
11460
+ "title": _vm.localeText.columnCheckTitle,
11461
+ "cancel-button-text": _vm.localeText.columnCheckCancelButtonText,
11462
+ "confirm-button-text": _vm.localeText.columnCheckConfirmButtonText,
11327
11463
  "size": "680px",
11328
11464
  "visible": _vm.nfColumCheckDialogVisible,
11329
11465
  "tabs": _vm.columnCheckTabs,
@@ -11345,14 +11481,14 @@ var _sfc_render = function render4() {
11345
11481
  }), _c("column-check-drawer", {
11346
11482
  ref: "columnCheckDrawer",
11347
11483
  attrs: {
11348
- "search-placeholder": _vm.columnCheckSearchPlaceholder,
11349
- "fixed-left-desc": _vm.columnCheckFixedLeftDesc,
11350
- "clear-desc": _vm.columnCheckClearDesc,
11351
- "no-fixed-desc": _vm.columnCheckNoFixedDesc,
11352
- "basic-field-desc": _vm.columnCheckBasicFieldDesc,
11353
- "select-empty-warning-tips": _vm.selectEmptyWarningTips,
11354
- "get-checked-length-desc": _vm.columnCheckGetCheckedLengthDesc,
11355
- "get-all-check-desc": _vm.columnCheckGetAllCheckDesc,
11484
+ "search-placeholder": _vm.localeText.columnCheckSearchPlaceholder,
11485
+ "fixed-left-desc": _vm.localeText.columnCheckFixedLeftDesc,
11486
+ "clear-desc": _vm.localeText.columnCheckClearDesc,
11487
+ "no-fixed-desc": _vm.localeText.columnCheckNoFixedDesc,
11488
+ "basic-field-desc": _vm.localeText.columnCheckBasicFieldDesc,
11489
+ "select-empty-warning-tips": _vm.localeText.selectEmptyWarningTips,
11490
+ "get-checked-length-desc": _vm.localeText.columnCheckGetCheckedLengthDesc,
11491
+ "get-all-check-desc": _vm.localeText.columnCheckGetAllCheckDesc,
11356
11492
  "column-edit": _vm.columnEdit,
11357
11493
  "operation-prop-key": _vm.operationPropKey,
11358
11494
  "storage-key": _vm.cStorageKey,