feat(checkbox): support button style variant - #6788
Open
LiamFan16-mikasa wants to merge 3 commits into
Open
Conversation
LiamFan16-mikasa
requested review from
Cat1007,
PengYYYYY,
Wesley-0808,
chaishi,
liweijie0812,
uyarn,
zhangpaopao0609 and
zydemail
as code owners
July 7, 2026 09:32
16 tasks
Collaborator
|
/update-common 2618 |
Collaborator
TDesign Component Site Preview Open
|
commit: |
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 to Tencent/tdesign-common#2562
样式实现见 Tencent/tdesign-common#2618
💡 需求背景和解决方案
背景:在 CRM / OA 等后台管理系统中,管理员常需要一次性勾选十几个权限项。传统 Checkbox 列表存在几个痛点:
方案:对齐
RadioGroup已有的 button 风格能力,为CheckboxGroup新增variant/direction属性,透出公共样式层(Tencent/tdesign-common#2618)定义的按钮风格 class,选中项深色描边/填充突出,未选中项浅色描边或透明背景。亮点
RadioGroup按钮风格逻辑对齐,复用同一套设计语言框架侧改动:
props.ts/type.ts新增variant/direction定义,group.tsx/checkbox.tsx渲染逻辑透出对应 class,补充 3 个 demo、API 文档中英文、_usage/props.json、单元测试。效果预览
📝 更新日志
tdesign-vue-next
variant/direction属性,支持按钮风格(outline/default-filled/primary-filled)与横向/纵向排列@tdesign-vue-next/chat
@tdesign-vue-next/nuxt
@tdesign-vue-next/auto-import-resolver
☑️ 请求合并前的自查清单