-
Notifications
You must be signed in to change notification settings - Fork 48
/
exampleSmallPicker.vue
67 lines (64 loc) · 1.15 KB
/
exampleSmallPicker.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<template>
<div class="example">
<h2>Small picker example</h2>
<div class="row">Override picker styles to make it small</div>
<div class="row row-small-picker">
<Picker
:data="index"
:native="native"
:set="activeSet"
:emojiSize="12"
:perLine="5"
/>
</div>
</div>
</template>
<script>
import { Picker } from '../src'
export default {
props: {
index: {
type: Object,
},
},
data() {
return {
activeSet: 'native',
emoji: 'point_up',
}
},
computed: {
native() {
return this.activeSet == 'native'
},
},
methods: {},
components: {
Picker,
},
}
</script>
<style scoped>
button + button {
margin-left: 0.5em;
}
.row-small-picker >>> .emoji-mart-anchors svg {
width: 9px;
height: 9px;
}
.row-small-picker >>> .emoji-mart-title-label {
font-size: 9px;
}
.row-small-picker >>> .emoji-mart-preview-data {
left: 40px;
font-size: 9px;
}
.row-small-picker >>> .emoji-mart-preview-name {
font-size: 9px;
}
.row-small-picker >>> .emoji-mart-preview-emoji .emoji-type-native {
font-size: 12px;
width: 12px;
height: 12px;
}
</style>