-
Notifications
You must be signed in to change notification settings - Fork 136
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
chore: support collapsable、 remove disabled of panel and headerCollapsableOnly #173
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/react-component/collapse/3rhcouc5f |
Codecov Report
@@ Coverage Diff @@
## master #173 +/- ##
==========================================
+ Coverage 99.02% 99.04% +0.01%
==========================================
Files 4 4
Lines 103 105 +2
Branches 31 32 +1
==========================================
+ Hits 102 104 +2
Misses 1 1
Continue to review full report at Codecov.
|
2591eb7
to
aa2e626
Compare
😝 是 |
#174 合完后有几个冲突要修一下 |
dbbc633
to
53eedcb
Compare
冲突解决了,你看看有没有把哪个属性漏了 |
我在 antd 开一个 branch,我们俩一起搞~ |
API 改动
collapsible
属性,取值为boolean
或'header'
,默认为undefined
即为true
true
时,Panel 的 header 所有区域均可点击触发展开行为false
时,相当于给所有的 Panel 子元素设置了disabled
属性,header 区域不可点击,样式与之前的disabled
时相同header
时,只有点击 Panel 的 header 中的文字区域时才可触发展开行为,点击箭头 icon等不会触发headerCollapsableOnly
属性disabled
属性,使用collapsible=false
代替