File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change 11<template >
2- <label role =" checkbox"
3- :class =" className"
4- :aria-checked =" ariaChecked" >
2+ <label :class =" className" >
53 <input type =" checkbox"
64 class =" v-switch-input"
75 :name =" name"
@@ -70,7 +68,7 @@ export default {
7068 type: [String , Object ],
7169 validator (value ) {
7270 return typeof value === ' object'
73- ? (value .checked || value .unchecked )
71+ ? (value .checked || value .unchecked || value . disabled )
7472 : typeof value === ' string'
7573 }
7674 },
@@ -111,10 +109,6 @@ export default {
111109 return [' vue-js-switch' , { toggled, disabled }]
112110 },
113111
114- ariaChecked () {
115- return this .toggled .toString ()
116- },
117-
118112 coreStyle () {
119113 return {
120114 width: px (this .width ),
@@ -265,7 +259,10 @@ $margin: 3px;
265259 cursor : pointer ;
266260
267261 .v-switch-input {
268- display : none ;
262+ opacity : 0 ;
263+ position : absolute ;
264+ width : 1px ;
265+ height : 1px ;
269266 }
270267
271268 .v-switch-label {
You can’t perform that action at this time.
0 commit comments