4
2
Fork 0

added the picker component

This commit is contained in:
Erastus Amunwe 2021-01-08 15:10:28 +02:00
parent f0f69805e4
commit b908a2ddaa
1 changed files with 40 additions and 0 deletions

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>