File tree Expand file tree Collapse file tree 1 file changed +17
-11
lines changed Expand file tree Collapse file tree 1 file changed +17
-11
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
- <ul :class =" computedClasses" role =" menubar" aria-disabled =" false" aria-label =" pagination" >
3
- <li v-if =" !noDoubleArrows"
2
+ <ul :class =" computedClasses"
3
+ role =" menubar"
4
+ aria-disabled =" false"
5
+ aria-label =" pagination"
6
+ >
7
+ <li v-if =" !hideDoubleArrows"
4
8
:class =" firstClasses"
5
9
>
6
10
<CLink class =" page-link"
11
15
<span v-html =" firstButtonText" ></span >
12
16
</CLink >
13
17
</li >
14
- <li v-if =" !noArrows "
18
+ <li v-if =" !hideArrows "
15
19
:class =" firstClasses"
16
20
>
17
21
<CLink class =" page-link"
47
51
>
48
52
<span class =" page-link" >…</span >
49
53
</li >
50
- <li v-if =" !noArrows "
54
+ <li v-if =" !hideArrows "
51
55
:class =" lastClasses"
52
56
>
53
57
<CLink class =" page-link"
58
62
<span v-html =" nextButtonText" ></span >
59
63
</CLink >
60
64
</li >
61
- <li v-if =" !noDoubleArrows "
65
+ <li v-if =" !hideDoubleArrows "
62
66
:class =" lastClasses"
63
67
>
64
68
<CLink class =" page-link"
109
113
return ` pagination b-pagination pagination-${ this .rwd } justify-content-${ this .align } `
110
114
},
111
115
dots () {
112
- return this .noDots || this .limit < 4 ? false : true
116
+ return this .hideDots || this .limit < 5 ? false : true
113
117
},
114
118
items () {
115
119
let maxPrevItems = Math .floor ((this .limit - 1 ) / 2 )
191
195
},
192
196
size: {
193
197
type: String ,
194
- default: ' md'
198
+ default: ' md' ,
199
+ validator : val => [' sm' , ' md' , ' lg' ].includes (val)
195
200
},
196
201
align: {
197
202
type: String ,
198
- default: ' start'
203
+ default: ' start' ,
204
+ validator : val => [' start' , ' center' , ' end' ].includes (val)
199
205
},
200
206
limit: {
201
207
type: Number ,
202
208
default: 5
203
209
},
204
- noDots : Boolean ,
205
- noArrows : Boolean ,
206
- noDoubleArrows : Boolean ,
210
+ hideDots : Boolean ,
211
+ hideArrows : Boolean ,
212
+ hideDoubleArrows : Boolean ,
207
213
firstButtonText: {
208
214
type: String ,
209
215
default: ' «'
You can’t perform that action at this time.
0 commit comments