4
2
mirror of https://github.com/getbible/app.git synced 2024-12-21 23:48:53 +00:00

added the picker component

This commit is contained in:
Erastus Amunwe 2021-01-08 15:10:28 +02:00
parent f0f69805e4
commit b908a2ddaa

40
src/components/Picker.vue Normal file
View File

@ -0,0 +1,40 @@
<template>
<div>
<!-- <a href="" uk-marker>
<input v-model="primary" type="color" name="" id="">
</a>
<a href="" uk-marker>
<input v-model="secondary" type="color" name="" id="">
</a> -->
<label for="primary">Primary Color: </label>
<input v-model="primary" type="color" name="primary" id="primary">
<br/>
<label for="secondary">Secondary Color: </label>
<input v-model="secondary" type="color" name="secondary" id="secondary">
</div>
</template>
<script>
import {dispatch} from 'vuex'
export default {
data(){
return {
primary: '#55828b',
secondary: '#fed18c'
}
},
methods: {
updatePrimary(){
dispatch('primary', this.primary)
},
updateSecondary(){
dispatch('secondary', this.secondary)
}
}
}
</script>
<style>
</style>