RadioGroup (单选组)

单选组(v-model + options),支持经典 / 卡片变体。

基础用法

Framework
Basic.vue

卡片变体

订阅方案
Card.vue

颜色

primary
secondary
success
warning
danger
Colors.vue

带描述的选项

带描述的选项
Descriptions.vue

方向

水平排列(horizontal)
垂直排列(vertical,默认)
Orientation.vue

禁用

禁用单个选项
整组禁用
Disabled.vue

属性

属性类型默认值说明
modelValue *KunRadioValue
options *readonly KunRadioOption<KunRadioValue>[]
ariaLabelstring""
classNamestring""
colorKunUIColor"primary"
disabledbooleanfalse
errorstring""
hideIndicatorbooleanfalse`card` variant only: drop the radio-dot indicator and signal selection with the tinted border/fill alone (the icon-card look). No effect on classic/pill.
labelstring""
orientationKunRadioOrientation"vertical"
roundedKunUIRounded`card` variant only — it is the only variant with a surface of its own to round. `classic` is a dot plus a label, and `pill` is a pill by definition; both ignore this.
sizeKunUISize"md"
variantKunRadioVariant"classic"

事件

事件回调参数说明
changevalue: KunRadioValue, index: numberThe newly selected value and its index. Not fired for a click on the already-selected option.
update:modelValuevalue: KunRadioValue