Skip to content
On this page

radio 单选组件

Element Plus Radio 组件文档

Hidden Title

基础用法

disabled

通常用法

使用type

多个属性的用法

Slots

属性

属性名说明类型默认值
title左侧标题文案string-
type数据类型,支持 '' / simple / booleanstring''
showType展示形式,支持 radio / buttonstringradio
options单选项列表array[]
border是否显示边框booleanfalse
value选项值字段名string / number / booleanvalue
label选项展示字段名string / number / booleanlabel
itemDisabled单项禁用判断函数function() => {}

说明

  • 组件底层基于 el-radio-group 封装,支持透传原生属性和事件。
  • type="simple" 时会把基础类型数组自动转换为 { label, value }
  • type="boolean" 时会自动生成 true / false 两个选项。