Closed kerm1it closed 3 years ago
This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.
🔍 Inspect: https://vercel.com/react-component/collapse/3rhcouc5f
✅ Preview: https://collapse-git-feat-collapsable.react-component.vercel.app
Merging #173 (53eedcb) into master (6b3502b) will increase coverage by
0.01%
. The diff coverage is100.00%
.
@@ 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
Impacted Files | Coverage Δ | |
---|---|---|
src/Collapse.tsx | 100.00% <100.00%> (ø) |
|
src/Panel.tsx | 96.77% <100.00%> (+0.10%) |
:arrow_up: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 6b3502b...53eedcb. Read the comment docs.
😝 是 collapsible
啦~
冲突解决了,你看看有没有把哪个属性漏了
+ rc-collapse@3.0.0
我在 antd 开一个 branch,我们俩一起搞~
API 改动
collapsible
属性,取值为boolean
或'header'
,默认为undefined
即为true
true
时,Panel 的 header 所有区域均可点击触发展开行为false
时,相当于给所有的 Panel 子元素设置了disabled
属性,header 区域不可点击,样式与之前的disabled
时相同header
时,只有点击 Panel 的 header 中的文字区域时才可触发展开行为,点击箭头 icon等不会触发headerCollapsableOnly
属性disabled
属性,使用collapsible=false
代替