element-plus/ssr-testing/cases/checkbox.vue
JeremyWuuuuu 3f72ec5818
test(ssr): add ssr testing cases (#6657)
* test(ssr): add ssr testing cases

- Add cases for backtop, badge, breadcrumb, button, calendar
- Fix a issue which caused backtop not SSR renderable

* Update card, carousel cascader test cases

* Add more cases
2022-03-18 11:56:41 +08:00

30 lines
865 B
Vue

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