Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]用户自定义比较函数来判断cell是否可以合并 #804

Closed
godnotking opened this issue Dec 27, 2023 · 0 comments · Fixed by #813
Closed

[Feature]用户自定义比较函数来判断cell是否可以合并 #804

godnotking opened this issue Dec 27, 2023 · 0 comments · Fixed by #813
Assignees
Labels
bp bp

Comments

@godnotking
Copy link

godnotking commented Dec 27, 2023

What problem does this feature solve?

在设置autoMerge的时候,用户可以自定义比较函数来判断cell是否可以合并,自定义复杂类型的相等性

What does the proposed API look like?

{
        "field": "Category",
        "title": "Category",
        "width": "auto",
        "mergeCell": true,
        "mergeEqualFunc":(cellA, cellB)=>{
        return cellA.id === cellB.id
        }
        
    },
@fangsmile fangsmile added the bp bp label Dec 27, 2023
@fangsmile fangsmile self-assigned this Dec 28, 2023
@fangsmile fangsmile linked a pull request Dec 28, 2023 that will close this issue
21 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bp bp
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants