Skip to content

Comments

feat: Add optional 'radio'/'checkbox' to SELECT control popup / 为 SELECT 控件弹窗添加视觉样式选项#1321

Open
valeriancure wants to merge 1 commit intoHufe921:mainfrom
valeriancure:feat/multiselect
Open

feat: Add optional 'radio'/'checkbox' to SELECT control popup / 为 SELECT 控件弹窗添加视觉样式选项#1321
valeriancure wants to merge 1 commit intoHufe921:mainfrom
valeriancure:feat/multiselect

Conversation

@valeriancure
Copy link
Contributor

Description / 描述

Add selectStyle property to SELECT control to display checkboxes or radio buttons in the popup, improving
UX clarity.

为 SELECT 控件添加 selectStyle 属性,可在弹窗中显示复选框或单选框,提升用户体验清晰度。

Changes / 变更

  • Add selectStyle?: 'checkbox' | 'radio' property to IControlSelect / 添加 selectStyle?: 'checkbox' | 'radio' 属性到 IControlSelect

  • Update documentation and add test examples / 更新文档并添加测试示例

Examples / 示例

// Checkbox visual + multi-select / 复选框视觉 + 多选
{ selectStyle: 'checkbox', isMultiSelect: true }
Screenshot From 2025-12-03 18-05-06
// Radio visual + single-select / 单选框视觉 + 单选
{ selectStyle: 'radio', isMultiSelect: false }
Screenshot From 2025-12-03 18-05-30

- Add selectStyle property ('checkbox' | 'radio') to IControlSelect interface
- Display checkbox or radio button in popup based on selectStyle
- Behavior controlled independently by isMultiSelect property
- Update documentation (Chinese and English)
- Add test examples: allergies (checkbox multi-select) and blood type (radio single-select)
@Hufe921 Hufe921 force-pushed the main branch 2 times, most recently from 3bbe44b to 2496c30 Compare February 23, 2026 03:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant