mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-14 09:20:51 +08:00
fb76382dd1
* feat: switch add size * feat: update * feat: update
24 lines
409 B
Vue
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>
|