Disabled class for switch
This commit is contained in:
parent
db874b6218
commit
fc49277e1d
|
@ -1,6 +1,6 @@
|
||||||
<template src="./templates/SettingSwitch.html"></template>
|
<template src="./templates/SettingSwitch.html"></template>
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
props: ['setting', 'onClick']
|
props: ['setting', 'onClick', 'disabled']
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
|
@ -1,4 +1,4 @@
|
||||||
<div class="bd-setting-switch">
|
<div class="bd-setting-switch" :class="{'bd-disabled': disabled}">
|
||||||
<div class="bd-title">
|
<div class="bd-title">
|
||||||
<h3>{{setting.title || setting.text}}</h3>
|
<h3>{{setting.title || setting.text}}</h3>
|
||||||
<label class="bd-switch-wrapper" @click="onClick">
|
<label class="bd-switch-wrapper" @click="onClick">
|
||||||
|
|
Loading…
Reference in New Issue