-
Notifications
You must be signed in to change notification settings - Fork 48
/
exampleQDialog.vue
57 lines (52 loc) · 1.08 KB
/
exampleQDialog.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
<template>
<div class="example">
<h2>QDialog Example</h2>
<div class="row">Show Picker in the popup QDialog from Quasar.</div>
<div class="row">
<q-btn label="Open QDialog" @click="emojiPickerDialog = true" />
</div>
<q-dialog v-model="emojiPickerDialog">
<template v-slot:body style="height: 450px">
<picker :data="index" :emojiSize="24" :native="true"></picker>
</template>
</q-dialog>
</div>
</template>
<script>
import { Picker } from '../src'
import { QBtn, QDialog } from 'quasar-framework/dist/quasar.mat.esm'
export default {
props: {
index: {
type: Object,
},
},
data() {
return {
emojiPickerDialog: false,
}
},
components: {
Picker,
QBtn,
QDialog,
},
}
</script>
<style scoped>
.modal {
color: red;
}
/**
* See https://vue-loader.vuejs.org/guide/scoped-css.html#deep-selectors
* the `>>>` allows to apply scoped css to child element that is generated
* dynamically
**/
.modal >>> .modal-scroll {
color: red;
max-height: none;
}
.modal .modal-body {
max-height: none;
}
</style>