vxe-table 4.12.0-beta.28 → 4.12.0-beta.29

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.
@@ -53,7 +53,7 @@ export default defineComponent({
53
53
  const { fixedType } = props;
54
54
  const { resizable: allResizable, border, footerCellClassName, footerCellStyle, footerAlign: allFooterAlign, footerSpanMethod, align: allAlign, columnKey, showFooterOverflow: allColumnFooterOverflow } = tableProps;
55
55
  const { scrollXLoad, scrollYLoad, overflowX, currentColumn, mergeFooterList } = tableReactData;
56
- const { scrollXStore } = tableInternalData;
56
+ const { fullColumnIdData, scrollXStore } = tableInternalData;
57
57
  const tooltipOpts = computeTooltipOpts.value;
58
58
  const resizableOpts = computeResizableOpts.value;
59
59
  const { isAllColumnDrag } = resizableOpts;
@@ -65,6 +65,7 @@ export default defineComponent({
65
65
  return tableColumn.map((column, $columnIndex) => {
66
66
  const { type, showFooterOverflow, footerAlign, align, footerClassName, editRender, cellRender } = column;
67
67
  const colid = column.id;
68
+ const colRest = fullColumnIdData[colid] || {};
68
69
  const renderOpts = editRender || cellRender;
69
70
  const compConf = renderOpts ? renderer.get(renderOpts.name) : null;
70
71
  const showAllTip = tooltipOpts.showAll;
@@ -80,8 +81,8 @@ export default defineComponent({
80
81
  const showResizable = (XEUtils.isBoolean(column.resizable) ? column.resizable : (columnOpts.resizable || allResizable));
81
82
  const attrs = { colid };
82
83
  const tfOns = {};
83
- const columnIndex = $xeTable.getColumnIndex(column);
84
- const _columnIndex = $xeTable.getVTColumnIndex(column);
84
+ const columnIndex = colRest.index;
85
+ const _columnIndex = colRest._index;
85
86
  const itemIndex = _columnIndex;
86
87
  const cellParams = {
87
88
  $table: $xeTable,
@@ -37,7 +37,7 @@ export default defineComponent({
37
37
  const { fixedType } = props;
38
38
  const { resizable: allResizable, columnKey, headerCellClassName, headerCellStyle, showHeaderOverflow: allColumnHeaderOverflow, headerAlign: allHeaderAlign, align: allAlign, mouseConfig } = tableProps;
39
39
  const { currentColumn, dragCol, scrollXLoad, scrollYLoad, overflowX } = tableReactData;
40
- const { scrollXStore } = tableInternalData;
40
+ const { fullColumnIdData, scrollXStore } = tableInternalData;
41
41
  const columnOpts = computeColumnOpts.value;
42
42
  const columnDragOpts = computeColumnDragOpts.value;
43
43
  const cellOpts = computeCellOpts.value;
@@ -48,6 +48,7 @@ export default defineComponent({
48
48
  return cols.map((column, $columnIndex) => {
49
49
  const { type, showHeaderOverflow, headerAlign, align, filters, headerClassName, editRender, cellRender } = column;
50
50
  const colid = column.id;
51
+ const colRest = fullColumnIdData[colid] || {};
51
52
  const renderOpts = editRender || cellRender;
52
53
  const compConf = renderOpts ? renderer.get(renderOpts.name) : null;
53
54
  const isColGroup = column.children && column.children.length;
@@ -65,8 +66,8 @@ export default defineComponent({
65
66
  firstFilterOption = filters[0];
66
67
  hasFilter = filters.some((item) => item.checked);
67
68
  }
68
- const columnIndex = $xeTable.getColumnIndex(column);
69
- const _columnIndex = $xeTable.getVTColumnIndex(column);
69
+ const columnIndex = colRest.index;
70
+ const _columnIndex = colRest._index;
70
71
  const cellParams = { $table: $xeTable, $grid: $xeGrid, $rowIndex, column, columnIndex, $columnIndex, _columnIndex, firstFilterOption, fixed: fixedType, type: renderType, isHidden: fixedHiddenColumn, hasFilter };
71
72
  const thAttrs = {
72
73
  colid,
package/es/ui/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { VxeUI } from '@vxe-ui/core';
2
2
  import { getFuncText } from './src/utils';
3
- export const version = "4.12.0-beta.28";
3
+ export const version = "4.12.0-beta.29";
4
4
  VxeUI.version = version;
5
5
  VxeUI.tableVersion = version;
6
6
  VxeUI.setConfig({
package/es/ui/src/log.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { VxeUI } from '@vxe-ui/core';
2
2
  const { log } = VxeUI;
3
- const version = `table v${"4.12.0-beta.28"}`;
3
+ const version = `table v${"4.12.0-beta.29"}`;
4
4
  export const warnLog = log.create('warn', version);
5
5
  export const errLog = log.create('error', version);
package/lib/index.umd.js CHANGED
@@ -3138,7 +3138,7 @@ function eqEmptyValue(cellValue) {
3138
3138
  ;// ./packages/ui/index.ts
3139
3139
 
3140
3140
 
3141
- const version = "4.12.0-beta.28";
3141
+ const version = "4.12.0-beta.29";
3142
3142
  core_.VxeUI.version = version;
3143
3143
  core_.VxeUI.tableVersion = version;
3144
3144
  core_.VxeUI.setConfig({
@@ -3587,7 +3587,7 @@ var esnext_iterator_some = __webpack_require__(7550);
3587
3587
  const {
3588
3588
  log: log_log
3589
3589
  } = core_.VxeUI;
3590
- const log_version = `table v${"4.12.0-beta.28"}`;
3590
+ const log_version = `table v${"4.12.0-beta.29"}`;
3591
3591
  const warnLog = log_log.create('warn', log_version);
3592
3592
  const errLog = log_log.create('error', log_version);
3593
3593
  ;// ./packages/table/src/columnInfo.ts
@@ -6348,6 +6348,7 @@ const renderType = 'body';
6348
6348
  const $xeGrid = $xeTable.xeGrid;
6349
6349
  const {
6350
6350
  fullAllDataRowIdData,
6351
+ fullColumnIdData,
6351
6352
  visibleColumn
6352
6353
  } = tableInternalData;
6353
6354
  const {
@@ -6431,15 +6432,16 @@ const renderType = 'body';
6431
6432
  const {
6432
6433
  actived
6433
6434
  } = editStore;
6434
- const rowRest = fullAllDataRowIdData[rowid];
6435
+ const rowRest = fullAllDataRowIdData[rowid] || {};
6435
6436
  const colid = column.id;
6437
+ const colRest = fullColumnIdData[colid] || {};
6436
6438
  const renderOpts = editRender || cellRender;
6437
6439
  const compConf = renderOpts ? body_renderer.get(renderOpts.name) : null;
6438
6440
  const compCellClassName = compConf ? compConf.tableCellClassName || compConf.cellClassName : null;
6439
6441
  const compCellStyle = compConf ? compConf.tableCellStyle || compConf.cellStyle : '';
6440
6442
  const showAllTip = tooltipOpts.showAll;
6441
- const columnIndex = $xeTable.getColumnIndex(column);
6442
- const _columnIndex = $xeTable.getVTColumnIndex(column);
6443
+ const columnIndex = colRest.index;
6444
+ const _columnIndex = colRest._index;
6443
6445
  const isEdit = isEnableConf(editRender);
6444
6446
  const resizeHeight = resizeHeightFlag ? rowRest.resizeHeight : 0;
6445
6447
  let fixedHiddenColumn = fixedType ? column.fixed !== fixedType : column.fixed && overflowX;
@@ -6788,7 +6790,7 @@ const renderType = 'body';
6788
6790
  };
6789
6791
  }
6790
6792
  const rowid = handleGetRowId(row);
6791
- const rowRest = fullAllDataRowIdData[rowid];
6793
+ const rowRest = fullAllDataRowIdData[rowid] || {};
6792
6794
  let rowLevel = 0;
6793
6795
  let seq = -1;
6794
6796
  let _rowIndex = 0;
@@ -7257,6 +7259,7 @@ const header_renderType = 'header';
7257
7259
  overflowX
7258
7260
  } = tableReactData;
7259
7261
  const {
7262
+ fullColumnIdData,
7260
7263
  scrollXStore
7261
7264
  } = tableInternalData;
7262
7265
  const columnOpts = computeColumnOpts.value;
@@ -7282,6 +7285,7 @@ const header_renderType = 'header';
7282
7285
  cellRender
7283
7286
  } = column;
7284
7287
  const colid = column.id;
7288
+ const colRest = fullColumnIdData[colid] || {};
7285
7289
  const renderOpts = editRender || cellRender;
7286
7290
  const compConf = renderOpts ? header_renderer.get(renderOpts.name) : null;
7287
7291
  const isColGroup = column.children && column.children.length;
@@ -7299,8 +7303,8 @@ const header_renderType = 'header';
7299
7303
  firstFilterOption = filters[0];
7300
7304
  hasFilter = filters.some(item => item.checked);
7301
7305
  }
7302
- const columnIndex = $xeTable.getColumnIndex(column);
7303
- const _columnIndex = $xeTable.getVTColumnIndex(column);
7306
+ const columnIndex = colRest.index;
7307
+ const _columnIndex = colRest._index;
7304
7308
  const cellParams = {
7305
7309
  $table: $xeTable,
7306
7310
  $grid: $xeGrid,
@@ -7725,6 +7729,7 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
7725
7729
  mergeFooterList
7726
7730
  } = tableReactData;
7727
7731
  const {
7732
+ fullColumnIdData,
7728
7733
  scrollXStore
7729
7734
  } = tableInternalData;
7730
7735
  const tooltipOpts = computeTooltipOpts.value;
@@ -7748,6 +7753,7 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
7748
7753
  cellRender
7749
7754
  } = column;
7750
7755
  const colid = column.id;
7756
+ const colRest = fullColumnIdData[colid] || {};
7751
7757
  const renderOpts = editRender || cellRender;
7752
7758
  const compConf = renderOpts ? footer_renderer.get(renderOpts.name) : null;
7753
7759
  const showAllTip = tooltipOpts.showAll;
@@ -7765,8 +7771,8 @@ function mergeFooterMethod(mergeFooterList, _rowIndex, _columnIndex) {
7765
7771
  colid
7766
7772
  };
7767
7773
  const tfOns = {};
7768
- const columnIndex = $xeTable.getColumnIndex(column);
7769
- const _columnIndex = $xeTable.getVTColumnIndex(column);
7774
+ const columnIndex = colRest.index;
7775
+ const _columnIndex = colRest._index;
7770
7776
  const itemIndex = _columnIndex;
7771
7777
  const cellParams = {
7772
7778
  $table: $xeTable,