mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-05 12:48:04 +08:00
28 lines
448 B
Vue
28 lines
448 B
Vue
|
<template>
|
||
|
<el-switch
|
||
|
v-model="value1"
|
||
|
active-text="Pay by month"
|
||
|
inactive-text="Pay by year"
|
||
|
>
|
||
|
</el-switch>
|
||
|
<el-switch
|
||
|
v-model="value2"
|
||
|
style="display: block"
|
||
|
active-color="#13ce66"
|
||
|
inactive-color="#ff4949"
|
||
|
active-text="Pay by month"
|
||
|
inactive-text="Pay by year"
|
||
|
/>
|
||
|
</template>
|
||
|
|
||
|
<script lang="ts">
|
||
|
export default {
|
||
|
data() {
|
||
|
return {
|
||
|
value1: true,
|
||
|
value2: true,
|
||
|
}
|
||
|
},
|
||
|
}
|
||
|
</script>
|