feat(components): [el-switch] switch add size prop (#5101)

* feat: switch add size

* feat: update

* feat: update
This commit is contained in:
kooriookami
2022-01-07 15:43:53 +08:00
committed by GitHub
parent 9e53873742
commit fb76382dd1
7 changed files with 122 additions and 28 deletions

View File

@@ -0,0 +1,23 @@
<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>