🏷 S2 Version / S2 版本
| Package |
Version |
| @antv/s2 |
* |
| @antv/s2-react |
|
| @antv/s2-react-components |
|
💻 Sheet Type / 表格类型
🖋 Describe the bug / 问题描述
当使用透视表的自定义列头的时候,行维度根据TOTAL_VALUE的排序失效
⌨️ Code Snapshots / 代码片段
{
fields: {
"columns": [
{
"field": "所有量值[实际销售数量]",
"title": "实际销售数量",
"description": "实际销售数量",
"express": {
"measure": {
"property": "实际销售数量",
"expression": {
"string": {
"value": "所有量值"
}
}
}
}
}
],
"rows": [
"商品大类",
"品牌",
"商品年份"
],
"values": [
"所有量值[实际销售数量]"
],
"valueInCols": true
},
[
{
"sortFieldId": "商品大类",
"sortByMeasure": "$$total$$",
"sortMethod": "desc",
"query": {
"$$extra$$": "所有量值[实际销售数量]"
}
},
{
"sortFieldId": "品牌",
"sortByMeasure": "$$total$$",
"sortMethod": "desc",
"query": {
"$$extra$$": "所有量值[实际销售数量]"
}
},
{
"sortFieldId": "商品年份",
"sortByMeasure": "$$total$$",
"sortMethod": "desc",
"query": {
"$$extra$$": "所有量值[实际销售数量]"
}
}
]
}
这是字段配置和相关的排序设置
🔗 Reproduction link / 复现链接
No response
📋 Steps to Reproduce the Bug or Issue / 重现步骤
,
只要是透视表自定义列头,外加行维度超过一个就能复现
😊 Expected Behavior / 期望行为

预期是像图片所示,当行有多个维度时,外侧维度根据设置按汇总数据排序
😅 Current Behavior / 当前行为
No response
💻 OS / 操作系统
🌏 Browser / 浏览器
🏷 S2 Version / S2 版本
💻 Sheet Type / 表格类型
🖋 Describe the bug / 问题描述
当使用透视表的自定义列头的时候,行维度根据TOTAL_VALUE的排序失效
⌨️ Code Snapshots / 代码片段
这是字段配置和相关的排序设置
🔗 Reproduction link / 复现链接
No response
📋 Steps to Reproduce the Bug or Issue / 重现步骤
只要是透视表自定义列头,外加行维度超过一个就能复现
😊 Expected Behavior / 期望行为
😅 Current Behavior / 当前行为
No response
💻 OS / 操作系统
🌏 Browser / 浏览器