Skip to content

Commit 62241d1

Browse files
committed
Rebuild 1.1.3 + example for v-model
1 parent aa1fba0 commit 62241d1

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

demo/src/App.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,12 @@
3838
<div style="padding-top: 20px;">
3939
<toggle-button
4040
id="changed-font"
41-
:value="false"
41+
v-model="hodor"
4242
:width="220"
4343
:height="40"
4444
:color="{checked: '#BE3D62', unchecked: '#FF877B'}"
4545
:labels="{checked: 'HODOOOR!!!', unchecked: 'Hold the door?'}"/>
46+
{{hodor}}
4647
</div>
4748
</div>
4849
<div class="padding">
@@ -74,7 +75,8 @@ export default {
7475
{color: '#796465', value: false},
7576
{color: '#79BD8F', value: false},
7677
{color: '#00A388', value: false}
77-
]
78+
],
79+
hodor: false
7880
}
7981
},
8082
mounted () {

dist/index.js

Lines changed: 1 addition & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vue-js-toggle-button",
33
"description": "A toggle button component for Vue.js 2+",
4-
"version": "1.1.2",
4+
"version": "1.1.3",
55
"author": "euvl <yev.vlasenko@gmail.com>",
66
"private": false,
77
"scripts": {

0 commit comments

Comments
 (0)