vxe-table 3.18.0-beta.5 → 3.18.0-beta.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/src/cell.js +29 -6
- package/es/table/src/table.js +9 -0
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +48 -5
- 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 +9 -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/src/cell.ts +30 -6
- package/packages/table/src/table.ts +9 -0
- /package/es/{iconfont.1755588944779.ttf → iconfont.1755597272692.ttf} +0 -0
- /package/es/{iconfont.1755588944779.woff → iconfont.1755597272692.woff} +0 -0
- /package/es/{iconfont.1755588944779.woff2 → iconfont.1755597272692.woff2} +0 -0
- /package/lib/{iconfont.1755588944779.ttf → iconfont.1755597272692.ttf} +0 -0
- /package/lib/{iconfont.1755588944779.woff → iconfont.1755597272692.woff} +0 -0
- /package/lib/{iconfont.1755588944779.woff2 → iconfont.1755597272692.woff2} +0 -0
package/es/table/src/cell.js
CHANGED
|
@@ -389,9 +389,14 @@ export const Cell = {
|
|
|
389
389
|
groupColumn: (colRest ? colRest.column : null),
|
|
390
390
|
column,
|
|
391
391
|
groupValue: groupContent,
|
|
392
|
-
|
|
392
|
+
childList,
|
|
393
393
|
childCount,
|
|
394
394
|
aggValue: null,
|
|
395
|
+
/**
|
|
396
|
+
* 已废弃
|
|
397
|
+
* @deprecated
|
|
398
|
+
*/
|
|
399
|
+
children: childList,
|
|
395
400
|
/**
|
|
396
401
|
* 已废弃
|
|
397
402
|
* @deprecated
|
|
@@ -399,7 +404,7 @@ export const Cell = {
|
|
|
399
404
|
totalValue: childCount
|
|
400
405
|
};
|
|
401
406
|
if (gcSlot) {
|
|
402
|
-
return renderCellBaseVNs(h, params, $table.callSlot(gcSlot, Object.assign({ groupField, groupContent, childCount }, params), h));
|
|
407
|
+
return renderCellBaseVNs(h, params, $table.callSlot(gcSlot, Object.assign({ groupField, groupContent, childList, childCount }, params), h));
|
|
403
408
|
}
|
|
404
409
|
if (mode === 'column' ? field === aggRow.groupField : rowGroupNode) {
|
|
405
410
|
cellValue = groupContent;
|
|
@@ -1121,10 +1126,14 @@ export const Cell = {
|
|
|
1121
1126
|
return Cell.renderDeepNodeBtn(h, params, Cell.renderCellEdit(h, params));
|
|
1122
1127
|
},
|
|
1123
1128
|
runRenderer(h, params, _vm, isEdit) {
|
|
1124
|
-
const { $table, column } = params;
|
|
1125
|
-
const
|
|
1129
|
+
const { $table, row, column } = params;
|
|
1130
|
+
const tableReactData = $table;
|
|
1131
|
+
const { isRowGroupStatus } = tableReactData;
|
|
1132
|
+
const { slots, field, editRender, formatter } = column;
|
|
1126
1133
|
const compConf = renderer.get(editRender.name);
|
|
1127
1134
|
const rtEdit = compConf ? (compConf.renderTableEdit || compConf.renderEdit) : null;
|
|
1135
|
+
const defaultSlot = slots ? slots.default : null;
|
|
1136
|
+
const gcSlot = slots ? (slots.groupContent || slots['group-content']) : null;
|
|
1128
1137
|
const cellParams = Object.assign({ $type: '', isEdit }, params);
|
|
1129
1138
|
if (isEdit) {
|
|
1130
1139
|
if (slots && slots.edit) {
|
|
@@ -1135,8 +1144,22 @@ export const Cell = {
|
|
|
1135
1144
|
}
|
|
1136
1145
|
return [];
|
|
1137
1146
|
}
|
|
1138
|
-
if (
|
|
1139
|
-
|
|
1147
|
+
if (isRowGroupStatus && field && row.isAggregate) {
|
|
1148
|
+
const aggRow = row;
|
|
1149
|
+
const aggregateOpts = $table.computeAggregateOpts;
|
|
1150
|
+
const { mapChildrenField } = aggregateOpts;
|
|
1151
|
+
const groupField = aggRow.groupField;
|
|
1152
|
+
const groupContent = aggRow.groupContent;
|
|
1153
|
+
const childList = mapChildrenField ? (aggRow[mapChildrenField] || []) : [];
|
|
1154
|
+
const childCount = aggRow.childCount;
|
|
1155
|
+
if (gcSlot) {
|
|
1156
|
+
return renderCellBaseVNs(h, params, $table.callSlot(gcSlot, Object.assign({ groupField, groupContent, childList, childCount }, params), h));
|
|
1157
|
+
}
|
|
1158
|
+
}
|
|
1159
|
+
else {
|
|
1160
|
+
if (defaultSlot) {
|
|
1161
|
+
return renderCellBaseVNs(h, params, $table.callSlot(defaultSlot, cellParams, h));
|
|
1162
|
+
}
|
|
1140
1163
|
}
|
|
1141
1164
|
if (formatter) {
|
|
1142
1165
|
return renderCellBaseVNs(h, params, [
|
package/es/table/src/table.js
CHANGED
|
@@ -1471,6 +1471,15 @@ export default {
|
|
|
1471
1471
|
if (props.resizable) {
|
|
1472
1472
|
warnLog('vxe.error.delProp', ['resizable', 'column-config.resizable']);
|
|
1473
1473
|
}
|
|
1474
|
+
if (props.virtualXConfig && props.scrollX) {
|
|
1475
|
+
warnLog('vxe.error.notSupportProp', ['virtual-x-config', 'scroll-x', 'scroll-x=null']);
|
|
1476
|
+
}
|
|
1477
|
+
if (props.virtualYConfig && props.scrollY) {
|
|
1478
|
+
warnLog('vxe.error.notSupportProp', ['virtual-y-config', 'scroll-y', 'scroll-y=null']);
|
|
1479
|
+
}
|
|
1480
|
+
if (props.aggregateConfig && props.rowGroupConfig) {
|
|
1481
|
+
warnLog('vxe.error.notSupportProp', ['aggregate-config', 'row-group-config', 'row-group-config=null']);
|
|
1482
|
+
}
|
|
1474
1483
|
// if (props.scrollY) {
|
|
1475
1484
|
// warnLog('vxe.error.delProp', ['scroll-y', 'virtual-y-config'])
|
|
1476
1485
|
// }
|
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.18.0-beta.
|
|
2005
|
+
const version = "3.18.0-beta.6";
|
|
2006
2006
|
core_.VxeUI.version = version;
|
|
2007
2007
|
core_.VxeUI.tableVersion = version;
|
|
2008
2008
|
core_.VxeUI.setConfig({
|
|
@@ -2678,7 +2678,7 @@ function isNodeElement(elem) {
|
|
|
2678
2678
|
const {
|
|
2679
2679
|
log: log_log
|
|
2680
2680
|
} = core_.VxeUI;
|
|
2681
|
-
const log_version = `table v${"3.18.0-beta.
|
|
2681
|
+
const log_version = `table v${"3.18.0-beta.6"}`;
|
|
2682
2682
|
const warnLog = log_log.create('warn', log_version);
|
|
2683
2683
|
const errLog = log_log.create('error', log_version);
|
|
2684
2684
|
;// CONCATENATED MODULE: ./packages/table/src/columnInfo.ts
|
|
@@ -4134,9 +4134,14 @@ const Cell = {
|
|
|
4134
4134
|
groupColumn: colRest ? colRest.column : null,
|
|
4135
4135
|
column,
|
|
4136
4136
|
groupValue: groupContent,
|
|
4137
|
-
|
|
4137
|
+
childList,
|
|
4138
4138
|
childCount,
|
|
4139
4139
|
aggValue: null,
|
|
4140
|
+
/**
|
|
4141
|
+
* 已废弃
|
|
4142
|
+
* @deprecated
|
|
4143
|
+
*/
|
|
4144
|
+
children: childList,
|
|
4140
4145
|
/**
|
|
4141
4146
|
* 已废弃
|
|
4142
4147
|
* @deprecated
|
|
@@ -4147,6 +4152,7 @@ const Cell = {
|
|
|
4147
4152
|
return renderCellBaseVNs(h, params, $table.callSlot(gcSlot, Object.assign({
|
|
4148
4153
|
groupField,
|
|
4149
4154
|
groupContent,
|
|
4155
|
+
childList,
|
|
4150
4156
|
childCount
|
|
4151
4157
|
}, params), h));
|
|
4152
4158
|
}
|
|
@@ -5038,15 +5044,23 @@ const Cell = {
|
|
|
5038
5044
|
runRenderer(h, params, _vm, isEdit) {
|
|
5039
5045
|
const {
|
|
5040
5046
|
$table,
|
|
5047
|
+
row,
|
|
5041
5048
|
column
|
|
5042
5049
|
} = params;
|
|
5050
|
+
const tableReactData = $table;
|
|
5051
|
+
const {
|
|
5052
|
+
isRowGroupStatus
|
|
5053
|
+
} = tableReactData;
|
|
5043
5054
|
const {
|
|
5044
5055
|
slots,
|
|
5056
|
+
field,
|
|
5045
5057
|
editRender,
|
|
5046
5058
|
formatter
|
|
5047
5059
|
} = column;
|
|
5048
5060
|
const compConf = cell_renderer.get(editRender.name);
|
|
5049
5061
|
const rtEdit = compConf ? compConf.renderTableEdit || compConf.renderEdit : null;
|
|
5062
|
+
const defaultSlot = slots ? slots.default : null;
|
|
5063
|
+
const gcSlot = slots ? slots.groupContent || slots['group-content'] : null;
|
|
5050
5064
|
const cellParams = Object.assign({
|
|
5051
5065
|
$type: '',
|
|
5052
5066
|
isEdit
|
|
@@ -5060,8 +5074,28 @@ const Cell = {
|
|
|
5060
5074
|
}
|
|
5061
5075
|
return [];
|
|
5062
5076
|
}
|
|
5063
|
-
if (
|
|
5064
|
-
|
|
5077
|
+
if (isRowGroupStatus && field && row.isAggregate) {
|
|
5078
|
+
const aggRow = row;
|
|
5079
|
+
const aggregateOpts = $table.computeAggregateOpts;
|
|
5080
|
+
const {
|
|
5081
|
+
mapChildrenField
|
|
5082
|
+
} = aggregateOpts;
|
|
5083
|
+
const groupField = aggRow.groupField;
|
|
5084
|
+
const groupContent = aggRow.groupContent;
|
|
5085
|
+
const childList = mapChildrenField ? aggRow[mapChildrenField] || [] : [];
|
|
5086
|
+
const childCount = aggRow.childCount;
|
|
5087
|
+
if (gcSlot) {
|
|
5088
|
+
return renderCellBaseVNs(h, params, $table.callSlot(gcSlot, Object.assign({
|
|
5089
|
+
groupField,
|
|
5090
|
+
groupContent,
|
|
5091
|
+
childList,
|
|
5092
|
+
childCount
|
|
5093
|
+
}, params), h));
|
|
5094
|
+
}
|
|
5095
|
+
} else {
|
|
5096
|
+
if (defaultSlot) {
|
|
5097
|
+
return renderCellBaseVNs(h, params, $table.callSlot(defaultSlot, cellParams, h));
|
|
5098
|
+
}
|
|
5065
5099
|
}
|
|
5066
5100
|
if (formatter) {
|
|
5067
5101
|
return renderCellBaseVNs(h, params, [h('span', {
|
|
@@ -30189,6 +30223,15 @@ function renderBody(h, $xeTable) {
|
|
|
30189
30223
|
if (props.resizable) {
|
|
30190
30224
|
warnLog('vxe.error.delProp', ['resizable', 'column-config.resizable']);
|
|
30191
30225
|
}
|
|
30226
|
+
if (props.virtualXConfig && props.scrollX) {
|
|
30227
|
+
warnLog('vxe.error.notSupportProp', ['virtual-x-config', 'scroll-x', 'scroll-x=null']);
|
|
30228
|
+
}
|
|
30229
|
+
if (props.virtualYConfig && props.scrollY) {
|
|
30230
|
+
warnLog('vxe.error.notSupportProp', ['virtual-y-config', 'scroll-y', 'scroll-y=null']);
|
|
30231
|
+
}
|
|
30232
|
+
if (props.aggregateConfig && props.rowGroupConfig) {
|
|
30233
|
+
warnLog('vxe.error.notSupportProp', ['aggregate-config', 'row-group-config', 'row-group-config=null']);
|
|
30234
|
+
}
|
|
30192
30235
|
// if (props.scrollY) {
|
|
30193
30236
|
// warnLog('vxe.error.delProp', ['scroll-y', 'virtual-y-config'])
|
|
30194
30237
|
// }
|