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

[Collapse ] disabled折叠属性建议 #3181

Closed
ZJK01 opened this issue Oct 9, 2024 · 4 comments · Fixed by #3186
Closed

[Collapse ] disabled折叠属性建议 #3181

ZJK01 opened this issue Oct 9, 2024 · 4 comments · Fixed by #3186
Labels
bug Something isn't working enhancement New feature or request

Comments

@ZJK01
Copy link

ZJK01 commented Oct 9, 2024

这个功能解决了什么问题

特定场景下不想折叠面板,希望直接作为固定信息展示区域

你建议的方案是什么

1、产品目前disabled属性定义的是禁止展开,这种场景应该只在某些特定应用场景下才会有吧!(感觉非常小众);产品disabled属性是否可以调整为禁止折叠,或者说根据disabled布尔值处理,如果是true则禁止展开false则禁止折叠

Copy link
Contributor

github-actions bot commented Oct 9, 2024

👋 @ZJK01,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@anlyyao anlyyao added the bug Something isn't working label Oct 9, 2024
@anlyyao
Copy link
Collaborator

anlyyao commented Oct 9, 2024

初步方案可能会是:

  1. 禁用时面板状态保持不变,比如 展开面板+禁用,仍会保留其为展开态
  2. 面板互斥场景,互斥面板不包含禁用面板,比如在包含 展开面板+禁用 时,展开其他面板,被禁用面板仍会保留其为禁用态(第二点待确认)

@anlyyao anlyyao added the enhancement New feature or request label Oct 9, 2024
@ZJK01 ZJK01 closed this as completed Oct 9, 2024
@ZJK01 ZJK01 reopened this Oct 9, 2024
@ZJK01
Copy link
Author

ZJK01 commented Oct 9, 2024

就个人而言的话,第二点以提出的方案感觉就挺好,保持被禁用面板的优先级;但产品可以综合考虑下是否会有其他特殊场景

@anlyyao
Copy link
Collaborator

anlyyao commented Oct 10, 2024

结论:第一点已修复,第二点暂时与pc端同名组件交互保持一致,暂未处理。如果有实际业务场景为 展开面板+禁用+面板互斥 ,可以再重新开贴讨论该场景下的面板优先级问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants