mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-05 04:37:47 +08:00
43 lines
773 B
Vue
43 lines
773 B
Vue
<template>
|
|
<el-switch
|
|
v-model="value1"
|
|
class="mb-2"
|
|
active-text="Pay by month"
|
|
inactive-text="Pay by year"
|
|
/>
|
|
<br />
|
|
<el-switch
|
|
v-model="value2"
|
|
class="mb-2"
|
|
active-color="#13ce66"
|
|
inactive-color="#ff4949"
|
|
active-text="Pay by month"
|
|
inactive-text="Pay by year"
|
|
/>
|
|
<br />
|
|
<el-switch
|
|
v-model="value3"
|
|
inline-prompt
|
|
active-text="是"
|
|
inactive-text="否"
|
|
/>
|
|
<el-switch
|
|
v-model="value4"
|
|
class="ml-2"
|
|
inline-prompt
|
|
active-color="#13ce66"
|
|
inactive-color="#ff4949"
|
|
active-text="Y"
|
|
inactive-text="N"
|
|
/>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { ref } from 'vue'
|
|
|
|
const value1 = ref(true)
|
|
const value2 = ref(true)
|
|
const value3 = ref(true)
|
|
const value4 = ref(true)
|
|
</script>
|