mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-14 01:11:25 +08:00
f3a8856c63
* improvement(theme-chalk): visual enhancement - Add visual enhancement for keyboard nagivation on form items. * Fix linter issue * Fix switch active text issue * Fix bordered radio demo issue
35 lines
1.1 KiB
Vue
35 lines
1.1 KiB
Vue
<template>
|
|
<div class="mb-2 flex items-center text-sm">
|
|
<el-radio-group v-model="radio1" class="ml-4">
|
|
<el-radio label="1" size="large">Option 1</el-radio>
|
|
<el-radio label="2" size="large">Option 2</el-radio>
|
|
</el-radio-group>
|
|
</div>
|
|
<div class="my-2 flex items-center text-sm">
|
|
<el-radio-group v-model="radio2" class="ml-4">
|
|
<el-radio label="1">Option 1</el-radio>
|
|
<el-radio label="2">Option 2</el-radio>
|
|
</el-radio-group>
|
|
</div>
|
|
<div class="my-4 flex items-center text-sm">
|
|
<el-radio-group v-model="radio3" class="ml-4">
|
|
<el-radio label="1" size="small">Option 1</el-radio>
|
|
<el-radio label="2" size="small">Option 2</el-radio>
|
|
</el-radio-group>
|
|
</div>
|
|
<div class="mb-2 flex items-center text-sm">
|
|
<el-radio-group v-model="radio3" disabled class="ml-4">
|
|
<el-radio label="1" size="small">Option 1</el-radio>
|
|
<el-radio label="2" size="small">Option 2</el-radio>
|
|
</el-radio-group>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { ref } from 'vue'
|
|
|
|
const radio1 = ref('1')
|
|
const radio2 = ref('1')
|
|
const radio3 = ref('1')
|
|
</script>
|