element-plus/docs/examples/switch/sizes.vue
kooriookami fb76382dd1
feat(components): [el-switch] switch add size prop (#5101)
* feat: switch add size

* feat: update

* feat: update
2022-01-07 15:43:53 +08:00

24 lines
409 B
Vue

<template>
<el-switch
v-model="value"
size="large"
active-text="Open"
inactive-text="Close"
/>
<br />
<el-switch v-model="value" active-text="Open" inactive-text="Close" />
<br />
<el-switch
v-model="value"
size="small"
active-text="Open"
inactive-text="Close"
/>
</template>
<script lang="ts" setup>
import { ref } from 'vue'
const value = ref(true)
</script>