mirror of
https://github.com/element-plus/element-plus.git
synced 2025-08-14 18:11:48 +08:00

* 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
20 lines
562 B
Vue
20 lines
562 B
Vue
<template>
|
|
<el-checkbox-group v-model="checkList">
|
|
<el-checkbox label="Option A" value="Value A" />
|
|
<el-checkbox label="Option B" value="Value B" />
|
|
<el-checkbox label="Option C" value="Value C" />
|
|
<el-checkbox label="disabled" value="Value disabled" disabled />
|
|
<el-checkbox
|
|
label="selected and disabled"
|
|
value="Value selected and disabled"
|
|
disabled
|
|
/>
|
|
</el-checkbox-group>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { ref } from 'vue'
|
|
|
|
const checkList = ref(['Value selected and disabled', 'Value A'])
|
|
</script>
|