Skip to content

Commit fa181fc

Browse files
committed
Merge remote-tracking branch 'origin/main' into main
2 parents 4ef02d5 + 9dbab1a commit fa181fc

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import VueToggle from "@vue-toggle-component";
2828
```
2929
### Vue version support
3030

31-
The main v2 version supports Vue 3.x only, for previous versions of Vue, check the following the table.
31+
The main v1 version supports Vue 3.x only, for previous versions of Vue, check the following the table.
3232

3333
| vue Version | vue-toggle-component version |
3434
| ----------- | ---------------------------- |

src/components/VueToggle.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<template>
22
<section class="wrapper" :class="{dark: darkTheme}" :title="title">
33
<input
4-
:id="id"
5-
:name="name"
6-
v-model="toggleState"
7-
class="toggle"
8-
type="checkbox"
9-
@click="toggleState = !toggleState"
4+
:id="id"
5+
:name="name"
6+
v-model="toggleState"
7+
class="toggle"
8+
type="checkbox"
9+
@click="toggleState = !toggleState"
1010
/>
1111
<label :for="id" class="toggler" :style="[toggleState && {'background': activeColor}]"/>
1212
<span class="title" v-text="title" @click="toggleState = !toggleState"/>

0 commit comments

Comments
 (0)