File tree Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -60,12 +60,14 @@ Description:
60
60
<SlackLoginWindow />
61
61
<div class =" typescript" >
62
62
<p > <b >TypeScript: </b > </p >
63
- <label for =" typescript" class =" switch" >
64
- <input class =" switch-input" type =" checkbox" name =" typescript" id =" typescript" :value =" exportAsTypescript" @change =" syncTypescriptFlag" />
65
- <span class =" switch-label" data-on =" On" data-off =" Off" ></span >
66
- <span class =" switch-handle" ></span >
63
+ <label for =" typescript" class =" switch" >
64
+ <input v-if =" this.exportAsTypescript === 'on'" class =" switch-input" type =" checkbox" name =" typescript" id =" typescript" :value =" this.exportAsTypescript" @change =" syncTypescriptFlag" checked />
65
+ <input v-else class =" switch-input" type =" checkbox" name =" typescript" id =" typescript" :value =" this.exportAsTypescript" @change =" syncTypescriptFlag" />
66
+ <span class =" switch-label" :value =" this.exportAsTypescript" data-on =" on" data-off =" off" ></span >
67
+ <span class =" switch-handle" :value =" this.exportAsTypescript" ></span >
67
68
</label >
68
69
</div >
70
+
69
71
</div >
70
72
<i id =" btn" ></i >
71
73
</q-menu >
@@ -230,6 +232,8 @@ export default {
230
232
// this.$emit("redo");
231
233
// },
232
234
syncTypescriptFlag (e ) {
235
+ console .log (" Test" )
236
+ console .log (e .target .value )
233
237
let checkboxValue;
234
238
if (e .target .value === " off" ) {
235
239
checkboxValue = " on" ;
@@ -240,6 +244,13 @@ export default {
240
244
}
241
245
},
242
246
};
247
+
248
+ function check (a ){
249
+ if (a === true ){
250
+ return checked
251
+ }
252
+ return
253
+ }
243
254
</script >
244
255
245
256
<style lang="scss">
You can’t perform that action at this time.
0 commit comments