mirror of
https://github.com/element-plus/element-plus.git
synced 2025-12-19 09:09:40 +08:00
26 lines
407 B
Vue
26 lines
407 B
Vue
<template>
|
|
<el-radio-group v-model="radio" :options="options" :props="props" />
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { ref } from 'vue'
|
|
|
|
const radio = ref(3)
|
|
const props = { value: 'id', label: 'name', disabled: 'unable' }
|
|
const options = [
|
|
{
|
|
id: 3,
|
|
name: 'Option A',
|
|
},
|
|
{
|
|
id: 6,
|
|
name: 'Option B',
|
|
},
|
|
{
|
|
id: 9,
|
|
name: 'Option C',
|
|
unable: true,
|
|
},
|
|
]
|
|
</script>
|