breaking(radio): 对齐默认勾选、分割线与文本省略样式 - #1049
Merged
Merged
Conversation
Contributor
Web DemoAPK 下载 |
Open
Member
|
|
RSS1102
force-pushed
the
rss1102/style/radio-miniprogram-alignment
branch
from
August 27, 2026 15:59
5947827 to
3befc1d
Compare
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.

🤔 这个 PR 的性质是?
🔗 相关 Issue
Related: #1027
💡 需求背景和解决方案
Radio 单选框的默认勾选视觉、分割线与文本省略规则调整为组件统一默认样式,并收敛示例分组与文案。
TRadioIconType枚举(dot/check/fill)及TRadio.iconType、TRadioGroup.iconType参数,默认fill:未选中显示边框圆环,选中时显示 TDesign 实心勾选图标(check-circle-filled),check选中时显示勾选图标(check)。TRadio与TRadioGroup的titleMaxLines/subTitleMaxLines默认值调整为 3 / 5,TRadioGroup新增透传这两个配置到默认子项。TRadio与TRadioGroup的showDivider默认值调整为true;显式传入false仍可关闭,卡片模式不绘制分割线。TRadioSize使用 TDesign token 组合三档高度与指示器尺寸,上下留白由目标高度、标题行高和指示器尺寸动态计算;带副标题时内置指示器与主标题行垂直居中;分割线自正文起点开始。相关实现与行为契约见
specs/015-radio-demo-alignment/。📝 更新日志
breaking(radio): 默认选中标记由圆点调整为 TDesign 实心勾选图标,并新增 TRadioIconType 与 TRadio.iconType / TRadioGroup.iconType 参数
breaking(radio): 默认主标题 / 副标题最大行数由 1 行调整为 3 / 5 行,TRadioGroup 新增标题行数与图标样式透传
breaking(radio): TRadio 与 TRadioGroup 默认显示分割线,显式关闭方式保持不变,卡片模式不显示分割线
本条 PR 不需要纳入 Changelog
☑️ 请求合并前的自查清单
type(<scope>?): 修改描述。示例:
fix(TBottomTabBar): 修复 iconText 模式底部溢出