forked from thomasbertet/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPaginationView.vue
executable file
·75 lines (73 loc) · 2.38 KB
/
PaginationView.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
68
69
70
71
72
73
74
75
<template lang="pug">
component-view(v-bind:doc="doc")
</template>
<script>
export default {
name: 'pagination-view',
data () {
return {
doc: {
component: 'pagination',
edit: 'PaginationView',
title: 'Pagination',
desc: 'The <code>v-pagination</code> component is used to separate long sets of data so that it is easier for a user to consume information. Depending on the length provided, the pagination component will automatically scale. To maintain the current page, simply supply a v-model attribute.',
examples: [
{ header: 'Short', file: 'pagination/1', desc: 'Pagination does not truncate pages when the length is 6 or less.' },
{ header: 'Long', file: 'pagination/2', desc: 'When the number of pages exceeds 6, the component will truncate the list of pages.' },
{ header: 'Round', file: 'pagination/3', desc: 'The alternate style for pagination is circle pages.' },
{ header: 'Disabled', file: 'pagination/4', desc: 'Pagination items can be manually deactivated.' }
],
props: {
'v-pagination': {
params: [
[
'circle',
'Boolean',
'False',
'Shape pagination elements as circles',
],
[
'disabled',
'Boolean',
'False',
'Disables component'
],
[
'length',
'Number',
'0',
'The length of the paginator',
]
],
model: {
type: 'Number',
description: 'Current selected page'
}
}
},
events: {
'v-pagination': {
params: [
[
'input',
'Number',
'Current page'
],
[
'next',
'-',
'Emits when the next button is clicked'
],
[
'previous',
'-',
'Emits when the previous button is clicked'
]
]
}
}
}
}
},
}
</script>