vxe-table 4.17.5 → 4.17.6

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.
@@ -264,15 +264,17 @@ hooks.add('tableExportModule', {
264
264
  };
265
265
  const getSeq = (cellValue, row, $rowIndex, column, $columnIndex) => {
266
266
  const seqOpts = computeSeqOpts.value;
267
- const seqMethod = seqOpts.seqMethod || column.seqMethod;
268
- if (seqMethod) {
269
- return seqMethod({
267
+ const seqMd = seqOpts.seqMethod || column.seqMethod;
268
+ if (seqMd) {
269
+ return seqMd({
270
270
  $table: $xeTable,
271
271
  row,
272
272
  rowIndex: $xeTable.getRowIndex(row),
273
+ _rowIndex: $xeTable.getVTRowIndex(row),
273
274
  $rowIndex,
274
275
  column,
275
276
  columnIndex: $xeTable.getColumnIndex(column),
277
+ _columnIndex: $xeTable.getVTColumnIndex(column),
276
278
  $columnIndex
277
279
  });
278
280
  }
@@ -628,9 +628,9 @@ export const Cell = {
628
628
  return renderCellBaseVNs(params, $table.callSlot(defaultSlot, params));
629
629
  }
630
630
  const { seq } = params;
631
- const seqMethod = seqOpts.seqMethod;
631
+ const seqMd = seqOpts.seqMethod;
632
632
  return renderCellBaseVNs(params, [
633
- h('span', `${formatText(seqMethod ? seqMethod(params) : treeConfig ? seq : (seqOpts.startIndex || 0) + seq, 1)}`)
633
+ h('span', `${formatText(seqMd ? seqMd(params) : treeConfig ? seq : (seqOpts.startIndex || 0) + seq, 1)}`)
634
634
  ]);
635
635
  },
636
636
  renderDeepIndexCell(params) {
@@ -342,7 +342,7 @@ export default defineVxeComponent({
342
342
  }
343
343
  return VxeUIButtonComponent
344
344
  ? h(VxeUIButtonComponent, Object.assign(Object.assign({ key: index }, Object.assign({}, child, {
345
- content: child.name,
345
+ content: child.content || child.name,
346
346
  options: undefined
347
347
  })), { onClick: (eventParams) => isBtn ? btnEvent(eventParams, child) : tolEvent(eventParams, child) }))
348
348
  : createCommentVNode();
@@ -379,7 +379,7 @@ export default defineVxeComponent({
379
379
  else {
380
380
  if (VxeUIButtonComponent) {
381
381
  btnVNs.push(h(VxeUIButtonComponent, Object.assign(Object.assign({ key: `bd${item.code || index}` }, Object.assign({}, item, {
382
- content: item.name,
382
+ content: item.content || item.name,
383
383
  options: undefined
384
384
  })), { onClick: (eventParams) => btnEvent(eventParams, item) }), dropdowns && dropdowns.length
385
385
  ? {
@@ -426,7 +426,7 @@ export default defineVxeComponent({
426
426
  else {
427
427
  if (VxeUIButtonComponent) {
428
428
  btnVNs.push(h(VxeUIButtonComponent, Object.assign(Object.assign({ key: tIndex }, Object.assign({}, item, {
429
- content: item.name,
429
+ content: item.content || item.name,
430
430
  options: undefined
431
431
  })), { onClick: (eventParams) => tolEvent(eventParams, item) }), dropdowns && dropdowns.length
432
432
  ? {
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.17.5";
3
+ export const version = "4.17.6";
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.17.5"}`;
3
+ const version = `table v${"4.17.6"}`;
4
4
  export const warnLog = log.create('warn', version);
5
5
  export const errLog = log.create('error', version);
package/lib/index.umd.js CHANGED
@@ -3141,7 +3141,7 @@ function eqEmptyValue(cellValue) {
3141
3141
  ;// ./packages/ui/index.ts
3142
3142
 
3143
3143
 
3144
- const version = "4.17.5";
3144
+ const version = "4.17.6";
3145
3145
  core_.VxeUI.version = version;
3146
3146
  core_.VxeUI.tableVersion = version;
3147
3147
  core_.VxeUI.setConfig({
@@ -3654,7 +3654,7 @@ var esnext_iterator_some = __webpack_require__(7550);
3654
3654
  const {
3655
3655
  log: log_log
3656
3656
  } = core_.VxeUI;
3657
- const log_version = `table v${"4.17.5"}`;
3657
+ const log_version = `table v${"4.17.6"}`;
3658
3658
  const warnLog = log_log.create('warn', log_version);
3659
3659
  const errLog = log_log.create('error', log_version);
3660
3660
  ;// ./packages/table/src/columnInfo.ts
@@ -5728,8 +5728,8 @@ const Cell = {
5728
5728
  const {
5729
5729
  seq
5730
5730
  } = params;
5731
- const seqMethod = seqOpts.seqMethod;
5732
- return renderCellBaseVNs(params, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', `${formatText(seqMethod ? seqMethod(params) : treeConfig ? seq : (seqOpts.startIndex || 0) + seq, 1)}`)]);
5731
+ const seqMd = seqOpts.seqMethod;
5732
+ return renderCellBaseVNs(params, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', `${formatText(seqMd ? seqMd(params) : treeConfig ? seq : (seqOpts.startIndex || 0) + seq, 1)}`)]);
5733
5733
  },
5734
5734
  renderDeepIndexCell(params) {
5735
5735
  return Cell.renderDeepNodeBtn(params, Cell.renderSeqCell(params));
@@ -14142,15 +14142,17 @@ export_hook_hooks.add('tableExportModule', {
14142
14142
  };
14143
14143
  const getSeq = (cellValue, row, $rowIndex, column, $columnIndex) => {
14144
14144
  const seqOpts = computeSeqOpts.value;
14145
- const seqMethod = seqOpts.seqMethod || column.seqMethod;
14146
- if (seqMethod) {
14147
- return seqMethod({
14145
+ const seqMd = seqOpts.seqMethod || column.seqMethod;
14146
+ if (seqMd) {
14147
+ return seqMd({
14148
14148
  $table: $xeTable,
14149
14149
  row,
14150
14150
  rowIndex: $xeTable.getRowIndex(row),
14151
+ _rowIndex: $xeTable.getVTRowIndex(row),
14151
14152
  $rowIndex,
14152
14153
  column,
14153
14154
  columnIndex: $xeTable.getColumnIndex(column),
14155
+ _columnIndex: $xeTable.getVTColumnIndex(column),
14154
14156
  $columnIndex
14155
14157
  });
14156
14158
  }
@@ -20286,7 +20288,7 @@ function toolbar_createInternalData() {
20286
20288
  return VxeUIButtonComponent ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUIButtonComponent, {
20287
20289
  key: index,
20288
20290
  ...Object.assign({}, child, {
20289
- content: child.name,
20291
+ content: child.content || child.name,
20290
20292
  options: undefined
20291
20293
  }),
20292
20294
  onClick: eventParams => isBtn ? btnEvent(eventParams, child) : tolEvent(eventParams, child)
@@ -20342,7 +20344,7 @@ function toolbar_createInternalData() {
20342
20344
  btnVNs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUIButtonComponent, {
20343
20345
  key: `bd${item.code || index}`,
20344
20346
  ...Object.assign({}, item, {
20345
- content: item.name,
20347
+ content: item.content || item.name,
20346
20348
  options: undefined
20347
20349
  }),
20348
20350
  onClick: eventParams => btnEvent(eventParams, item)
@@ -20412,7 +20414,7 @@ function toolbar_createInternalData() {
20412
20414
  btnVNs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(VxeUIButtonComponent, {
20413
20415
  key: tIndex,
20414
20416
  ...Object.assign({}, item, {
20415
- content: item.name,
20417
+ content: item.content || item.name,
20416
20418
  options: undefined
20417
20419
  }),
20418
20420
  onClick: eventParams => tolEvent(eventParams, item)