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.
- package/es/style.css +1 -1
- package/es/table/module/export/mixin.js +5 -3
- package/es/table/src/cell.js +2 -2
- package/es/toolbar/src/toolbar.js +3 -3
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +12 -10
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/module/export/mixin.js +5 -3
- package/lib/table/module/export/mixin.min.js +1 -1
- package/lib/table/src/cell.js +2 -2
- package/lib/toolbar/src/toolbar.js +3 -3
- package/lib/toolbar/src/toolbar.min.js +1 -1
- package/lib/ui/index.js +1 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/package.json +1 -1
- package/packages/table/module/export/mixin.ts +5 -3
- package/packages/table/src/cell.ts +2 -2
- package/packages/toolbar/src/toolbar.ts +3 -3
- /package/es/{iconfont.1761784799557.ttf → iconfont.1761877353318.ttf} +0 -0
- /package/es/{iconfont.1761784799557.woff → iconfont.1761877353318.woff} +0 -0
- /package/es/{iconfont.1761784799557.woff2 → iconfont.1761877353318.woff2} +0 -0
- /package/lib/{iconfont.1761784799557.ttf → iconfont.1761877353318.ttf} +0 -0
- /package/lib/{iconfont.1761784799557.woff → iconfont.1761877353318.woff} +0 -0
- /package/lib/{iconfont.1761784799557.woff2 → iconfont.1761877353318.woff2} +0 -0
|
@@ -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
|
|
20
|
-
if (
|
|
21
|
-
return
|
|
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
|
}
|
package/es/table/src/cell.js
CHANGED
|
@@ -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
|
|
616
|
+
const seqMd = seqOpts.seqMethod;
|
|
617
617
|
return renderCellBaseVNs(h, params, [
|
|
618
|
-
h('span', `${formatText(
|
|
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
package/es/ui/src/log.js
CHANGED
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.
|
|
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.
|
|
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
|
|
4483
|
-
return renderCellBaseVNs(h, params, [h('span', `${formatText(
|
|
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
|
|
26680
|
-
if (
|
|
26681
|
-
return
|
|
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: {
|