element-plus/docs/examples/checkbox/with-border.vue
2022-03-13 16:16:11 -04:00

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>