vxe-table 3.16.0-beta.3 → 3.16.0-beta.4
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/locale/lang/ar-EG.js +1 -0
- package/es/locale/lang/de-DE.js +1 -0
- package/es/locale/lang/en-US.js +1 -0
- package/es/locale/lang/es-ES.js +1 -0
- package/es/locale/lang/fr-FR.js +1 -0
- package/es/locale/lang/hu-HU.js +1 -0
- package/es/locale/lang/hy-AM.js +1 -0
- package/es/locale/lang/id-ID.js +1 -0
- package/es/locale/lang/it-IT.js +1 -0
- package/es/locale/lang/ja-JP.js +1 -0
- package/es/locale/lang/ko-KR.js +1 -0
- package/es/locale/lang/ms-MY.js +1 -0
- package/es/locale/lang/nb-NO.js +1 -0
- package/es/locale/lang/pt-BR.js +1 -0
- package/es/locale/lang/ru-RU.js +1 -0
- package/es/locale/lang/th-TH.js +1 -0
- package/es/locale/lang/ug-CN.js +1 -0
- package/es/locale/lang/uk-UA.js +1 -0
- package/es/locale/lang/uz-UZ.js +1 -0
- package/es/locale/lang/vi-VN.js +1 -0
- package/es/locale/lang/zh-CHT.js +1 -0
- package/es/locale/lang/zh-CN.js +1 -0
- package/es/style.css +1 -1
- package/es/table/module/edit/mixin.js +31 -1
- package/es/table/src/body.js +1 -1
- package/es/table/src/footer.js +1 -1
- package/es/table/src/header.js +1 -1
- package/es/table/src/methods.js +17 -4
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +59 -10
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/ar-EG.js +1 -0
- package/lib/locale/lang/ar-EG.min.js +1 -1
- package/lib/locale/lang/ar-EG.umd.js +1 -0
- package/lib/locale/lang/de-DE.js +1 -0
- package/lib/locale/lang/de-DE.min.js +1 -1
- package/lib/locale/lang/de-DE.umd.js +1 -0
- package/lib/locale/lang/en-US.js +1 -0
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +1 -0
- package/lib/locale/lang/es-ES.js +1 -0
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +1 -0
- package/lib/locale/lang/fr-FR.js +1 -0
- package/lib/locale/lang/fr-FR.min.js +1 -1
- package/lib/locale/lang/fr-FR.umd.js +1 -0
- package/lib/locale/lang/hu-HU.js +1 -0
- package/lib/locale/lang/hu-HU.min.js +1 -1
- package/lib/locale/lang/hu-HU.umd.js +1 -0
- package/lib/locale/lang/hy-AM.js +1 -0
- package/lib/locale/lang/hy-AM.min.js +1 -1
- package/lib/locale/lang/hy-AM.umd.js +1 -0
- package/lib/locale/lang/id-ID.js +1 -0
- package/lib/locale/lang/id-ID.min.js +1 -1
- package/lib/locale/lang/id-ID.umd.js +1 -0
- package/lib/locale/lang/it-IT.js +1 -0
- package/lib/locale/lang/it-IT.min.js +1 -1
- package/lib/locale/lang/it-IT.umd.js +1 -0
- package/lib/locale/lang/ja-JP.js +1 -0
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +1 -0
- package/lib/locale/lang/ko-KR.js +1 -0
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +1 -0
- package/lib/locale/lang/ms-MY.js +1 -0
- package/lib/locale/lang/ms-MY.min.js +1 -1
- package/lib/locale/lang/ms-MY.umd.js +1 -0
- package/lib/locale/lang/nb-NO.js +1 -0
- package/lib/locale/lang/nb-NO.min.js +1 -1
- package/lib/locale/lang/nb-NO.umd.js +1 -0
- package/lib/locale/lang/pt-BR.js +1 -0
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +1 -0
- package/lib/locale/lang/ru-RU.js +1 -0
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/ru-RU.umd.js +1 -0
- package/lib/locale/lang/th-TH.js +1 -0
- package/lib/locale/lang/th-TH.min.js +1 -1
- package/lib/locale/lang/th-TH.umd.js +1 -0
- package/lib/locale/lang/ug-CN.js +1 -0
- package/lib/locale/lang/ug-CN.min.js +1 -1
- package/lib/locale/lang/ug-CN.umd.js +1 -0
- package/lib/locale/lang/uk-UA.js +1 -0
- package/lib/locale/lang/uk-UA.min.js +1 -1
- package/lib/locale/lang/uk-UA.umd.js +1 -0
- package/lib/locale/lang/uz-UZ.js +1 -0
- package/lib/locale/lang/uz-UZ.min.js +1 -1
- package/lib/locale/lang/uz-UZ.umd.js +1 -0
- package/lib/locale/lang/vi-VN.js +1 -0
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/vi-VN.umd.js +1 -0
- package/lib/locale/lang/zh-CHT.js +1 -0
- package/lib/locale/lang/zh-CHT.min.js +1 -1
- package/lib/locale/lang/zh-CHT.umd.js +1 -0
- package/lib/locale/lang/zh-CN.js +1 -0
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +1 -0
- package/lib/style.css +1 -1
- package/lib/table/module/edit/mixin.js +30 -1
- package/lib/table/module/edit/mixin.min.js +1 -1
- package/lib/table/src/body.js +1 -1
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/footer.js +1 -1
- package/lib/table/src/footer.min.js +1 -1
- package/lib/table/src/header.js +1 -1
- package/lib/table/src/header.min.js +1 -1
- package/lib/table/src/methods.js +23 -4
- package/lib/table/src/methods.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/locale/lang/ar-EG.ts +1 -0
- package/packages/locale/lang/de-DE.ts +1 -0
- package/packages/locale/lang/en-US.ts +1 -0
- package/packages/locale/lang/es-ES.ts +1 -0
- package/packages/locale/lang/fr-FR.ts +1 -0
- package/packages/locale/lang/hu-HU.ts +1 -0
- package/packages/locale/lang/hy-AM.ts +1 -0
- package/packages/locale/lang/id-ID.ts +1 -0
- package/packages/locale/lang/it-IT.ts +1 -0
- package/packages/locale/lang/ja-JP.ts +1 -0
- package/packages/locale/lang/ko-KR.ts +1 -0
- package/packages/locale/lang/ms-MY.ts +1 -0
- package/packages/locale/lang/nb-NO.ts +1 -0
- package/packages/locale/lang/pt-BR.ts +1 -0
- package/packages/locale/lang/ru-RU.ts +1 -0
- package/packages/locale/lang/th-TH.ts +1 -0
- package/packages/locale/lang/ug-CN.ts +1 -0
- package/packages/locale/lang/uk-UA.ts +1 -0
- package/packages/locale/lang/uz-UZ.ts +1 -0
- package/packages/locale/lang/vi-VN.ts +1 -0
- package/packages/locale/lang/zh-CHT.ts +1 -0
- package/packages/locale/lang/zh-CN.ts +1 -0
- package/packages/table/module/edit/mixin.ts +30 -2
- package/packages/table/src/body.ts +1 -1
- package/packages/table/src/footer.ts +1 -1
- package/packages/table/src/header.ts +1 -1
- package/packages/table/src/methods.ts +17 -4
- /package/es/{iconfont.1751247393221.ttf → iconfont.1751277461257.ttf} +0 -0
- /package/es/{iconfont.1751247393221.woff → iconfont.1751277461257.woff} +0 -0
- /package/es/{iconfont.1751247393221.woff2 → iconfont.1751277461257.woff2} +0 -0
- /package/lib/{iconfont.1751247393221.ttf → iconfont.1751277461257.ttf} +0 -0
- /package/lib/{iconfont.1751247393221.woff → iconfont.1751277461257.woff} +0 -0
- /package/lib/{iconfont.1751247393221.woff2 → iconfont.1751277461257.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,14 @@ 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
|
+
warnLog(getI18n('vxe.error.noGroup', ['remove']));
|
|
116
|
+
// insertGroupRow($xeTable, newRecords, false)
|
|
117
|
+
}
|
|
107
118
|
else {
|
|
108
119
|
newRecords.forEach(item => {
|
|
109
120
|
const rowid = getRowid($xeTable, item);
|
|
@@ -128,6 +139,14 @@ function handleInsertRowAt($xeTable, records, targetRow, isInsertNextRow) {
|
|
|
128
139
|
if (treeConfig && transform) {
|
|
129
140
|
insertTreeRow($xeTable, newRecords, true);
|
|
130
141
|
}
|
|
142
|
+
else if (isRowGroupStatus) {
|
|
143
|
+
// 如果分组
|
|
144
|
+
if (treeConfig) {
|
|
145
|
+
throw new Error(getI18n('vxe.error.noTree', ['insert']));
|
|
146
|
+
}
|
|
147
|
+
warnLog(getI18n('vxe.error.noGroup', ['remove']));
|
|
148
|
+
// insertGroupRow($xeTable, newRecords, true)
|
|
149
|
+
}
|
|
131
150
|
else {
|
|
132
151
|
newRecords.forEach(item => {
|
|
133
152
|
const rowid = getRowid($xeTable, item);
|
|
@@ -192,6 +211,13 @@ function handleInsertRowAt($xeTable, records, targetRow, isInsertNextRow) {
|
|
|
192
211
|
insertTreeRow($xeTable, newRecords, true);
|
|
193
212
|
}
|
|
194
213
|
}
|
|
214
|
+
else if (isRowGroupStatus) {
|
|
215
|
+
// 如果分组
|
|
216
|
+
if (treeConfig) {
|
|
217
|
+
throw new Error(getI18n('vxe.error.noTree', ['insert']));
|
|
218
|
+
}
|
|
219
|
+
warnLog(getI18n('vxe.error.noGroup', ['remove']));
|
|
220
|
+
}
|
|
195
221
|
else {
|
|
196
222
|
if (treeConfig) {
|
|
197
223
|
throw new Error(getI18n('vxe.error.noTree', ['insert']));
|
|
@@ -489,7 +515,7 @@ export default {
|
|
|
489
515
|
const reactData = $xeTable;
|
|
490
516
|
const internalData = $xeTable;
|
|
491
517
|
const { treeConfig } = props;
|
|
492
|
-
const { editStore } = reactData;
|
|
518
|
+
const { editStore, isRowGroupStatus } = reactData;
|
|
493
519
|
const { tableFullTreeData, selectCheckboxMaps, afterFullData, mergeBodyList, tableFullData, pendingRowMaps, insertRowMaps, removeRowMaps } = internalData;
|
|
494
520
|
const checkboxOpts = $xeTable.computeCheckboxOpts;
|
|
495
521
|
const treeOpts = $xeTable.computeTreeOpts;
|
|
@@ -548,6 +574,10 @@ export default {
|
|
|
548
574
|
}
|
|
549
575
|
});
|
|
550
576
|
}
|
|
577
|
+
else if (isRowGroupStatus) {
|
|
578
|
+
// 如果分组
|
|
579
|
+
warnLog(getI18n('vxe.error.noGroup', ['remove']));
|
|
580
|
+
}
|
|
551
581
|
else {
|
|
552
582
|
rows.forEach((row) => {
|
|
553
583
|
const tfIndex = this.findRowIndexOf(tableFullData, row);
|
package/es/table/src/body.js
CHANGED
|
@@ -318,7 +318,7 @@ function renderTdColumn(h, $xeTable, seq, rowid, fixedType, isOptimizeMode, rowL
|
|
|
318
318
|
colid,
|
|
319
319
|
rowid
|
|
320
320
|
},
|
|
321
|
-
class: 'vxe-cell--wrapper'
|
|
321
|
+
class: 'vxe-cell--wrapper vxe-body-cell--wrapper'
|
|
322
322
|
}, column.renderCell(h, cellParams))
|
|
323
323
|
]));
|
|
324
324
|
if (showValidTip && errorValidItem) {
|
package/es/table/src/footer.js
CHANGED
|
@@ -164,7 +164,7 @@ function renderRows(h, _vm, isOptimizeMode, tableColumn, footerTableData, row, $
|
|
|
164
164
|
attrs: {
|
|
165
165
|
colid
|
|
166
166
|
},
|
|
167
|
-
class: 'vxe-cell--wrapper'
|
|
167
|
+
class: 'vxe-cell--wrapper vxe-footer-cell--wrapper'
|
|
168
168
|
}, column.renderFooter(h, cellParams))
|
|
169
169
|
]),
|
|
170
170
|
/**
|
package/es/table/src/header.js
CHANGED
package/es/table/src/methods.js
CHANGED
|
@@ -3419,8 +3419,21 @@ function updateHeight($xeTable) {
|
|
|
3419
3419
|
internalData.customHeight = 300;
|
|
3420
3420
|
}
|
|
3421
3421
|
}
|
|
3422
|
-
function calcColumnAutoWidth(column, wrapperEl) {
|
|
3423
|
-
const
|
|
3422
|
+
function calcColumnAutoWidth($xeTable, column, wrapperEl) {
|
|
3423
|
+
const columnOpts = $xeTable.computeColumnOpts;
|
|
3424
|
+
const { autoOptions } = columnOpts;
|
|
3425
|
+
const { isCalcHeader, isCalcBody, isCalcFooter } = autoOptions || {};
|
|
3426
|
+
const querySelections = [];
|
|
3427
|
+
if (isCalcHeader) {
|
|
3428
|
+
querySelections.push(`.vxe-header-cell--wrapper[colid="${column.id}"]`);
|
|
3429
|
+
}
|
|
3430
|
+
if (isCalcBody) {
|
|
3431
|
+
querySelections.push(`.vxe-body-cell--wrapper[colid="${column.id}"]`);
|
|
3432
|
+
}
|
|
3433
|
+
if (isCalcFooter) {
|
|
3434
|
+
querySelections.push(`.vxe-footer-cell--wrapper[colid="${column.id}"]`);
|
|
3435
|
+
}
|
|
3436
|
+
const cellElemList = querySelections.length ? wrapperEl.querySelectorAll(querySelections.join(',')) : [];
|
|
3424
3437
|
let leftRightPadding = 0;
|
|
3425
3438
|
const firstCellEl = cellElemList[0];
|
|
3426
3439
|
if (firstCellEl && firstCellEl.parentElement) {
|
|
@@ -3444,7 +3457,7 @@ function calcCellWidth($xeTable) {
|
|
|
3444
3457
|
autoWidthColumnList.forEach(column => {
|
|
3445
3458
|
const colid = column.id;
|
|
3446
3459
|
const colRest = fullColumnIdData[colid];
|
|
3447
|
-
const colWidth = calcColumnAutoWidth(column, el);
|
|
3460
|
+
const colWidth = calcColumnAutoWidth($xeTable, column, el);
|
|
3448
3461
|
if (colRest) {
|
|
3449
3462
|
colRest.width = Math.max(colWidth, colRest.width);
|
|
3450
3463
|
}
|
|
@@ -5366,7 +5379,7 @@ const Methods = {
|
|
|
5366
5379
|
const cellParams = Object.assign(params, { cell });
|
|
5367
5380
|
const colMinWidth = getColReMinWidth(cellParams);
|
|
5368
5381
|
el.setAttribute('data-calc-col', 'Y');
|
|
5369
|
-
let resizeWidth = calcColumnAutoWidth(resizeColumn, el);
|
|
5382
|
+
let resizeWidth = calcColumnAutoWidth($xeTable, resizeColumn, el);
|
|
5370
5383
|
el.removeAttribute('data-calc-col');
|
|
5371
5384
|
if (colRest) {
|
|
5372
5385
|
resizeWidth = Math.max(resizeWidth, colRest.width);
|
package/es/ui/index.js
CHANGED
package/es/ui/src/log.js
CHANGED
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.
|
|
2005
|
+
const version = "3.16.0-beta.4";
|
|
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.
|
|
2670
|
+
const log_version = `table v${"3.16.0-beta.4"}`;
|
|
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
|
|
@@ -9252,8 +9252,27 @@ function updateHeight($xeTable) {
|
|
|
9252
9252
|
internalData.customHeight = 300;
|
|
9253
9253
|
}
|
|
9254
9254
|
}
|
|
9255
|
-
function calcColumnAutoWidth(column, wrapperEl) {
|
|
9256
|
-
const
|
|
9255
|
+
function calcColumnAutoWidth($xeTable, column, wrapperEl) {
|
|
9256
|
+
const columnOpts = $xeTable.computeColumnOpts;
|
|
9257
|
+
const {
|
|
9258
|
+
autoOptions
|
|
9259
|
+
} = columnOpts;
|
|
9260
|
+
const {
|
|
9261
|
+
isCalcHeader,
|
|
9262
|
+
isCalcBody,
|
|
9263
|
+
isCalcFooter
|
|
9264
|
+
} = autoOptions || {};
|
|
9265
|
+
const querySelections = [];
|
|
9266
|
+
if (isCalcHeader) {
|
|
9267
|
+
querySelections.push(`.vxe-header-cell--wrapper[colid="${column.id}"]`);
|
|
9268
|
+
}
|
|
9269
|
+
if (isCalcBody) {
|
|
9270
|
+
querySelections.push(`.vxe-body-cell--wrapper[colid="${column.id}"]`);
|
|
9271
|
+
}
|
|
9272
|
+
if (isCalcFooter) {
|
|
9273
|
+
querySelections.push(`.vxe-footer-cell--wrapper[colid="${column.id}"]`);
|
|
9274
|
+
}
|
|
9275
|
+
const cellElemList = querySelections.length ? wrapperEl.querySelectorAll(querySelections.join(',')) : [];
|
|
9257
9276
|
let leftRightPadding = 0;
|
|
9258
9277
|
const firstCellEl = cellElemList[0];
|
|
9259
9278
|
if (firstCellEl && firstCellEl.parentElement) {
|
|
@@ -9279,7 +9298,7 @@ function calcCellWidth($xeTable) {
|
|
|
9279
9298
|
autoWidthColumnList.forEach(column => {
|
|
9280
9299
|
const colid = column.id;
|
|
9281
9300
|
const colRest = fullColumnIdData[colid];
|
|
9282
|
-
const colWidth = calcColumnAutoWidth(column, el);
|
|
9301
|
+
const colWidth = calcColumnAutoWidth($xeTable, column, el);
|
|
9283
9302
|
if (colRest) {
|
|
9284
9303
|
colRest.width = Math.max(colWidth, colRest.width);
|
|
9285
9304
|
}
|
|
@@ -11483,7 +11502,7 @@ const Methods = {
|
|
|
11483
11502
|
});
|
|
11484
11503
|
const colMinWidth = getColReMinWidth(cellParams);
|
|
11485
11504
|
el.setAttribute('data-calc-col', 'Y');
|
|
11486
|
-
let resizeWidth = calcColumnAutoWidth(resizeColumn, el);
|
|
11505
|
+
let resizeWidth = calcColumnAutoWidth($xeTable, resizeColumn, el);
|
|
11487
11506
|
el.removeAttribute('data-calc-col');
|
|
11488
11507
|
if (colRest) {
|
|
11489
11508
|
resizeWidth = Math.max(resizeWidth, colRest.width);
|
|
@@ -17939,7 +17958,7 @@ function renderTdColumn(h, $xeTable, seq, rowid, fixedType, isOptimizeMode, rowL
|
|
|
17939
17958
|
colid,
|
|
17940
17959
|
rowid
|
|
17941
17960
|
},
|
|
17942
|
-
class: 'vxe-cell--wrapper'
|
|
17961
|
+
class: 'vxe-cell--wrapper vxe-body-cell--wrapper'
|
|
17943
17962
|
}, column.renderCell(h, cellParams))]));
|
|
17944
17963
|
if (showValidTip && errorValidItem) {
|
|
17945
17964
|
const errRule = errorValidItem.rule;
|
|
@@ -18698,7 +18717,7 @@ const header_renderRows = (h, _vm, isGroup, isOptimizeMode, cols, $rowIndex) =>
|
|
|
18698
18717
|
attrs: {
|
|
18699
18718
|
colid
|
|
18700
18719
|
},
|
|
18701
|
-
class: 'vxe-cell--wrapper'
|
|
18720
|
+
class: 'vxe-cell--wrapper vxe-header-cell--wrapper'
|
|
18702
18721
|
}, column.renderHeader(h, cellParams))]),
|
|
18703
18722
|
/**
|
|
18704
18723
|
* 列宽拖动
|
|
@@ -19170,7 +19189,7 @@ function footer_renderRows(h, _vm, isOptimizeMode, tableColumn, footerTableData,
|
|
|
19170
19189
|
attrs: {
|
|
19171
19190
|
colid
|
|
19172
19191
|
},
|
|
19173
|
-
class: 'vxe-cell--wrapper'
|
|
19192
|
+
class: 'vxe-cell--wrapper vxe-footer-cell--wrapper'
|
|
19174
19193
|
}, column.renderFooter(h, cellParams))]),
|
|
19175
19194
|
/**
|
|
19176
19195
|
* 列宽拖动
|
|
@@ -23075,6 +23094,8 @@ function insertTreeRow($xeTable, newRecords, isAppend) {
|
|
|
23075
23094
|
}
|
|
23076
23095
|
});
|
|
23077
23096
|
}
|
|
23097
|
+
// function insertGroupRow ($xeTable: VxeTableConstructor & VxeTablePrivateMethods, newRecords: any[], isAppend: boolean) {
|
|
23098
|
+
// }
|
|
23078
23099
|
function handleInsertRowAt($xeTable, records, targetRow, isInsertNextRow) {
|
|
23079
23100
|
const props = $xeTable;
|
|
23080
23101
|
const reactData = $xeTable;
|
|
@@ -23082,6 +23103,9 @@ function handleInsertRowAt($xeTable, records, targetRow, isInsertNextRow) {
|
|
|
23082
23103
|
const {
|
|
23083
23104
|
treeConfig
|
|
23084
23105
|
} = props;
|
|
23106
|
+
const {
|
|
23107
|
+
isRowGroupStatus
|
|
23108
|
+
} = reactData;
|
|
23085
23109
|
const {
|
|
23086
23110
|
tableFullTreeData,
|
|
23087
23111
|
afterFullData,
|
|
@@ -23109,6 +23133,13 @@ function handleInsertRowAt($xeTable, records, targetRow, isInsertNextRow) {
|
|
|
23109
23133
|
// 如果为虚拟树
|
|
23110
23134
|
if (treeConfig && transform) {
|
|
23111
23135
|
insertTreeRow($xeTable, newRecords, false);
|
|
23136
|
+
} else if (isRowGroupStatus) {
|
|
23137
|
+
// 如果分组
|
|
23138
|
+
if (treeConfig) {
|
|
23139
|
+
throw new Error(mixin_getI18n('vxe.error.noTree', ['insert']));
|
|
23140
|
+
}
|
|
23141
|
+
warnLog(mixin_getI18n('vxe.error.noGroup', ['remove']));
|
|
23142
|
+
// insertGroupRow($xeTable, newRecords, false)
|
|
23112
23143
|
} else {
|
|
23113
23144
|
newRecords.forEach(item => {
|
|
23114
23145
|
const rowid = getRowid($xeTable, item);
|
|
@@ -23148,6 +23179,13 @@ function handleInsertRowAt($xeTable, records, targetRow, isInsertNextRow) {
|
|
|
23148
23179
|
// 如果为虚拟树
|
|
23149
23180
|
if (treeConfig && transform) {
|
|
23150
23181
|
insertTreeRow($xeTable, newRecords, true);
|
|
23182
|
+
} else if (isRowGroupStatus) {
|
|
23183
|
+
// 如果分组
|
|
23184
|
+
if (treeConfig) {
|
|
23185
|
+
throw new Error(mixin_getI18n('vxe.error.noTree', ['insert']));
|
|
23186
|
+
}
|
|
23187
|
+
warnLog(mixin_getI18n('vxe.error.noGroup', ['remove']));
|
|
23188
|
+
// insertGroupRow($xeTable, newRecords, true)
|
|
23151
23189
|
} else {
|
|
23152
23190
|
newRecords.forEach(item => {
|
|
23153
23191
|
const rowid = getRowid($xeTable, item);
|
|
@@ -23248,6 +23286,12 @@ function handleInsertRowAt($xeTable, records, targetRow, isInsertNextRow) {
|
|
|
23248
23286
|
warnLog('vxe.error.unableInsert');
|
|
23249
23287
|
insertTreeRow($xeTable, newRecords, true);
|
|
23250
23288
|
}
|
|
23289
|
+
} else if (isRowGroupStatus) {
|
|
23290
|
+
// 如果分组
|
|
23291
|
+
if (treeConfig) {
|
|
23292
|
+
throw new Error(mixin_getI18n('vxe.error.noTree', ['insert']));
|
|
23293
|
+
}
|
|
23294
|
+
warnLog(mixin_getI18n('vxe.error.noGroup', ['remove']));
|
|
23251
23295
|
} else {
|
|
23252
23296
|
if (treeConfig) {
|
|
23253
23297
|
throw new Error(mixin_getI18n('vxe.error.noTree', ['insert']));
|
|
@@ -23594,7 +23638,8 @@ function handleEditCell($xeTable, row, fieldOrColumn, isPos) {
|
|
|
23594
23638
|
treeConfig
|
|
23595
23639
|
} = props;
|
|
23596
23640
|
const {
|
|
23597
|
-
editStore
|
|
23641
|
+
editStore,
|
|
23642
|
+
isRowGroupStatus
|
|
23598
23643
|
} = reactData;
|
|
23599
23644
|
const {
|
|
23600
23645
|
tableFullTreeData,
|
|
@@ -23671,6 +23716,9 @@ function handleEditCell($xeTable, row, fieldOrColumn, isPos) {
|
|
|
23671
23716
|
afterFullData.splice(afIndex, 1);
|
|
23672
23717
|
}
|
|
23673
23718
|
});
|
|
23719
|
+
} else if (isRowGroupStatus) {
|
|
23720
|
+
// 如果分组
|
|
23721
|
+
warnLog(mixin_getI18n('vxe.error.noGroup', ['remove']));
|
|
23674
23722
|
} else {
|
|
23675
23723
|
rows.forEach(row => {
|
|
23676
23724
|
const tfIndex = this.findRowIndexOf(tableFullData, row);
|
|
@@ -34072,6 +34120,7 @@ const Toolbar = VxeToolbar;
|
|
|
34072
34120
|
notCommands: '全局指令 "{0}" 不存在',
|
|
34073
34121
|
notSlot: '插槽 "{0}" 不存在',
|
|
34074
34122
|
noTree: '树结构不支持 "{0}"',
|
|
34123
|
+
noGroup: '数据分组后不支持 "{0}"',
|
|
34075
34124
|
notProp: '不支持的参数 "{0}"',
|
|
34076
34125
|
checkProp: '当数据量过大时可能会导致复选框卡顿,建议设置参数 "{0}" 提升渲染速度',
|
|
34077
34126
|
coverProp: '"{0}" 的参数 "{1}" 重复定义,这可能会出现错误',
|