Closed xiaoyatong closed 1 month ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 82.98%. Comparing base (
d623224
) to head (90c5ec2
). Report is 1 commits behind head on next.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
此次更改涉及对Radio
和RadioGroup
组件的多个修改,主要集中在渲染逻辑的重构和类名的动态分配上。renderLabel
和renderButton
函数被重新定义,以提高代码的可读性和可维护性,同时引入了cls
变量以简化主div
元素的类名逻辑。RadioProps
接口也进行了更新,以包含新的属性。这些更改旨在改善组件的组织结构,而不改变其核心功能。
文件路径 | 更改摘要 |
---|---|
src/packages/radio/radio.taro.tsx |
重构Radio 组件的渲染逻辑,更新renderLabel 和renderButton 函数,增加cls 变量以简化类名逻辑。更新RadioProps 接口。 |
src/packages/radio/radio.tsx |
同上 |
src/packages/radiogroup/radiogroup.taro.tsx |
为RadioGroup 组件创建cls 变量以增强可读性,更新renderOptionsChildren 函数的依赖数组。 |
src/packages/radiogroup/radiogroup.tsx |
同上 |
Button
,与Radio
组件在渲染逻辑和类名分配方面的更改相关。size/S
在兔子洞里轻轻跳,
组件更新真美妙。
类名动态如风舞,
渲染逻辑更清晰,
代码整洁心欢喜,
兔子欢呼声不断,
让我们一起欢庆吧!🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
🤔 这个变动的性质是?
🔗 相关 Issue
💡 需求背景和解决方案
☑️ 请求合并前的自查清单
⚠️ 请自检并全部勾选全部选项。⚠️
Summary by CodeRabbit
新特性
Radio
和RadioGroup
组件的渲染逻辑,提升了可读性和维护性。RadioProps
接口新增多个属性,包括disabled
、checked
、defaultChecked
、shape
、labelPosition
、icon
、activeIcon
、value
和onChange
。Bug 修复
文档
重构