const option = {
"records": [
{
"fldKwJwmQw_SUM": "{\"text\":\"256\",\"formatString\":\"\",\"fldKey\":\"fldKwJwmQw_SUM\",\"groupKey\":\"256\"}",
"original": {
"fldKwJwmQw_SUM": {
"value": 256,
"text": "256",
"formatString": "",
"groupKey": "256",
"fldKey": "fldKwJwmQw_SUM"
}
}
},
{
"fldKwJwmQw_SUM": "{\"text\":\"256\",\"formatString\":\"\",\"fldKey\":\"fldKwJwmQw_SUM\",\"groupKey\":\"256\"}",
"original": {
"fldKwJwmQw_SUM": {
"value": 256,
"text": "256",
"formatString": "",
"groupKey": "256",
"fldKey": "fldKwJwmQw_SUM"
}
}
}
],
"rows": [],
"columns": [],
"indicators": [
{
"indicatorKey": "fldKwJwmQw_SUM",
"title": "计数:主订单编号",
"fieldId": "fldKwJwmQw",
"statType": "COUNT",
"width": "auto",
"minWidth": 90
}
],
"dataConfig": {
"aggregationRules": [
{
"indicatorKey": "fldKwJwmQw_SUM",
"field": "fldKwJwmQw_SUM",
"aggregationType": "NONE"
}
],
"sortRules": [
{
"sortField": "fldKwJwmQw",
"sortType": "asc"
}
]
},
"keyboardOptions": {
"copySelected": true
},
"frozenColCount": 0,
"defaultRowHeight": 32,
"corner": {
"titleOnDimension": "row",
"headerStyle": {
"textStick": false
}
},
"widthMode": "autoWidth",
"rowHierarchyIndent": 20,
"rowHierarchyTextStartAlignment": true,
"hideIndicatorName": false,
"limitMaxAutoWidth": 370,
"columnWidthConfig": [
{
"dimensions": [
{
"indicatorKey": "fldKwJwmQw_SUM",
"value": "计数:主订单编号"
// value: "{\"text\":\"256\",\"formatString\":\"\",\"fldKey\":\"fldKwJwmQw_SUM\",\"groupKey\":\"256\"}"
}
],
"width": 100
}
],
"columnWidthConfigForRowHeader": [
{
"dimensions": [
{
"indicatorKey": "fldKwJwmQw_SUM",
"value": "计数:主订单编号"
}
],
"width": 30
}
],
"rowHierarchyType": "grid",
"columnHierarchyType": "grid"
}
tableInstance = new VTable.PivotTable(document.getElementById(CONTAINER_ID), option);
window['tableInstance'] = tableInstance;
- OS:
- Browser:
- Framework:
Version
Link to Minimal Reproduction
Steps to Reproduce
Current Behavior
Expected Behavior
Environment
Any additional comments?
No response