4
2
Fork 0
app/src/components/Picker.vue

38 lines
853 B
Vue
Raw Normal View History

2021-01-08 13:10:28 +00:00
<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> -->
2021-01-08 15:16:47 +00:00
<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" />
2021-01-08 13:10:28 +00:00
</div>
</template>
<script>
2021-01-08 15:16:47 +00:00
import { dispatch } from "vuex";
2021-01-08 13:10:28 +00:00
export default {
2021-01-08 15:16:47 +00:00
data() {
return {
primary: "#55828b",
secondary: "#fed18c",
};
},
methods: {
updatePrimary() {
dispatch("primary", this.primary);
2021-01-08 13:10:28 +00:00
},
2021-01-08 15:16:47 +00:00
updateSecondary() {
dispatch("secondary", this.secondary);
},
},
};
2021-01-08 13:10:28 +00:00
</script>
<style>
</style>