-
Notifications
You must be signed in to change notification settings - Fork 1
/
ColorPickerSample.vue
40 lines (39 loc) · 1.01 KB
/
ColorPickerSample.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<template>
<v-layout wrap align-center justify-center>
<v-flex text-center xs12>
<div class="title-text">Color Picker</div>
<link-buttons
document="https://vuetifyjs.com/en/components/color-pickers"
source="https://github.com/reireias/vuetifier/blob/master/components/ColorPickerSample.vue"
></link-buttons>
</v-flex>
<v-flex text-center xs12 md6>
<center>
<v-color-picker v-model="color1"></v-color-picker>
</center>
</v-flex>
<v-flex text-center xs12 md6>
<center>
<v-color-picker v-model="color2" show-swatches></v-color-picker>
</center>
</v-flex>
</v-layout>
</template>
<script>
import LinkButtons from '@/components/LinkButtons'
export default {
components: {
LinkButtons,
},
data() {
return {
color1: '#ffffff',
color2: '#ffffff',
}
},
mounted() {
this.color1 = this.$vuetify.theme.themes.light.primary
this.color2 = this.$vuetify.theme.themes.light.secondary
},
}
</script>