mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-05 12:48:04 +08:00
33 lines
989 B
Vue
33 lines
989 B
Vue
<template>
|
|
<div>
|
|
<el-checkbox v-model="checked1" label="Option1" size="large" border />
|
|
<el-checkbox v-model="checked2" label="Option2" size="large" border />
|
|
</div>
|
|
<div class="mt-4">
|
|
<el-checkbox v-model="checked3" label="Option1" border />
|
|
<el-checkbox v-model="checked4" label="Option2" border />
|
|
</div>
|
|
<div class="mt-4">
|
|
<el-checkbox-group v-model="checkboxGroup1" size="small">
|
|
<el-checkbox label="Option1" border />
|
|
<el-checkbox label="Option2" border />
|
|
</el-checkbox-group>
|
|
</div>
|
|
<div class="mt-4">
|
|
<el-checkbox-group v-model="checkboxGroup1" size="small">
|
|
<el-checkbox label="Option1" border disabled />
|
|
<el-checkbox label="Option2" border disabled />
|
|
</el-checkbox-group>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { ref } from 'vue'
|
|
|
|
const checked1 = ref(true)
|
|
const checked2 = ref(false)
|
|
const checked3 = ref(false)
|
|
const checked4 = ref(true)
|
|
const checkboxGroup1 = ref(['Option1'])
|
|
</script>
|