vxe-table 3.17.12 → 3.17.13
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/src/cell.js +29 -6
- package/es/table/src/table.js +15 -1
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +54 -6
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/src/cell.js +37 -3
- package/lib/table/src/cell.min.js +1 -1
- package/lib/table/src/table.js +15 -1
- 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/src/cell.ts +30 -6
- package/packages/table/src/table.ts +16 -1
- /package/es/{iconfont.1755588694607.ttf → iconfont.1755650230246.ttf} +0 -0
- /package/es/{iconfont.1755588694607.woff → iconfont.1755650230246.woff} +0 -0
- /package/es/{iconfont.1755588694607.woff2 → iconfont.1755650230246.woff2} +0 -0
- /package/lib/{iconfont.1755588694607.ttf → iconfont.1755650230246.ttf} +0 -0
- /package/lib/{iconfont.1755588694607.woff → iconfont.1755650230246.woff} +0 -0
- /package/lib/{iconfont.1755588694607.woff2 → iconfont.1755650230246.woff2} +0 -0
package/es/table/src/cell.js
CHANGED
|
@@ -388,9 +388,14 @@ export const Cell = {
|
|
|
388
388
|
groupColumn: (colRest ? colRest.column : null),
|
|
389
389
|
column,
|
|
390
390
|
groupValue: groupContent,
|
|
391
|
-
|
|
391
|
+
childList,
|
|
392
392
|
childCount,
|
|
393
393
|
aggValue: null,
|
|
394
|
+
/**
|
|
395
|
+
* 已废弃
|
|
396
|
+
* @deprecated
|
|
397
|
+
*/
|
|
398
|
+
children: childList,
|
|
394
399
|
/**
|
|
395
400
|
* 已废弃
|
|
396
401
|
* @deprecated
|
|
@@ -398,7 +403,7 @@ export const Cell = {
|
|
|
398
403
|
totalValue: childCount
|
|
399
404
|
};
|
|
400
405
|
if (gcSlot) {
|
|
401
|
-
return renderCellBaseVNs(h, params, $table.callSlot(gcSlot, Object.assign({ groupField, groupContent, childCount }, params), h));
|
|
406
|
+
return renderCellBaseVNs(h, params, $table.callSlot(gcSlot, Object.assign({ groupField, groupContent, childList, childCount }, params), h));
|
|
402
407
|
}
|
|
403
408
|
if (mode === 'column' ? field === aggRow.groupField : rowGroupNode) {
|
|
404
409
|
cellValue = groupContent;
|
|
@@ -1120,10 +1125,14 @@ export const Cell = {
|
|
|
1120
1125
|
return Cell.renderDeepNodeBtn(h, params, Cell.renderCellEdit(h, params));
|
|
1121
1126
|
},
|
|
1122
1127
|
runRenderer(h, params, _vm, isEdit) {
|
|
1123
|
-
const { $table, column } = params;
|
|
1124
|
-
const
|
|
1128
|
+
const { $table, row, column } = params;
|
|
1129
|
+
const tableReactData = $table;
|
|
1130
|
+
const { isRowGroupStatus } = tableReactData;
|
|
1131
|
+
const { slots, field, editRender, formatter } = column;
|
|
1125
1132
|
const compConf = renderer.get(editRender.name);
|
|
1126
1133
|
const rtEdit = compConf ? (compConf.renderTableEdit || compConf.renderEdit) : null;
|
|
1134
|
+
const defaultSlot = slots ? slots.default : null;
|
|
1135
|
+
const gcSlot = slots ? (slots.groupContent || slots['group-content']) : null;
|
|
1127
1136
|
const cellParams = Object.assign({ $type: '', isEdit }, params);
|
|
1128
1137
|
if (isEdit) {
|
|
1129
1138
|
if (slots && slots.edit) {
|
|
@@ -1134,8 +1143,22 @@ export const Cell = {
|
|
|
1134
1143
|
}
|
|
1135
1144
|
return [];
|
|
1136
1145
|
}
|
|
1137
|
-
if (
|
|
1138
|
-
|
|
1146
|
+
if (isRowGroupStatus && field && row.isAggregate) {
|
|
1147
|
+
const aggRow = row;
|
|
1148
|
+
const aggregateOpts = $table.computeAggregateOpts;
|
|
1149
|
+
const { mapChildrenField } = aggregateOpts;
|
|
1150
|
+
const groupField = aggRow.groupField;
|
|
1151
|
+
const groupContent = aggRow.groupContent;
|
|
1152
|
+
const childList = mapChildrenField ? (aggRow[mapChildrenField] || []) : [];
|
|
1153
|
+
const childCount = aggRow.childCount;
|
|
1154
|
+
if (gcSlot) {
|
|
1155
|
+
return renderCellBaseVNs(h, params, $table.callSlot(gcSlot, Object.assign({ groupField, groupContent, childList, childCount }, params), h));
|
|
1156
|
+
}
|
|
1157
|
+
}
|
|
1158
|
+
else {
|
|
1159
|
+
if (defaultSlot) {
|
|
1160
|
+
return renderCellBaseVNs(h, params, $table.callSlot(defaultSlot, cellParams, h));
|
|
1161
|
+
}
|
|
1139
1162
|
}
|
|
1140
1163
|
if (formatter) {
|
|
1141
1164
|
return renderCellBaseVNs(h, params, [
|
package/es/table/src/table.js
CHANGED
|
@@ -1464,6 +1464,12 @@ export default {
|
|
|
1464
1464
|
if (props.resizable) {
|
|
1465
1465
|
warnLog('vxe.error.delProp', ['resizable', 'column-config.resizable']);
|
|
1466
1466
|
}
|
|
1467
|
+
if (props.virtualXConfig && props.scrollX) {
|
|
1468
|
+
warnLog('vxe.error.notSupportProp', ['virtual-x-config', 'scroll-x', 'scroll-x=null']);
|
|
1469
|
+
}
|
|
1470
|
+
if (props.virtualYConfig && props.scrollY) {
|
|
1471
|
+
warnLog('vxe.error.notSupportProp', ['virtual-y-config', 'scroll-y', 'scroll-y=null']);
|
|
1472
|
+
}
|
|
1467
1473
|
// if (props.scrollY) {
|
|
1468
1474
|
// warnLog('vxe.error.delProp', ['scroll-y', 'virtual-y-config'])
|
|
1469
1475
|
// }
|
|
@@ -1550,7 +1556,15 @@ export default {
|
|
|
1550
1556
|
errLog('vxe.error.errConflicts', ['tree-config', 'checkbox-config.isShiftKey']);
|
|
1551
1557
|
}
|
|
1552
1558
|
if (checkboxOpts.halfField) {
|
|
1553
|
-
|
|
1559
|
+
errLog('vxe.error.delProp', ['checkbox-config.halfField', 'checkbox-config.indeterminateField']);
|
|
1560
|
+
}
|
|
1561
|
+
if (treeConfig) {
|
|
1562
|
+
XEUtils.arrayEach(['rowField', 'parentField', 'childrenField', 'hasChildField', 'mapChildrenField'], key => {
|
|
1563
|
+
const val = treeOpts[key];
|
|
1564
|
+
if (val && val.indexOf('.') > -1) {
|
|
1565
|
+
errLog('vxe.error.errProp', [`${key}=${val}`, `${key}=${val.split('.')[0]}`]);
|
|
1566
|
+
}
|
|
1567
|
+
});
|
|
1554
1568
|
}
|
|
1555
1569
|
// 在 v3.0 中废弃 context-menu
|
|
1556
1570
|
if (this.contextMenu) {
|
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.17.
|
|
3237
|
+
const version = "3.17.13";
|
|
3238
3238
|
core_.VxeUI.version = version;
|
|
3239
3239
|
core_.VxeUI.tableVersion = version;
|
|
3240
3240
|
core_.VxeUI.setConfig({
|
|
@@ -3918,7 +3918,7 @@ var es_iterator_map = __webpack_require__(1701);
|
|
|
3918
3918
|
const {
|
|
3919
3919
|
log: log_log
|
|
3920
3920
|
} = core_.VxeUI;
|
|
3921
|
-
const log_version = `table v${"3.17.
|
|
3921
|
+
const log_version = `table v${"3.17.13"}`;
|
|
3922
3922
|
const warnLog = log_log.create('warn', log_version);
|
|
3923
3923
|
const errLog = log_log.create('error', log_version);
|
|
3924
3924
|
;// ./packages/table/src/columnInfo.ts
|
|
@@ -5372,9 +5372,14 @@ const Cell = {
|
|
|
5372
5372
|
groupColumn: colRest ? colRest.column : null,
|
|
5373
5373
|
column,
|
|
5374
5374
|
groupValue: groupContent,
|
|
5375
|
-
|
|
5375
|
+
childList,
|
|
5376
5376
|
childCount,
|
|
5377
5377
|
aggValue: null,
|
|
5378
|
+
/**
|
|
5379
|
+
* 已废弃
|
|
5380
|
+
* @deprecated
|
|
5381
|
+
*/
|
|
5382
|
+
children: childList,
|
|
5378
5383
|
/**
|
|
5379
5384
|
* 已废弃
|
|
5380
5385
|
* @deprecated
|
|
@@ -5385,6 +5390,7 @@ const Cell = {
|
|
|
5385
5390
|
return renderCellBaseVNs(h, params, $table.callSlot(gcSlot, Object.assign({
|
|
5386
5391
|
groupField,
|
|
5387
5392
|
groupContent,
|
|
5393
|
+
childList,
|
|
5388
5394
|
childCount
|
|
5389
5395
|
}, params), h));
|
|
5390
5396
|
}
|
|
@@ -6276,15 +6282,23 @@ const Cell = {
|
|
|
6276
6282
|
runRenderer(h, params, _vm, isEdit) {
|
|
6277
6283
|
const {
|
|
6278
6284
|
$table,
|
|
6285
|
+
row,
|
|
6279
6286
|
column
|
|
6280
6287
|
} = params;
|
|
6288
|
+
const tableReactData = $table;
|
|
6289
|
+
const {
|
|
6290
|
+
isRowGroupStatus
|
|
6291
|
+
} = tableReactData;
|
|
6281
6292
|
const {
|
|
6282
6293
|
slots,
|
|
6294
|
+
field,
|
|
6283
6295
|
editRender,
|
|
6284
6296
|
formatter
|
|
6285
6297
|
} = column;
|
|
6286
6298
|
const compConf = cell_renderer.get(editRender.name);
|
|
6287
6299
|
const rtEdit = compConf ? compConf.renderTableEdit || compConf.renderEdit : null;
|
|
6300
|
+
const defaultSlot = slots ? slots.default : null;
|
|
6301
|
+
const gcSlot = slots ? slots.groupContent || slots['group-content'] : null;
|
|
6288
6302
|
const cellParams = Object.assign({
|
|
6289
6303
|
$type: '',
|
|
6290
6304
|
isEdit
|
|
@@ -6298,8 +6312,28 @@ const Cell = {
|
|
|
6298
6312
|
}
|
|
6299
6313
|
return [];
|
|
6300
6314
|
}
|
|
6301
|
-
if (
|
|
6302
|
-
|
|
6315
|
+
if (isRowGroupStatus && field && row.isAggregate) {
|
|
6316
|
+
const aggRow = row;
|
|
6317
|
+
const aggregateOpts = $table.computeAggregateOpts;
|
|
6318
|
+
const {
|
|
6319
|
+
mapChildrenField
|
|
6320
|
+
} = aggregateOpts;
|
|
6321
|
+
const groupField = aggRow.groupField;
|
|
6322
|
+
const groupContent = aggRow.groupContent;
|
|
6323
|
+
const childList = mapChildrenField ? aggRow[mapChildrenField] || [] : [];
|
|
6324
|
+
const childCount = aggRow.childCount;
|
|
6325
|
+
if (gcSlot) {
|
|
6326
|
+
return renderCellBaseVNs(h, params, $table.callSlot(gcSlot, Object.assign({
|
|
6327
|
+
groupField,
|
|
6328
|
+
groupContent,
|
|
6329
|
+
childList,
|
|
6330
|
+
childCount
|
|
6331
|
+
}, params), h));
|
|
6332
|
+
}
|
|
6333
|
+
} else {
|
|
6334
|
+
if (defaultSlot) {
|
|
6335
|
+
return renderCellBaseVNs(h, params, $table.callSlot(defaultSlot, cellParams, h));
|
|
6336
|
+
}
|
|
6303
6337
|
}
|
|
6304
6338
|
if (formatter) {
|
|
6305
6339
|
return renderCellBaseVNs(h, params, [h('span', {
|
|
@@ -31321,6 +31355,12 @@ function renderBody(h, $xeTable) {
|
|
|
31321
31355
|
if (props.resizable) {
|
|
31322
31356
|
warnLog('vxe.error.delProp', ['resizable', 'column-config.resizable']);
|
|
31323
31357
|
}
|
|
31358
|
+
if (props.virtualXConfig && props.scrollX) {
|
|
31359
|
+
warnLog('vxe.error.notSupportProp', ['virtual-x-config', 'scroll-x', 'scroll-x=null']);
|
|
31360
|
+
}
|
|
31361
|
+
if (props.virtualYConfig && props.scrollY) {
|
|
31362
|
+
warnLog('vxe.error.notSupportProp', ['virtual-y-config', 'scroll-y', 'scroll-y=null']);
|
|
31363
|
+
}
|
|
31324
31364
|
// if (props.scrollY) {
|
|
31325
31365
|
// warnLog('vxe.error.delProp', ['scroll-y', 'virtual-y-config'])
|
|
31326
31366
|
// }
|
|
@@ -31407,7 +31447,15 @@ function renderBody(h, $xeTable) {
|
|
|
31407
31447
|
errLog('vxe.error.errConflicts', ['tree-config', 'checkbox-config.isShiftKey']);
|
|
31408
31448
|
}
|
|
31409
31449
|
if (checkboxOpts.halfField) {
|
|
31410
|
-
|
|
31450
|
+
errLog('vxe.error.delProp', ['checkbox-config.halfField', 'checkbox-config.indeterminateField']);
|
|
31451
|
+
}
|
|
31452
|
+
if (treeConfig) {
|
|
31453
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().arrayEach(['rowField', 'parentField', 'childrenField', 'hasChildField', 'mapChildrenField'], key => {
|
|
31454
|
+
const val = treeOpts[key];
|
|
31455
|
+
if (val && val.indexOf('.') > -1) {
|
|
31456
|
+
errLog('vxe.error.errProp', [`${key}=${val}`, `${key}=${val.split('.')[0]}`]);
|
|
31457
|
+
}
|
|
31458
|
+
});
|
|
31411
31459
|
}
|
|
31412
31460
|
// 在 v3.0 中废弃 context-menu
|
|
31413
31461
|
if (this.contextMenu) {
|