Skip to content

Commit 33c1d05

Browse files
committed
chore: update examples
1 parent 4e911f2 commit 33c1d05

26 files changed

+198
-68
lines changed

demo/quasar.conf.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ module.exports = function (ctx) {
5151
'QTabs',
5252
'QTab',
5353
'QTabPanels',
54-
'QTabPanel'
54+
'QTabPanel',
55+
'QTooltip'
5556
],
5657

5758
directives: [

demo/src/components/IconCard.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
:selectedColor="selectedColor"
2222
:selectedBackground-color="selectedBackgroundColor"
2323
:font-size="fontSize"
24+
:pagination.sync="pagination"
2425
style="height: 300px;"
2526
/>
2627
</q-card-section>
@@ -34,7 +35,7 @@ export default {
3435
data () {
3536
return {
3637
value: '',
37-
name: '',
38+
name: 'material-icons',
3839
filter: '',
3940
iconSets: [
4041
{ label: 'Eva Icons', value: 'eva-icons' },
@@ -57,7 +58,8 @@ export default {
5758
fontSize: {
5859
type: String,
5960
default: 'inherit'
60-
}
61+
},
62+
pagination: Object
6163
},
6264
6365
mounted () {

demo/src/components/examples/Color.vue

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@
3939
icon-set="material-icons"
4040
color="green-8"
4141
background-color="yellow-8"
42-
style="height: 400px;"
42+
:pagination.sync="pagination"
43+
style="height: 220px;"
4344
/>
4445

4546
</div>
@@ -55,7 +56,11 @@ export default {
5556
tab: 'template',
5657
template: template,
5758
script: script,
58-
value: ''
59+
value: '',
60+
pagination: {
61+
itemsPerPage: 60,
62+
page: 0
63+
}
5964
}
6065
}
6166
}

demo/src/components/examples/CustomIconSet.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<q-icon-picker
4141
v-model="value"
4242
:icons="icons"
43-
style="height: 400px;"
43+
style="height: 100px;"
4444
/>
4545

4646
</div>
@@ -64,7 +64,11 @@ export default {
6464
{ name: 'eva-camera' },
6565
{ name: 'mdi-camera' },
6666
{ name: 'ti-camera' }
67-
]
67+
],
68+
pagination: {
69+
itemsPerPage: 60,
70+
page: 0
71+
}
6872
}
6973
}
7074
}

demo/src/components/examples/Default.vue

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@
3636
<q-icon-picker
3737
v-model="value"
3838
icon-set="material-icons"
39-
style="height: 400px;"
39+
:pagination.sync="pagination"
40+
style="height: 220px;"
4041
/>
4142

4243
</div>
@@ -52,7 +53,11 @@ export default {
5253
tab: 'template',
5354
template: template,
5455
script: script,
55-
value: ''
56+
value: '',
57+
pagination: {
58+
itemsPerPage: 60,
59+
page: 0
60+
}
5661
}
5762
}
5863
}

demo/src/components/examples/Filter.vue

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@
3939
v-model="value"
4040
icon-set="material-icons"
4141
:filter="filter"
42-
style="height: 400px;"
42+
:pagination.sync="pagination"
43+
style="height: 220px;"
4344
/>
4445

4546
</div>
@@ -56,7 +57,11 @@ export default {
5657
template: template,
5758
script: script,
5859
value: '',
59-
filter: ''
60+
filter: '',
61+
pagination: {
62+
itemsPerPage: 60,
63+
page: 0
64+
}
6065
}
6166
}
6267
}

demo/src/components/examples/SelectedColor.vue

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@
3939
icon-set="material-icons"
4040
selected-color="green-8"
4141
selected-background-color="yellow-8"
42-
style="height: 400px;"
42+
:pagination.sync="pagination"
43+
style="height: 220px;"
4344
/>
4445

4546
</div>
@@ -55,7 +56,11 @@ export default {
5556
tab: 'template',
5657
template: template,
5758
script: script,
58-
value: ''
59+
value: '',
60+
pagination: {
61+
itemsPerPage: 60,
62+
page: 0
63+
}
5964
}
6065
}
6166
}

demo/src/components/examples/Size.vue

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
v-model="value"
3838
icon-set="material-icons"
3939
font-size="30px"
40-
style="height: 400px;"
40+
:pagination.sync="pagination"
41+
style="height: 360px;"
4142
/>
4243

4344
</div>
@@ -53,7 +54,11 @@ export default {
5354
tab: 'template',
5455
template: template,
5556
script: script,
56-
value: ''
57+
value: '',
58+
pagination: {
59+
itemsPerPage: 32,
60+
page: 0
61+
}
5762
}
5863
}
5964
}

demo/src/components/examples/Tooltips.vue

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@
3838
v-model="value"
3939
icon-set="material-icons"
4040
tooltips
41-
style="height: 400px;"
41+
:pagination.sync="pagination"
42+
style="height: 220px;"
4243
/>
4344

4445
</div>
@@ -54,7 +55,11 @@ export default {
5455
tab: 'template',
5556
template: template,
5657
script: script,
57-
value: ''
58+
value: '',
59+
pagination: {
60+
itemsPerPage: 60,
61+
page: 0
62+
}
5863
}
5964
}
6065
}

demo/src/components/examples/UsingIconSlot.vue

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,16 @@
3636
<q-icon-picker
3737
v-model="value"
3838
icon-set="material-icons"
39+
:pagination.sync="pagination"
3940
style="height: 400px;"
4041
>
4142
<template #icon="name">
4243
<q-btn
4344
:label="name"
4445
:icon="name"
4546
no-caps
46-
class="q-ma-xs"
47+
align="left"
48+
class="q-ma-xs full-width"
4749
/>
4850
</template>
4951
</q-icon-picker>
@@ -61,7 +63,11 @@ export default {
6163
tab: 'template',
6264
template: template,
6365
script: script,
64-
value: ''
66+
value: '',
67+
pagination: {
68+
itemsPerPage: 8,
69+
page: 0
70+
}
6571
}
6672
}
6773
}

0 commit comments

Comments
 (0)