vxe-table 3.19.5 → 3.19.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.
@@ -16,15 +16,17 @@ function hasTreeChildren($xeTable, row) {
16
16
  }
17
17
  function getSeq($xeTable, cellValue, row, $rowIndex, column, $columnIndex) {
18
18
  const seqOpts = $xeTable.computeSeqOpts;
19
- const seqMethod = seqOpts.seqMethod || column.seqMethod;
20
- if (seqMethod) {
21
- return seqMethod({
19
+ const seqMd = seqOpts.seqMethod || column.seqMethod;
20
+ if (seqMd) {
21
+ return seqMd({
22
22
  $table: $xeTable,
23
23
  row,
24
24
  rowIndex: $xeTable.getRowIndex(row),
25
+ _rowIndex: $xeTable.getVTRowIndex(row),
25
26
  $rowIndex,
26
27
  column,
27
28
  columnIndex: $xeTable.getColumnIndex(column),
29
+ _columnIndex: $xeTable.getVTColumnIndex(column),
28
30
  $columnIndex
29
31
  });
30
32
  }
@@ -613,9 +613,9 @@ export const Cell = {
613
613
  return renderCellBaseVNs(h, params, $table.callSlot(slots.default, params, h));
614
614
  }
615
615
  const { seq } = params;
616
- const seqMethod = seqOpts.seqMethod;
616
+ const seqMd = seqOpts.seqMethod;
617
617
  return renderCellBaseVNs(h, params, [
618
- h('span', `${formatText(seqMethod ? seqMethod(params) : treeConfig ? seq : (seqOpts.startIndex || 0) + seq, 1)}`)
618
+ h('span', `${formatText(seqMd ? seqMd(params) : treeConfig ? seq : (seqOpts.startIndex || 0) + seq, 1)}`)
619
619
  ]);
620
620
  },
621
621
  renderDeepIndexCell(h, params) {
@@ -406,7 +406,7 @@ export default {
406
406
  ? h(VxeUIButtonComponent, {
407
407
  key: index,
408
408
  props: Object.assign({}, child, {
409
- content: child.name,
409
+ content: child.content || child.name,
410
410
  options: undefined
411
411
  }),
412
412
  on: {
@@ -455,7 +455,7 @@ export default {
455
455
  if (VxeUIButtonComponent) {
456
456
  btnVNs.push(h(VxeUIButtonComponent, {
457
457
  props: Object.assign({}, item, {
458
- content: item.name,
458
+ content: item.content || item.name,
459
459
  options: undefined
460
460
  }),
461
461
  on: {
@@ -517,7 +517,7 @@ export default {
517
517
  btnVNs.push(h(VxeUIButtonComponent, {
518
518
  key: tIndex,
519
519
  props: Object.assign({}, item, {
520
- content: item.name,
520
+ content: item.content || item.name,
521
521
  options: undefined
522
522
  }),
523
523
  on: {
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.19.5";
3
+ export const version = "3.19.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${"3.19.5"}`;
3
+ const version = `table v${"3.19.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
@@ -2005,7 +2005,7 @@ function getClass(property, params) {
2005
2005
  ;// CONCATENATED MODULE: ./packages/ui/index.ts
2006
2006
 
2007
2007
 
2008
- const version = "3.19.5";
2008
+ const version = "3.19.6";
2009
2009
  core_.VxeUI.version = version;
2010
2010
  core_.VxeUI.tableVersion = version;
2011
2011
  core_.VxeUI.setConfig({
@@ -2713,7 +2713,7 @@ function isNodeElement(elem) {
2713
2713
  const {
2714
2714
  log: log_log
2715
2715
  } = core_.VxeUI;
2716
- const log_version = `table v${"3.19.5"}`;
2716
+ const log_version = `table v${"3.19.6"}`;
2717
2717
  const warnLog = log_log.create('warn', log_version);
2718
2718
  const errLog = log_log.create('error', log_version);
2719
2719
  ;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
@@ -4479,8 +4479,8 @@ const Cell = {
4479
4479
  const {
4480
4480
  seq
4481
4481
  } = params;
4482
- const seqMethod = seqOpts.seqMethod;
4483
- return renderCellBaseVNs(h, params, [h('span', `${formatText(seqMethod ? seqMethod(params) : treeConfig ? seq : (seqOpts.startIndex || 0) + seq, 1)}`)]);
4482
+ const seqMd = seqOpts.seqMethod;
4483
+ return renderCellBaseVNs(h, params, [h('span', `${formatText(seqMd ? seqMd(params) : treeConfig ? seq : (seqOpts.startIndex || 0) + seq, 1)}`)]);
4484
4484
  },
4485
4485
  renderDeepIndexCell(h, params) {
4486
4486
  return Cell.renderDeepNodeBtn(h, params, Cell.renderSeqCell(h, params));
@@ -26676,15 +26676,17 @@ function hasTreeChildren($xeTable, row) {
26676
26676
  }
26677
26677
  function getSeq($xeTable, cellValue, row, $rowIndex, column, $columnIndex) {
26678
26678
  const seqOpts = $xeTable.computeSeqOpts;
26679
- const seqMethod = seqOpts.seqMethod || column.seqMethod;
26680
- if (seqMethod) {
26681
- return seqMethod({
26679
+ const seqMd = seqOpts.seqMethod || column.seqMethod;
26680
+ if (seqMd) {
26681
+ return seqMd({
26682
26682
  $table: $xeTable,
26683
26683
  row,
26684
26684
  rowIndex: $xeTable.getRowIndex(row),
26685
+ _rowIndex: $xeTable.getVTRowIndex(row),
26685
26686
  $rowIndex,
26686
26687
  column,
26687
26688
  columnIndex: $xeTable.getColumnIndex(column),
26689
+ _columnIndex: $xeTable.getVTColumnIndex(column),
26688
26690
  $columnIndex
26689
26691
  });
26690
26692
  }
@@ -33117,7 +33119,7 @@ function toolbar_createInternalData() {
33117
33119
  return VxeUIButtonComponent ? h(VxeUIButtonComponent, {
33118
33120
  key: index,
33119
33121
  props: Object.assign({}, child, {
33120
- content: child.name,
33122
+ content: child.content || child.name,
33121
33123
  options: undefined
33122
33124
  }),
33123
33125
  on: {
@@ -33181,7 +33183,7 @@ function toolbar_createInternalData() {
33181
33183
  if (VxeUIButtonComponent) {
33182
33184
  btnVNs.push(h(VxeUIButtonComponent, {
33183
33185
  props: Object.assign({}, item, {
33184
- content: item.name,
33186
+ content: item.content || item.name,
33185
33187
  options: undefined
33186
33188
  }),
33187
33189
  on: {
@@ -33262,7 +33264,7 @@ function toolbar_createInternalData() {
33262
33264
  btnVNs.push(h(VxeUIButtonComponent, {
33263
33265
  key: tIndex,
33264
33266
  props: Object.assign({}, item, {
33265
- content: item.name,
33267
+ content: item.content || item.name,
33266
33268
  options: undefined
33267
33269
  }),
33268
33270
  on: {