File tree Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change 4
4
< meta charset ="UTF-8 ">
5
5
< meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
6
6
< meta http-equiv ="X-UA-Compatible " content ="ie=edge ">
7
+ < meta name ="theme-color " content ="#fff ">
7
8
< title > Demo - Vue DarkMode</ title >
8
9
< script src ="https://cdn.jsdelivr.net/npm/vue "> </ script >
9
10
< script src ="./vue-dark-mode.js "> </ script >
22
23
color : # 42B983 ;
23
24
}
24
25
25
- .sr-only {
26
- position : absolute;
27
- clip : rect (1px , 1px , 1px , 1px );
28
- height : 1px ;
29
- width : 1px ;
30
- margin : -1px ;
31
- overflow : hidden;
32
- padding : 0 ;
33
- }
34
-
35
26
.header {
36
27
width : 100% ;
37
28
padding : 16px 4% ;
73
64
</ h1 >
74
65
< div >
75
66
< vue-dark-mode class ="btn-darkmode ">
76
- < template v-slot ="{ isDark } ">
77
- Dark mode: < span aria-hidden ="true "> {{ isDark ? 'on' : 'off' }}</ span >
67
+ < template v-slot ="{ mode } ">
68
+ Color mode: < span aria-hidden ="true "> {{ mode }}</ span >
78
69
</ template >
79
70
</ vue-dark-mode >
80
71
</ div >
98
89
new Vue ( {
99
90
el : '#app'
100
91
} )
92
+ Vue . config . devtools = true
101
93
</ script >
102
94
</ body >
103
95
</ html >
You can’t perform that action at this time.
0 commit comments