# radio ## Instructions 单项选择器,内部由多个 组成。通过把多个 radio 包裹在一个 radio-group 下,实现这些 radio 的单选。 属性说明 单选项目。 ### Syntax - 使用 ``(或 ``,当需要包裹子节点时)。 - 遇到平台差异时,建议使用条件编译(`#ifdef / #endif`)显式处理。 #### Properties See official docs for full properties list: `https://uniapp.dcloud.net.cn/component/radio.html` #### Events | 事件名 | 类型 | 默认值 | 说明 | | --- | --- | --- | --- | | @change | EventHandle | | 中的选中项发生变化时触发 change 事件,event.detail = {value: 选中项radio的value} | #### Platform Compatibility See official docs for platform support table: `https://uniapp.dcloud.net.cn/component/radio.html` ### Examples ### Example (Example 1) ```vue ``` ### Example (Example 2) ```vue ``` ### Example (Example 3) ```vue ``` Reference: [Official Documentation](https://uniapp.dcloud.net.cn/component/radio.html)