Skip to content

Commit 1b83bab

Browse files
committed
edit [b-pag]
1 parent 9a4aaea commit 1b83bab

File tree

2 files changed

+29
-3
lines changed

2 files changed

+29
-3
lines changed

src/components/base/Pagination/b-pag.vue

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<nav aria-label="Page navigation">
3-
<ul class="pagination m-0">
3+
<ul class="pagination" :class="objClass">
44
<item
55
:disabled="startDisabled"
66
@click.native="startClick"
@@ -61,7 +61,6 @@ export default {
6161
event: "change"
6262
},
6363
props: {
64-
label: util.props.String,
6564
separator: {
6665
type: String,
6766
default: "-"
@@ -81,7 +80,8 @@ export default {
8180
total: {
8281
...util.props.UInt,
8382
default: 10,
84-
}
83+
},
84+
size: util.props.size,
8585
},
8686
data() {
8787
return {
@@ -139,6 +139,10 @@ export default {
139139
}
140140
return arr;
141141
},
142+
objClass: function() {
143+
let size = this.size ? `pagination-${this.size}` : ''
144+
return `${size}`
145+
},
142146
startDisabled: function() {
143147
return this.select == Number(this.start);
144148
},

src/pages/Demo/Base/b-pagination-demo.vue

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,28 @@
2121
active="10"
2222
/>
2323
</div>
24+
<div class="row py-1">
25+
<font class="col-1">
26+
size(sm):
27+
</font>
28+
<b-pag
29+
class="col-11"
30+
size="sm"
31+
end="25"
32+
active="10"
33+
/>
34+
</div>
35+
<div class="row py-1">
36+
<font class="col-1">
37+
size(lg):
38+
</font>
39+
<b-pag
40+
class="col-11"
41+
size="lg"
42+
end="25"
43+
active="10"
44+
/>
45+
</div>
2446
<div class="row py-1">
2547
<font class="col-1">
2648
v-model<br>{{ value }}:

0 commit comments

Comments
 (0)