forked from kouchao/vue-layui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLaypage.vue
More file actions
102 lines (99 loc) · 2.43 KB
/
Laypage.vue
File metadata and controls
102 lines (99 loc) · 2.43 KB
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<template>
<div>
<lay-block title="总页数低于页码总数" />
<lay-pagination
:total="70"
:current-page.sync="currentPage"
@current-change="currentChange"
/>
<lay-block title="总页数大于页码总数" />
<lay-pagination
:total="100"
:current-page.sync="currentPage"
@current-change="currentChange"
/>
<lay-block title="自定义主题 - 颜色随意定义" />
<lay-pagination
:total="100"
:current-page.sync="currentPage"
color="#1E9FFF"
@current-change="currentChange"
/>
<br>
<lay-pagination
:total="100"
:current-page.sync="currentPage"
theme="red"
@current-change="currentChange"
/>
<br>
<lay-pagination
:total="100"
:current-page.sync="currentPage"
color="#FFB800"
@current-change="currentChange"
/>
<lay-block title="自定义上一页、下一页文本" />
<lay-pagination
:total="100"
:current-page.sync="currentPage"
theme="red"
prev-text="自定义prev"
next-text="自定义next"
@current-change="currentChange"
/>
<lay-block title="只显示上一页、下一页" />
<lay-pagination
:total="100"
:current-page.sync="currentPage"
:layout="['prev', 'next']"
@current-change="currentChange"
/>
<lay-block title="显示完整功能" />
<lay-pagination
:total="100"
:current-page.sync="currentPage"
:layout="['total', 'prev', 'body', 'next', 'limit', 'page']"
@current-change="currentChange"
/>
<lay-block title="自定义排版" />
<lay-pagination
:total="100"
:current-page.sync="currentPage"
:layout="['limit', 'prev', 'body', 'next']"
@current-change="currentChange"
/>
<br>
<lay-pagination
:total="100"
:current-page.sync="currentPage"
:layout="['prev', 'next', 'body']"
@current-change="currentChange"
/>
<br>
<lay-pagination
:total="100"
:current-page.sync="currentPage"
:layout="['body', 'total']"
@current-change="currentChange"
/>
<lay-block title="自定义每页条数的选择项" />
<lay-block>
修改pageSize就可以了。
</lay-block>
</div>
</template>
<script>
export default {
name: 'Laypage',
data () {
return {
currentPage: 1
};
},
methods: {
currentChange () {}
}
};
</script>
<style scoped></style>