Draft
Conversation
Co-authored-by: Alexzjt <9548248+Alexzjt@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Solve the issue and close #3204
当
columns为自定义列头配置(对象数组)时,行维度按TOTAL_VALUE排序失效。原因是排序逻辑中直接使用includes()和indexOf()检查字段是否存在于rows/columns数组,字符串与对象比较始终返回 false/-1。修改内容
sortByFunc、sortByMethod、createTotalParams、getSortByMeasureValues中的字段检查逻辑handlePivotMetaSort中的行/列字段判断getTotalsConfig中的行字段判断所有修改统一使用
getLeafColumnsWithKey()将自定义列头转换为字符串数组后再进行检查。示例
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.