mirror of
https://github.com/element-plus/element-plus.git
synced 2024-11-27 02:01:15 +08:00
3ca4473aeb
* feat(components): [checkbox & radio] Use value instead of label * feat(components): update * feat(components): update * feat(components): update * feat(components): update * feat(components): update * feat(components): update test * feat(components): true-value false-value * feat(components): update
36 lines
1.0 KiB
Vue
36 lines
1.0 KiB
Vue
<template>
|
|
<div>
|
|
<el-radio-group v-model="radio1">
|
|
<el-radio value="1" size="large" border>Option A</el-radio>
|
|
<el-radio value="2" size="large" border>Option B</el-radio>
|
|
</el-radio-group>
|
|
</div>
|
|
<div style="margin-top: 20px">
|
|
<el-radio-group v-model="radio2">
|
|
<el-radio value="1" border>Option A</el-radio>
|
|
<el-radio value="2" border>Option B</el-radio>
|
|
</el-radio-group>
|
|
</div>
|
|
<div style="margin-top: 20px">
|
|
<el-radio-group v-model="radio3" size="small">
|
|
<el-radio value="1" border>Option A</el-radio>
|
|
<el-radio value="2" border disabled>Option B</el-radio>
|
|
</el-radio-group>
|
|
</div>
|
|
<div style="margin-top: 20px">
|
|
<el-radio-group v-model="radio4" size="small" disabled>
|
|
<el-radio value="1" border>Option A</el-radio>
|
|
<el-radio value="2" border>Option B</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')
|
|
const radio4 = ref('1')
|
|
</script>
|