feat: Color Theme page UI + color picker + toggle
This commit is contained in:
21
client/js/components/toggle.vue
Normal file
21
client/js/components/toggle.vue
Normal file
@@ -0,0 +1,21 @@
|
||||
<template lang="pug">
|
||||
.toggle(:class='{ "is-active": currentValue }', @click='changeToggle')
|
||||
.toggle-container
|
||||
.toggle-pin
|
||||
.toggle-text {{ desc }}
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'toggle',
|
||||
props: ['currentValue', 'desc'],
|
||||
data () {
|
||||
return { }
|
||||
},
|
||||
methods: {
|
||||
changeToggle() {
|
||||
this.currentValue = !this.currentValue
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
Reference in New Issue
Block a user