<template>
<div id="app">
<emui-switch name="12" v-model="active1"></emui-switch>
<emui-switch
name="11"
v-model="active2"
activeColor="red"
inactiveColor="green"
></emui-switch>
</div>
</template>
<script>
export default {
name: "App",
data() {
return {
active1: false,
active2: false,
};
},
};
</script>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24