vxe-table 3.15.49 → 3.15.50
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/edit/mixin.js +27 -1
- package/es/table/src/columnInfo.js +5 -0
- package/es/table/src/table.js +19 -0
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +52 -3
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/module/edit/mixin.js +26 -1
- package/lib/table/module/edit/mixin.min.js +1 -1
- package/lib/table/src/columnInfo.js +5 -0
- package/lib/table/src/columnInfo.min.js +1 -1
- package/lib/table/src/table.js +19 -0
- package/lib/table/src/table.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/edit/mixin.ts +26 -2
- package/packages/table/src/columnInfo.ts +5 -0
- package/packages/table/src/table.ts +19 -0
- /package/es/{iconfont.1750995593907.ttf → iconfont.1751253085970.ttf} +0 -0
- /package/es/{iconfont.1750995593907.woff → iconfont.1751253085970.woff} +0 -0
- /package/es/{iconfont.1750995593907.woff2 → iconfont.1751253085970.woff2} +0 -0
- /package/lib/{iconfont.1750995593907.ttf → iconfont.1751253085970.ttf} +0 -0
- /package/lib/{iconfont.1750995593907.woff → iconfont.1751253085970.woff} +0 -0
- /package/lib/{iconfont.1750995593907.woff2 → iconfont.1751253085970.woff2} +0 -0
|
@@ -86,11 +86,14 @@ function insertTreeRow($xeTable, newRecords, isAppend) {
|
|
|
86
86
|
}
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
|
+
// function insertGroupRow ($xeTable: VxeTableConstructor & VxeTablePrivateMethods, newRecords: any[], isAppend: boolean) {
|
|
90
|
+
// }
|
|
89
91
|
function handleInsertRowAt($xeTable, records, targetRow, isInsertNextRow) {
|
|
90
92
|
const props = $xeTable;
|
|
91
93
|
const reactData = $xeTable;
|
|
92
94
|
const internalData = $xeTable;
|
|
93
95
|
const { treeConfig } = props;
|
|
96
|
+
const { isRowGroupStatus } = reactData;
|
|
94
97
|
const { tableFullTreeData, afterFullData, mergeBodyList, tableFullData, fullDataRowIdData, fullAllDataRowIdData, insertRowMaps } = internalData;
|
|
95
98
|
const treeOpts = $xeTable.computeTreeOpts;
|
|
96
99
|
const { transform, rowField, mapChildrenField } = treeOpts;
|
|
@@ -104,6 +107,13 @@ function handleInsertRowAt($xeTable, records, targetRow, isInsertNextRow) {
|
|
|
104
107
|
if (treeConfig && transform) {
|
|
105
108
|
insertTreeRow($xeTable, newRecords, false);
|
|
106
109
|
}
|
|
110
|
+
else if (isRowGroupStatus) {
|
|
111
|
+
// 如果分组
|
|
112
|
+
if (treeConfig) {
|
|
113
|
+
throw new Error(getI18n('vxe.error.noTree', ['insert']));
|
|
114
|
+
}
|
|
115
|
+
// insertGroupRow($xeTable, newRecords, false)
|
|
116
|
+
}
|
|
107
117
|
else {
|
|
108
118
|
newRecords.forEach(item => {
|
|
109
119
|
const rowid = getRowid($xeTable, item);
|
|
@@ -128,6 +138,13 @@ function handleInsertRowAt($xeTable, records, targetRow, isInsertNextRow) {
|
|
|
128
138
|
if (treeConfig && transform) {
|
|
129
139
|
insertTreeRow($xeTable, newRecords, true);
|
|
130
140
|
}
|
|
141
|
+
else if (isRowGroupStatus) {
|
|
142
|
+
// 如果分组
|
|
143
|
+
if (treeConfig) {
|
|
144
|
+
throw new Error(getI18n('vxe.error.noTree', ['insert']));
|
|
145
|
+
}
|
|
146
|
+
// insertGroupRow($xeTable, newRecords, false)
|
|
147
|
+
}
|
|
131
148
|
else {
|
|
132
149
|
newRecords.forEach(item => {
|
|
133
150
|
const rowid = getRowid($xeTable, item);
|
|
@@ -192,6 +209,12 @@ function handleInsertRowAt($xeTable, records, targetRow, isInsertNextRow) {
|
|
|
192
209
|
insertTreeRow($xeTable, newRecords, true);
|
|
193
210
|
}
|
|
194
211
|
}
|
|
212
|
+
else if (isRowGroupStatus) {
|
|
213
|
+
// 如果分组
|
|
214
|
+
if (treeConfig) {
|
|
215
|
+
throw new Error(getI18n('vxe.error.noTree', ['insert']));
|
|
216
|
+
}
|
|
217
|
+
}
|
|
195
218
|
else {
|
|
196
219
|
if (treeConfig) {
|
|
197
220
|
throw new Error(getI18n('vxe.error.noTree', ['insert']));
|
|
@@ -489,7 +512,7 @@ export default {
|
|
|
489
512
|
const reactData = $xeTable;
|
|
490
513
|
const internalData = $xeTable;
|
|
491
514
|
const { treeConfig } = props;
|
|
492
|
-
const { editStore } = reactData;
|
|
515
|
+
const { editStore, isRowGroupStatus } = reactData;
|
|
493
516
|
const { tableFullTreeData, selectCheckboxMaps, afterFullData, mergeBodyList, tableFullData, pendingRowMaps, insertRowMaps, removeRowMaps } = internalData;
|
|
494
517
|
const checkboxOpts = $xeTable.computeCheckboxOpts;
|
|
495
518
|
const treeOpts = $xeTable.computeTreeOpts;
|
|
@@ -548,6 +571,9 @@ export default {
|
|
|
548
571
|
}
|
|
549
572
|
});
|
|
550
573
|
}
|
|
574
|
+
else if (isRowGroupStatus) {
|
|
575
|
+
// 如果分组
|
|
576
|
+
}
|
|
551
577
|
else {
|
|
552
578
|
rows.forEach((row) => {
|
|
553
579
|
const tfIndex = this.findRowIndexOf(tableFullData, row);
|
|
@@ -48,6 +48,11 @@ export class ColumnInfo {
|
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
+
if (_vm.aggFunc) {
|
|
52
|
+
if (!$xeTable.handlePivotTableAggregateData && _vm.aggFunc !== true) {
|
|
53
|
+
errLog('vxe.error.errProp', [`column.agg-func=${_vm.aggFunc}`, 'column.agg-func=true']);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
51
56
|
Object.assign(this, {
|
|
52
57
|
// 基本属性
|
|
53
58
|
type: _vm.type,
|
package/es/table/src/table.js
CHANGED
|
@@ -1742,6 +1742,7 @@ export default {
|
|
|
1742
1742
|
$xeTable.$nextTick(() => {
|
|
1743
1743
|
if (props.loading) {
|
|
1744
1744
|
if (!VxeUILoadingComponent && !this.$scopedSlots.loading) {
|
|
1745
|
+
errLog('vxe.error.errProp', ['loading=true', 'loading=false | <template #loading>...</template>']);
|
|
1745
1746
|
errLog('vxe.error.reqComp', ['vxe-loading']);
|
|
1746
1747
|
}
|
|
1747
1748
|
}
|
|
@@ -1750,6 +1751,24 @@ export default {
|
|
|
1750
1751
|
(props.showFooterOverflow === true || props.showFooterOverflow === 'tooltip') ||
|
|
1751
1752
|
props.tooltipConfig || props.editRules) {
|
|
1752
1753
|
if (!VxeUITooltipComponent) {
|
|
1754
|
+
if (props.showOverflow === true) {
|
|
1755
|
+
errLog('vxe.error.errProp', ['show-overflow=true', 'show-overflow=title']);
|
|
1756
|
+
}
|
|
1757
|
+
if (props.showOverflow === 'tooltip') {
|
|
1758
|
+
errLog('vxe.error.errProp', ['show-overflow=tooltip', 'show-overflow=title']);
|
|
1759
|
+
}
|
|
1760
|
+
if (props.showHeaderOverflow === true) {
|
|
1761
|
+
errLog('vxe.error.errProp', ['show-header-overflow=true', 'show-header-overflow=title']);
|
|
1762
|
+
}
|
|
1763
|
+
if (props.showHeaderOverflow === 'tooltip') {
|
|
1764
|
+
errLog('vxe.error.errProp', ['show-header-overflow=tooltip', 'show-header-overflow=title']);
|
|
1765
|
+
}
|
|
1766
|
+
if (props.showFooterOverflow === true) {
|
|
1767
|
+
errLog('vxe.error.errProp', ['show-footer-overflow=true', 'show-footer-overflow=title']);
|
|
1768
|
+
}
|
|
1769
|
+
if (props.showFooterOverflow === 'tooltip') {
|
|
1770
|
+
errLog('vxe.error.errProp', ['show-footer-overflow=tooltip', 'show-footer-overflow=title']);
|
|
1771
|
+
}
|
|
1753
1772
|
errLog('vxe.error.reqComp', ['vxe-tooltip']);
|
|
1754
1773
|
}
|
|
1755
1774
|
}
|
package/es/ui/index.js
CHANGED
package/es/ui/src/log.js
CHANGED
package/lib/index.umd.js
CHANGED
|
@@ -3234,7 +3234,7 @@ function getClass(property, params) {
|
|
|
3234
3234
|
;// ./packages/ui/index.ts
|
|
3235
3235
|
|
|
3236
3236
|
|
|
3237
|
-
const version = "3.15.
|
|
3237
|
+
const version = "3.15.50";
|
|
3238
3238
|
core_.VxeUI.version = version;
|
|
3239
3239
|
core_.VxeUI.tableVersion = version;
|
|
3240
3240
|
core_.VxeUI.setConfig({
|
|
@@ -3906,7 +3906,7 @@ var es_iterator_map = __webpack_require__(1701);
|
|
|
3906
3906
|
const {
|
|
3907
3907
|
log: log_log
|
|
3908
3908
|
} = core_.VxeUI;
|
|
3909
|
-
const log_version = `table v${"3.15.
|
|
3909
|
+
const log_version = `table v${"3.15.50"}`;
|
|
3910
3910
|
const warnLog = log_log.create('warn', log_version);
|
|
3911
3911
|
const errLog = log_log.create('error', log_version);
|
|
3912
3912
|
;// ./packages/table/src/columnInfo.ts
|
|
@@ -3969,6 +3969,11 @@ class ColumnInfo {
|
|
|
3969
3969
|
}
|
|
3970
3970
|
}
|
|
3971
3971
|
}
|
|
3972
|
+
if (_vm.aggFunc) {
|
|
3973
|
+
if (!$xeTable.handlePivotTableAggregateData && _vm.aggFunc !== true) {
|
|
3974
|
+
errLog('vxe.error.errProp', [`column.agg-func=${_vm.aggFunc}`, 'column.agg-func=true']);
|
|
3975
|
+
}
|
|
3976
|
+
}
|
|
3972
3977
|
Object.assign(this, {
|
|
3973
3978
|
// 基本属性
|
|
3974
3979
|
type: _vm.type,
|
|
@@ -24211,6 +24216,8 @@ function insertTreeRow($xeTable, newRecords, isAppend) {
|
|
|
24211
24216
|
}
|
|
24212
24217
|
});
|
|
24213
24218
|
}
|
|
24219
|
+
// function insertGroupRow ($xeTable: VxeTableConstructor & VxeTablePrivateMethods, newRecords: any[], isAppend: boolean) {
|
|
24220
|
+
// }
|
|
24214
24221
|
function handleInsertRowAt($xeTable, records, targetRow, isInsertNextRow) {
|
|
24215
24222
|
const props = $xeTable;
|
|
24216
24223
|
const reactData = $xeTable;
|
|
@@ -24218,6 +24225,9 @@ function handleInsertRowAt($xeTable, records, targetRow, isInsertNextRow) {
|
|
|
24218
24225
|
const {
|
|
24219
24226
|
treeConfig
|
|
24220
24227
|
} = props;
|
|
24228
|
+
const {
|
|
24229
|
+
isRowGroupStatus
|
|
24230
|
+
} = reactData;
|
|
24221
24231
|
const {
|
|
24222
24232
|
tableFullTreeData,
|
|
24223
24233
|
afterFullData,
|
|
@@ -24245,6 +24255,12 @@ function handleInsertRowAt($xeTable, records, targetRow, isInsertNextRow) {
|
|
|
24245
24255
|
// 如果为虚拟树
|
|
24246
24256
|
if (treeConfig && transform) {
|
|
24247
24257
|
insertTreeRow($xeTable, newRecords, false);
|
|
24258
|
+
} else if (isRowGroupStatus) {
|
|
24259
|
+
// 如果分组
|
|
24260
|
+
if (treeConfig) {
|
|
24261
|
+
throw new Error(mixin_getI18n('vxe.error.noTree', ['insert']));
|
|
24262
|
+
}
|
|
24263
|
+
// insertGroupRow($xeTable, newRecords, false)
|
|
24248
24264
|
} else {
|
|
24249
24265
|
newRecords.forEach(item => {
|
|
24250
24266
|
const rowid = getRowid($xeTable, item);
|
|
@@ -24284,6 +24300,12 @@ function handleInsertRowAt($xeTable, records, targetRow, isInsertNextRow) {
|
|
|
24284
24300
|
// 如果为虚拟树
|
|
24285
24301
|
if (treeConfig && transform) {
|
|
24286
24302
|
insertTreeRow($xeTable, newRecords, true);
|
|
24303
|
+
} else if (isRowGroupStatus) {
|
|
24304
|
+
// 如果分组
|
|
24305
|
+
if (treeConfig) {
|
|
24306
|
+
throw new Error(mixin_getI18n('vxe.error.noTree', ['insert']));
|
|
24307
|
+
}
|
|
24308
|
+
// insertGroupRow($xeTable, newRecords, false)
|
|
24287
24309
|
} else {
|
|
24288
24310
|
newRecords.forEach(item => {
|
|
24289
24311
|
const rowid = getRowid($xeTable, item);
|
|
@@ -24384,6 +24406,11 @@ function handleInsertRowAt($xeTable, records, targetRow, isInsertNextRow) {
|
|
|
24384
24406
|
warnLog('vxe.error.unableInsert');
|
|
24385
24407
|
insertTreeRow($xeTable, newRecords, true);
|
|
24386
24408
|
}
|
|
24409
|
+
} else if (isRowGroupStatus) {
|
|
24410
|
+
// 如果分组
|
|
24411
|
+
if (treeConfig) {
|
|
24412
|
+
throw new Error(mixin_getI18n('vxe.error.noTree', ['insert']));
|
|
24413
|
+
}
|
|
24387
24414
|
} else {
|
|
24388
24415
|
if (treeConfig) {
|
|
24389
24416
|
throw new Error(mixin_getI18n('vxe.error.noTree', ['insert']));
|
|
@@ -24730,7 +24757,8 @@ function handleEditCell($xeTable, row, fieldOrColumn, isPos) {
|
|
|
24730
24757
|
treeConfig
|
|
24731
24758
|
} = props;
|
|
24732
24759
|
const {
|
|
24733
|
-
editStore
|
|
24760
|
+
editStore,
|
|
24761
|
+
isRowGroupStatus
|
|
24734
24762
|
} = reactData;
|
|
24735
24763
|
const {
|
|
24736
24764
|
tableFullTreeData,
|
|
@@ -24807,6 +24835,8 @@ function handleEditCell($xeTable, row, fieldOrColumn, isPos) {
|
|
|
24807
24835
|
afterFullData.splice(afIndex, 1);
|
|
24808
24836
|
}
|
|
24809
24837
|
});
|
|
24838
|
+
} else if (isRowGroupStatus) {
|
|
24839
|
+
// 如果分组
|
|
24810
24840
|
} else {
|
|
24811
24841
|
rows.forEach(row => {
|
|
24812
24842
|
const tfIndex = this.findRowIndexOf(tableFullData, row);
|
|
@@ -30729,11 +30759,30 @@ function renderBody(h, $xeTable) {
|
|
|
30729
30759
|
$xeTable.$nextTick(() => {
|
|
30730
30760
|
if (props.loading) {
|
|
30731
30761
|
if (!VxeUILoadingComponent && !this.$scopedSlots.loading) {
|
|
30762
|
+
errLog('vxe.error.errProp', ['loading=true', 'loading=false | <template #loading>...</template>']);
|
|
30732
30763
|
errLog('vxe.error.reqComp', ['vxe-loading']);
|
|
30733
30764
|
}
|
|
30734
30765
|
}
|
|
30735
30766
|
if (props.showOverflow === true || props.showOverflow === 'tooltip' || props.showHeaderOverflow === true || props.showHeaderOverflow === 'tooltip' || props.showFooterOverflow === true || props.showFooterOverflow === 'tooltip' || props.tooltipConfig || props.editRules) {
|
|
30736
30767
|
if (!VxeUITooltipComponent) {
|
|
30768
|
+
if (props.showOverflow === true) {
|
|
30769
|
+
errLog('vxe.error.errProp', ['show-overflow=true', 'show-overflow=title']);
|
|
30770
|
+
}
|
|
30771
|
+
if (props.showOverflow === 'tooltip') {
|
|
30772
|
+
errLog('vxe.error.errProp', ['show-overflow=tooltip', 'show-overflow=title']);
|
|
30773
|
+
}
|
|
30774
|
+
if (props.showHeaderOverflow === true) {
|
|
30775
|
+
errLog('vxe.error.errProp', ['show-header-overflow=true', 'show-header-overflow=title']);
|
|
30776
|
+
}
|
|
30777
|
+
if (props.showHeaderOverflow === 'tooltip') {
|
|
30778
|
+
errLog('vxe.error.errProp', ['show-header-overflow=tooltip', 'show-header-overflow=title']);
|
|
30779
|
+
}
|
|
30780
|
+
if (props.showFooterOverflow === true) {
|
|
30781
|
+
errLog('vxe.error.errProp', ['show-footer-overflow=true', 'show-footer-overflow=title']);
|
|
30782
|
+
}
|
|
30783
|
+
if (props.showFooterOverflow === 'tooltip') {
|
|
30784
|
+
errLog('vxe.error.errProp', ['show-footer-overflow=tooltip', 'show-footer-overflow=title']);
|
|
30785
|
+
}
|
|
30737
30786
|
errLog('vxe.error.reqComp', ['vxe-tooltip']);
|
|
30738
30787
|
}
|
|
30739
30788
|
}
|