element-plus/docs/examples/checkbox/basic.vue
云游君 5067dd3b70
fix(theme-chalk): upload progress & menu padding style & pagination align (#5011)
* fix: upload progress margin

* fix: menu example style

* fix: picker & radio padding, button form details

* fix(theme-chalk): pagination align
2021-12-29 16:21:29 +08:00

40 lines
1019 B
Vue

<template>
<div>
<el-checkbox v-model="checked1" label="Option 1" size="large"></el-checkbox>
<el-checkbox v-model="checked2" label="Option 2" size="large"></el-checkbox>
</div>
<div>
<el-checkbox v-model="checked3" label="Option 1"></el-checkbox>
<el-checkbox v-model="checked4" label="Option 2"></el-checkbox>
</div>
<div>
<el-checkbox v-model="checked5" label="Option 1" size="small"></el-checkbox>
<el-checkbox v-model="checked6" label="Option 2" size="small"></el-checkbox>
</div>
<div>
<el-checkbox
v-model="checked5"
label="Option 1"
size="small"
disabled
></el-checkbox>
<el-checkbox
v-model="checked6"
label="Option 2"
size="small"
disabled
></el-checkbox>
</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(false)
const checked5 = ref(false)
const checked6 = ref(false)
</script>