Repository navigation
feat: add icon to collapsible - #37566
Merged
Merged
Conversation
Contributor
4 of 19 tasks
Member
|
#37419 (comment) 问题没解,这个需要改 rc-collapse |
Contributor
Author
这个问题在 feature 分支(rc-collapse为3.3.0版本)就出现了,似乎不是添加‘icon’选项带来的? 👀 |
Member
|
react-component/collapse#238 这里引入的,3.4.0 里的问题。 |
afc163
added a commit
to react-component/collapse
that referenced
this pull request
Sep 17, 2022
Member
afc163
added a commit
to react-component/collapse
that referenced
this pull request
Sep 17, 2022
afc163
reviewed
Sep 17, 2022
Member
|
现在出现了一个新的问题,@Sheepeer 看看 https://github.com/ant-design/ant-design/actions/runs/3072589779/jobs/4964204830 |
afc163
reviewed
Sep 19, 2022
| <Panel header="This panel can only be collapsed by clicking icon" key="1"> | ||
| <p>{text}</p> | ||
| </Panel> | ||
| </Collapse> |
Codecov Report
@@ Coverage Diff @@
## feature #37566 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 444 444
Lines 8205 8205
Branches 2415 2415
=========================================
Hits 8205 8205
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
afc163
reviewed
Sep 20, 2022
| | activeKey | 当前激活 tab 面板的 key | string\[] \| string <br/> number\[] \| number | 默认无,accordion 模式下默认第一个元素 | | | ||
| | bordered | 带边框风格的折叠面板 | boolean | true | | | ||
| | collapsible | 所有子面板是否可折叠或指定可折叠触发区域 | `header` \| `disabled` | - | 4.9.0 | | ||
| | collapsible | 所有子面板是否可折叠或指定可折叠触发区域 | `header` \| `icon` \| `disabled` | - | 4.9.0 | |
afc163
reviewed
Sep 20, 2022
| | Property | Description | Type | Default | Version | | ||
| | --- | --- | --- | --- | --- | | ||
| | collapsible | Specify whether the panel be collapsible or the trigger area of collapsible | `header` \| `icon` \| `disabled` | - | 4.9.0 | | ||
| | collapsible | Specify whether the panel be collapsible or the trigger area of collapsible | `header` \| `icon` \| `disabled` | - | 4.24.0 | |
Member
There was a problem hiding this comment.
参考 https://ant.design/components/table-cn/#Table
sticky 属性
Member
Contributor
Author
afc163
approved these changes
Sep 20, 2022
Member
|
@zombieJ 这个 PR 貌似不会上传 argo-ci |
Member
workflow run 不知道为什么拿不到 archive 了,这个之前尝试找了一下还是不行。暂时没有头绪。 |
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.



🤔 This is a ...
🔗 Related issue link
react-component/collapse#232
close #37379
💡 Background and solution
I added 'icon' to rc-collapse's 'collapsible' segment several monthes ago, and the pr had been merged two days ago, since version 3.4.0 was released. So I wanna add this to antd Collapse too.
📝 Changelog
Add choice 'icon' to 'collapsible', which could only be 'header' or 'disabled' for now.
collapsible="icon"to collapse by clicking icon.collapsible="icon"从而支持点击图标展开收起。☑️ Self-Check before Merge