mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-12 12:25:22 +08:00
35 lines
1023 B
Vue
35 lines
1023 B
Vue
<template>
|
|
<div>
|
|
<el-radio-group v-model="radio1" size="large">
|
|
<el-radio-button label="New York" />
|
|
<el-radio-button label="Washington" />
|
|
<el-radio-button label="Los Angeles" />
|
|
<el-radio-button label="Chicago" />
|
|
</el-radio-group>
|
|
</div>
|
|
<div style="margin-top: 20px">
|
|
<el-radio-group v-model="radio2">
|
|
<el-radio-button label="New York" />
|
|
<el-radio-button label="Washington" />
|
|
<el-radio-button label="Los Angeles" />
|
|
<el-radio-button label="Chicago" />
|
|
</el-radio-group>
|
|
</div>
|
|
<div style="margin-top: 20px">
|
|
<el-radio-group v-model="radio3" size="small">
|
|
<el-radio-button label="New York" />
|
|
<el-radio-button label="Washington" disabled />
|
|
<el-radio-button label="Los Angeles" />
|
|
<el-radio-button label="Chicago" />
|
|
</el-radio-group>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { ref } from 'vue'
|
|
|
|
const radio1 = ref('New York')
|
|
const radio2 = ref('New York')
|
|
const radio3 = ref('New York')
|
|
</script>
|