mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-15 01:41:20 +08:00
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>
|