vxe-table 3.16.0-beta.9 → 3.16.1

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.
@@ -127,7 +127,7 @@ function handleInsertRowAt($xeTable, records, targetRow, isInsertNextRow) {
127
127
  // 刷新单元格合并
128
128
  mergeBodyList.forEach((mergeItem) => {
129
129
  const { row: mergeRowIndex } = mergeItem;
130
- if (mergeRowIndex > 0) {
130
+ if (mergeRowIndex >= 0) {
131
131
  mergeItem.row = mergeRowIndex + newRecords.length;
132
132
  }
133
133
  });
@@ -156,13 +156,6 @@ function handleInsertRowAt($xeTable, records, targetRow, isInsertNextRow) {
156
156
  afterFullData.push(item);
157
157
  tableFullData.push(item);
158
158
  });
159
- // 刷新单元格合并
160
- mergeBodyList.forEach((mergeItem) => {
161
- const { row: mergeRowIndex, rowspan: mergeRowspan } = mergeItem;
162
- if (mergeRowIndex + mergeRowspan > afterFullData.length) {
163
- mergeItem.rowspan = mergeRowspan + newRecords.length;
164
- }
165
- });
166
159
  }
167
160
  }
168
161
  else {
@@ -250,10 +243,10 @@ function handleInsertRowAt($xeTable, records, targetRow, isInsertNextRow) {
250
243
  // 刷新单元格合并
251
244
  mergeBodyList.forEach((mergeItem) => {
252
245
  const { row: mergeRowIndex, rowspan: mergeRowspan } = mergeItem;
253
- if (mergeRowIndex > afIndex) {
246
+ if (mergeRowIndex >= afIndex) {
254
247
  mergeItem.row = mergeRowIndex + newRecords.length;
255
248
  }
256
- else if (mergeRowIndex + mergeRowspan > afIndex) {
249
+ else if (isInsertNextRow ? (mergeRowIndex + mergeRowspan >= afIndex) : (mergeRowIndex + mergeRowspan > afIndex)) {
257
250
  mergeItem.rowspan = mergeRowspan + newRecords.length;
258
251
  }
259
252
  });
@@ -166,14 +166,14 @@ function getRenderDefaultColumnTitle(h, column, content) {
166
166
  }
167
167
  function renderTitleContent(h, params, content) {
168
168
  const { $table, column } = params;
169
- const { showHeaderOverflow } = column;
170
169
  const tableProps = $table;
171
170
  const tableReactData = $table;
172
171
  const { showHeaderOverflow: allColumnHeaderOverflow } = tableProps;
173
172
  const { isRowGroupStatus } = tableReactData;
173
+ const { showHeaderOverflow } = column;
174
174
  const tooltipOpts = $table.computeTooltipOpts;
175
175
  const showAllTip = tooltipOpts.showAll;
176
- const headOverflow = XEUtils.isUndefined(showHeaderOverflow) || XEUtils.isNull(showHeaderOverflow) ? allColumnHeaderOverflow : showHeaderOverflow;
176
+ const headOverflow = XEUtils.eqNull(showHeaderOverflow) ? allColumnHeaderOverflow : showHeaderOverflow;
177
177
  const showTitle = headOverflow === 'title';
178
178
  const showTooltip = headOverflow === true || headOverflow === 'tooltip';
179
179
  const ons = {};
@@ -202,7 +202,10 @@ function renderTitleContent(h, params, content) {
202
202
  }
203
203
  const titleVN = getRenderDefaultColumnTitle(h, column, content);
204
204
  return [
205
- h('span', Object.assign({ class: 'vxe-cell--title' }, ons), isRowGroupStatus && column.aggFunc && $table.getPivotTableAggregateRenderColTitles
205
+ h('span', {
206
+ class: 'vxe-cell--title',
207
+ on: ons
208
+ }, isRowGroupStatus && column.aggFunc && $table.getPivotTableAggregateRenderColTitles
206
209
  ? $table.getPivotTableAggregateRenderColTitles(h, column, titleVN)
207
210
  : [
208
211
  titleVN
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 = "3.16.0-beta.9";
3
+ export const version = "3.16.1";
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${"3.16.0-beta.9"}`;
3
+ const version = `table v${"3.16.1"}`;
4
4
  export const warnLog = log.create('warn', version);
5
5
  export const errLog = log.create('error', version);
package/lib/index.umd.js CHANGED
@@ -2002,7 +2002,7 @@ function getClass(property, params) {
2002
2002
  ;// CONCATENATED MODULE: ./packages/ui/index.ts
2003
2003
 
2004
2004
 
2005
- const version = "3.16.0-beta.9";
2005
+ const version = "3.16.1";
2006
2006
  core_.VxeUI.version = version;
2007
2007
  core_.VxeUI.tableVersion = version;
2008
2008
  core_.VxeUI.setConfig({
@@ -2667,7 +2667,7 @@ function isNodeElement(elem) {
2667
2667
  const {
2668
2668
  log: log_log
2669
2669
  } = core_.VxeUI;
2670
- const log_version = `table v${"3.16.0-beta.9"}`;
2670
+ const log_version = `table v${"3.16.1"}`;
2671
2671
  const warnLog = log_log.create('warn', log_version);
2672
2672
  const errLog = log_log.create('error', log_version);
2673
2673
  ;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
@@ -3687,9 +3687,6 @@ function renderTitleContent(h, params, content) {
3687
3687
  $table,
3688
3688
  column
3689
3689
  } = params;
3690
- const {
3691
- showHeaderOverflow
3692
- } = column;
3693
3690
  const tableProps = $table;
3694
3691
  const tableReactData = $table;
3695
3692
  const {
@@ -3698,9 +3695,12 @@ function renderTitleContent(h, params, content) {
3698
3695
  const {
3699
3696
  isRowGroupStatus
3700
3697
  } = tableReactData;
3698
+ const {
3699
+ showHeaderOverflow
3700
+ } = column;
3701
3701
  const tooltipOpts = $table.computeTooltipOpts;
3702
3702
  const showAllTip = tooltipOpts.showAll;
3703
- const headOverflow = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isUndefined(showHeaderOverflow) || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isNull(showHeaderOverflow) ? allColumnHeaderOverflow : showHeaderOverflow;
3703
+ const headOverflow = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(showHeaderOverflow) ? allColumnHeaderOverflow : showHeaderOverflow;
3704
3704
  const showTitle = headOverflow === 'title';
3705
3705
  const showTooltip = headOverflow === true || headOverflow === 'tooltip';
3706
3706
  const ons = {};
@@ -3729,7 +3729,7 @@ function renderTitleContent(h, params, content) {
3729
3729
  const titleVN = getRenderDefaultColumnTitle(h, column, content);
3730
3730
  return [h('span', {
3731
3731
  class: 'vxe-cell--title',
3732
- ...ons
3732
+ on: ons
3733
3733
  }, isRowGroupStatus && column.aggFunc && $table.getPivotTableAggregateRenderColTitles ? $table.getPivotTableAggregateRenderColTitles(h, column, titleVN) : [titleVN])];
3734
3734
  }
3735
3735
  function getFooterContent(h, params) {
@@ -23185,7 +23185,7 @@ function handleInsertRowAt($xeTable, records, targetRow, isInsertNextRow) {
23185
23185
  const {
23186
23186
  row: mergeRowIndex
23187
23187
  } = mergeItem;
23188
- if (mergeRowIndex > 0) {
23188
+ if (mergeRowIndex >= 0) {
23189
23189
  mergeItem.row = mergeRowIndex + newRecords.length;
23190
23190
  }
23191
23191
  });
@@ -23226,16 +23226,6 @@ function handleInsertRowAt($xeTable, records, targetRow, isInsertNextRow) {
23226
23226
  afterFullData.push(item);
23227
23227
  tableFullData.push(item);
23228
23228
  });
23229
- // 刷新单元格合并
23230
- mergeBodyList.forEach(mergeItem => {
23231
- const {
23232
- row: mergeRowIndex,
23233
- rowspan: mergeRowspan
23234
- } = mergeItem;
23235
- if (mergeRowIndex + mergeRowspan > afterFullData.length) {
23236
- mergeItem.rowspan = mergeRowspan + newRecords.length;
23237
- }
23238
- });
23239
23229
  }
23240
23230
  } else {
23241
23231
  // 如果为虚拟树
@@ -23341,9 +23331,9 @@ function handleInsertRowAt($xeTable, records, targetRow, isInsertNextRow) {
23341
23331
  row: mergeRowIndex,
23342
23332
  rowspan: mergeRowspan
23343
23333
  } = mergeItem;
23344
- if (mergeRowIndex > afIndex) {
23334
+ if (mergeRowIndex >= afIndex) {
23345
23335
  mergeItem.row = mergeRowIndex + newRecords.length;
23346
- } else if (mergeRowIndex + mergeRowspan > afIndex) {
23336
+ } else if (isInsertNextRow ? mergeRowIndex + mergeRowspan >= afIndex : mergeRowIndex + mergeRowspan > afIndex) {
23347
23337
  mergeItem.rowspan = mergeRowspan + newRecords.length;
23348
23338
  }
23349
23339
  });