fei.wang
2025-04-30 722da005a5ec126bedf752ac6bd5c5c7f6172155
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
<template>
    <view class="contact page-pagination" :class="size=='large'?'size-large':size=='small'?'size-small':''">
        <view class="page-con" :class="!showBorder&&'no-border'">
            <view class="page-scroll">
                <!-- #ifdef APP-NVUE -->
                <scroll-view scroll-x="true">
                    <!-- #endif -->
                    <view class="page-scroll-child">
                        <view v-for="(item, index) in setLayout" :key="index">
                            <template v-if="item == 'total'">
                                <!-- 总条数 -->
                                <text class="page-total pc-page">共 {{total}} 条</text>
                            </template>
                            <template v-if="item == 'first'">
                                <!-- 首页 -->
                                <view class="pag-btn start" v-if="!numAround" :style="{color}"
                                    :class="[nowPage==1&&'btn-ban',btnText&&'btn-text']" @click="clickStart">
                                    <!-- #ifdef APP-NVUE -->
                                    <text>首页</text>
                                    <!-- #endif -->
                                    <!-- #ifndef APP-NVUE -->
                                    <text v-if="btnText">首页</text>
                                    <text v-else class="icon icon-left1"></text>
                                    <!-- #endif -->
                                </view>
                            </template>
                            <template v-if="item == 'prev'">
                                <!-- 上页 -->
                                <view class="pag-btn prev" :style="{color}" :class="[nowPage==1&&'btn-ban',btnText&&'btn-text']"
                                    @click="clickPrev">
                                    <!-- #ifdef APP-NVUE -->
                                    <text>上页</text>
                                    <!-- #endif -->
                                    <!-- #ifndef APP-NVUE -->
                                    <text v-if="btnText">上页</text>
                                    <text v-else class="icon icon-left"></text>
                                    <!-- #endif -->
                                </view>
                            </template>
                            <template v-if="item == 'page'">
                                <!-- 简单模式 -->
                                <view v-if="mode=='simple'" class="page-num simple">
                                    <text :style="{color}" style="margin-right: 5px;">{{nowPage}}</text>/ {{pageNum}}
                                </view>
                                <!-- 复杂模式 -->
                                <view class="page-num" v-else>
                                    <template v-if="pageNum <= showPageSize">
                                        <view v-for="page in pageNumArr" :key="page" class="pag-btn" :class="page==nowPage&&'active'"
                                            :style="{color, backgroundColor:(page==nowPage?color:''), borderColor:(page==nowPage?color:'')}"
                                            @click="clickPage(page)">{{page}}</view>
                                    </template>
                                    <template v-else>
                                        <!-- 第一页页码 -->
                                        <view class="pag-btn" :class="nowPage==1&&'active'"
                                            :style="{color, backgroundColor:(nowPage==1?color:''), borderColor:(nowPage==1?color:'')}"
                                            v-if="numAround" @click="clickPage(1)">1</view>
                                        <!-- 左侧省略号 -->
                                        <view class="pag-btn ellipsis-btn"
                                            v-if="(forceEllipses && getFirstPage != 1) || (numAround && getFirstPage != 2)">
                                            <text class="icon icon-more"></text>
                                        </view>
                                        <template v-for="(p, i) in showPageSize">
                                            <template v-if="i<showPageSize-2">
                                                <!-- 中间页码 -->
                                                <view :key="i" class="pag-btn" :class="(getFirstPage+i)==nowPage&&'active'"
                                                    :style="{color, backgroundColor:((getFirstPage+i)==nowPage?color:''),borderColor:((getFirstPage+i)==nowPage?color:'')}"
                                                    @click="clickPage(getFirstPage+i)">
                                                    {{getFirstPage+i}}
                                                </view>
                                            </template>
                                            <template v-else>
                                                <!-- 若显示省略号,则页码只显示 showPageSize-2 页 -->
                                                <view :key="i" v-if="!forceEllipses && !numAround" class="pag-btn"
                                                    :class="(getFirstPage+i)==nowPage&&'active'"
                                                    :style="{color, backgroundColor:((getFirstPage+i)==nowPage?color:''), borderColor:((getFirstPage+i)==nowPage?color:'')}"
                                                    @click="clickPage(getFirstPage+i)">
                                                    {{getFirstPage+i}}
                                                </view>
                                            </template>
                                        </template>
                                        <!-- 右侧省略号 -->
                                        <view class="pag-btn ellipsis-btn"
                                            v-if="(forceEllipses && getFirstPage<pageNum-(showPageSize-3)) || (numAround && getFirstPage < pageNum-(showPageSize-2))">
                                            <text class="icon icon-more"></text>
                                        </view>
                                        <!-- 最后一页页码 -->
                                        <view class="pag-btn last-page" :class="nowPage==pageNum&&'active'"
                                            :style="{color,backgroundColor:(nowPage==pageNum?color:''),borderColor:(nowPage==pageNum?color:'')}"
                                            v-if="numAround && getFirstPage < pageNum-(showPageSize-3)" @click="clickPage(pageNum)">{{pageNum}}</view>
                                    </template>
                                </view>
                            </template>
                            <template v-if="item == 'next'">
                                <!-- 下页 -->
                                <view class="pag-btn next" :style="{color}" :class="[pageNum<=nowPage&&'btn-ban',btnText&&'btn-text']"
                                    @click="clickNext">
                                    <!-- #ifdef APP-NVUE -->
                                    <text>下页</text>
                                    <!-- #endif -->
                                    <!-- #ifndef APP-NVUE -->
                                    <text v-if="btnText">下页</text>
                                    <text v-else class="icon icon-right"></text>
                                    <!-- #endif -->
                                </view>
                            </template>
                            <template v-if="item == 'last'">
                                <!-- 尾页 -->
                                <view class="pag-btn end" v-if="!numAround" :style="{color}"
                                    :class="[pageNum<=nowPage&&'btn-ban',btnText&&'btn-text']" @click="clickEnd">
                                    <!-- #ifdef APP-NVUE -->
                                    <text>尾页</text>
                                    <!-- #endif -->
                                    <!-- #ifndef APP-NVUE -->
                                    <text v-if="btnText">尾页</text>
                                    <text v-else class="icon icon-right1"></text>
                                    <!-- #endif -->
                                </view>
                            </template>
                            <template v-if="item == 'limit'">
                                <!-- 选择每页条数 -->
                                <view class="page-limit pc-page">
                                    <picker v-model="pageSizeIndex" :range="newPageSizes" @change="changePageSize">
                                        <text class="page-input">{{newPageSizes[pageSizeIndex]}}</text>
                                        <text class="icon icon-left"></text>
                                    </picker>
                                </view>
                            </template>
                            <template v-if="item == 'jumper'">
                                <!-- 前往页数 -->
                                <view class="page-go pc-page">前往第
                                    <template v-if="trigger=='blur'">
                                        <input class="page-input" v-model="inputPage" @blur="goPage" @input="onInput" />页
                                    </template>
                                    <template v-else>
                                        <input class="page-input" v-model="inputPage" @input="onInput" />页
                                        <text class="page-input-btn" @click="goPage">跳转</text>
                                    </template>
                                </view>
                            </template>
                        </view>
                        <!-- #ifndef MP-WEIXIN -->
                        <view class="custom-info pc-page">
                            <slot />
                        </view>
                        <!-- #endif -->
                    </view>
                    <!-- #ifdef APP-NVUE -->
                </scroll-view>
                <!-- #endif -->
            </view>
        </view>
        <view class="mobile-page">
            <view class="custom-info">
                <slot />
            </view>
            <view v-for="(item, index) in mLayout" :key="index">
                <template v-if="item == 'total'">
                    <!-- 总条数 -->
                    <view class="page-total">共 {{total}} 条</view>
                </template>
                <template v-if="item == 'limit'">
                    <!-- 选择每页条数 -->
                    <view class="page-limit">
                        <picker v-model="pageSizeIndex" :range="newPageSizes" @change="changePageSize">
                            <text class="page-input">{{newPageSizes[pageSizeIndex]}}</text>
                            <text class="icon icon-left"></text>
                        </picker>
                    </view>
                </template>
                <template v-if="item == 'jumper'">
                    <!-- 前往页数 -->
                    <view class="page-go">前往第
                        <template v-if="trigger=='blur'">
                            <input class="page-input" v-model="inputPage" @blur="goPage" @input="onInput" />页
                        </template>
                        <template v-else>
                            <input class="page-input" v-model="inputPage" @input="onInput" />页
                            <text class="page-input-btn" @click="goPage">跳转</text>
                        </template>
                    </view>
                </template>
            </view>
        </view>
    </view>
</template>
<script>
    /**
     * @property {Number} total 数据总条数,默认0
     * @property {Number} pageSize 每页显示条数,默认10
     * @property {Number} currentPage 当前页,默认1
     * @property {String} mode = [multi|simple] 显示模式,默认multi
     *  @value multi 标准模式(默认)
     *  @value simple 简单模式,只显示当前页/总页数
     * @property {Boolean} btnText = [true|false] 上页、下页、首页和尾页按钮是否显示汉字,默认false使用箭头表示
     * @property {Boolean} numAround = [true|false] 是否用页码中的第一页和最后一页表示首尾页,将不在显示首尾页,默认false
     * @property {Boolean} forceEllipses = [true|false] 是否显示省略号,默认false
     * @property {Number} showPageSize 中间页码显示的个数,默认5
     * @property {String} size = [large|normal|small] 按钮大小,默认normal
     *  @value large 大号按钮
     *  @value normal 普通按钮(默认)
     *  @value small 小型按钮
     * @property {String} color 自定义页码颜色,默认#1989FA
     * @property {Boolean} showBorder = [true|false] 是否显示页码边框,默认true
     * @property {String} layout 自定义分页排版,及是否显示 总条数(total)、首页(first)、上页(prev)、页码(page)、下页(next)、尾页(last)、每页条数选项(limit)和页码跳转(jumper),默认顺序和排版为:first,prev,page,next,last
     * @property {String} trigger = [blur|click] 页码跳转触发方式,默认blur
     *  @value blur 失去焦点时触发(默认)
     *  @value click 点击跳转按钮触发
     * @property {Array} pageSizes 每页条数选项预设值,默认[10, 20, 50]
     * @event {Function} change 当页码改变时触发事件,返回参数e={currentPage,type},详情参数见文档
     * @event {Function} sizeChange 每页条数(pageSize)改变时会触发,返回参数e={pageSize}
     */
    export default {
        name: 'PagePagination',
        props: {
            total: { // 总条数
                type: Number,
                default: 0
            },
            pageSize: { // 每页条数
                type: Number,
                default: 10
            },
            currentPage: { // 当前页
                type: Number,
                default: 1
            },
            showPageSize: { // 显示的页码个数
                type: Number,
                default: 5
            },
            mode: { //显示模式
                type: String,
                default: "multi"
            },
            forceEllipses: { // 是否显示省略号
                type: Boolean,
                default: false
            },
            btnText: { // 是否显示汉字
                type: Boolean,
                default: false
            },
            numAround: { // 是否用页码表示首尾页
                type: Boolean,
                default: false
            },
            size: { // 按钮大小
                type: String,
                default: "normal"
            },
            color: { // 页码颜色
                type: String,
                default: "#1989FA"
            },
            trigger: { // 跳转页码触发方式
                type: String,
                default: "blur"
            },
            layout: { // 自定义布局
                type: String,
                default: "first,prev,page,next,last"
            },
            showBorder: { // 是否显示页码边框
                type: Boolean,
                default: true
            },
            pageSizes: { // 每页条数选项预设值
                type: Array,
                default () {
                    return [10, 20, 50]
                }
            }
        },
        data() {
            return {
                nowPage: this.currentPage, //当前页
                inputPage: this.currentPage, //input输入框绑定值
                mLayout: [],
                nowPageSize: this.pageSize, // 当前每页条数
                pageSizeIndex: this.pageSizes.indexOf(this.pageSize),
                newPageSizes: this.pageSizes.map(item => item + "条/页"),
            }
        },
        watch: {
            currentPage(val) {
                this.nowPage = val > this.pageNum ? this.pageNum : val;
                this.inputPage = val > this.pageNum ? this.pageNum : val;
                if (val == 1) {
                    this.nowPage = 1;
                    this.inputPage = 1;
                }
            },
            pageSize(val) {
                this.nowPageSize = val;
                this.pageSizeIndex = this.pageSizes.indexOf(val);
                this.pageSizeEvent();
            }
        },
        computed: {
            // 总页数
            pageNum() {
                return Math.ceil(this.total / this.nowPageSize)
            },
            pageNumArr() { // 解决uni-app某些版本中,存在v-for中循环数字时从0开始
                var pageNumArr = [];
                for (let i = 0; i < this.pageNum; i++) {
                    pageNumArr.push(i + 1);
                }
                return pageNumArr;
            },
            // 计算显示的第一个页码
            getFirstPage() {
                let firstPage = 0;
                let a = Math.floor((this.showPageSize - 1) / 2);
                let b = Math.floor(this.showPageSize / 2) - 1;
                if (this.nowPage <= a) {
                    if (!this.numAround) firstPage = 1;
                    else firstPage = 2;
                } else if (this.nowPage >= this.pageNum - b) {
                    if (this.forceEllipses || this.numAround) firstPage = this.pageNum - this.showPageSize + 3;
                    else firstPage = this.pageNum - this.showPageSize + 1;
                } else {
                    if (this.forceEllipses || this.numAround) firstPage = this.nowPage - a + 1;
                    else firstPage = this.nowPage - a;
                }
                return firstPage;
            },
            // 设置布局
            setLayout() {
                let layoutArr = this.layout.replace(/\s/g, "").split(",");
                let arr = ["total", "limit", "jumper"];
                this.mLayout = layoutArr.filter(item => arr.includes(item));
                return layoutArr;
            }
        },
        methods: {
            //选择页码
            clickPage(page) {
                if (this.nowPage != page) {
                    this.nowPage = page;
                    this.change(page, 'page');
                }
            },
            //点击上页
            clickPrev() {
                if (this.nowPage > 1) {
                    let nowPage = this.nowPage - 1;
                    this.nowPage = nowPage;
                    this.change(nowPage, 'prev');
                }
            },
            //点击下页
            clickNext() {
                if (this.nowPage < this.pageNum) {
                    let nowPage = this.nowPage + 1;
                    this.nowPage = nowPage;
                    this.change(nowPage, 'next');
                }
            },
            //点击首页
            clickStart() {
                if (this.nowPage != 1) {
                    let nowPage = 1;
                    this.nowPage = nowPage;
                    this.change(nowPage, 'homePage');
                }
            },
            //点击尾页
            clickEnd() {
                if (this.nowPage != this.pageNum) {
                    let nowPage = this.pageNum;
                    this.nowPage = nowPage;
                    this.change(nowPage, 'endPage');
                }
            },
            //页码改变时触发
            change(nowPage, type) {
                this.inputPage = nowPage;
                this.$emit('change', nowPage, type);
            },
            onInput(e) {
                let val = parseInt(e.target.value.replace(/[^\d]/g, ''));
                setTimeout(_ => {
                    this.inputPage = val ? (val > this.pageNum ? this.pageNum : val) : '';
                }, 10)
            },
            goPage() {
                this.nowPage = parseInt(this.inputPage ? this.inputPage : '1');
                this.inputPage = parseInt(this.inputPage ? this.inputPage : '1');
                this.change(parseInt(this.inputPage), 'goPage');
            },
            changePageSize(e) { // 更改每页条数
                this.pageSizeIndex = e.detail.value;
                this.nowPageSize = this.pageSizes[e.detail.value];
                this.pageSizeEvent();
            },
            pageSizeEvent() {
                if (this.nowPage > this.pageNum) {
                    this.nowPage = this.pageNum;
                    this.inputPage = this.pageNum;
                }
                this.$emit('sizeChange', this.nowPageSize);
            }
        }
    }
</script>
 
<style lang="scss">
    @import 'icon/iconfont.css';
 
    $font-size: 14px;
    $font-color: #606266;
 
    @mixin page-input {
        font-size: $font-size;
        color: $font-color;
        height: 28px;
        line-height: 28px;
        border: 1px solid #DCDFE6;
        background-color: #FFF;
        border-radius: 3px;
        text-align: center;
        /* #ifndef APP-NVUE */
        cursor: not-allowed;
        /* #endif */
    }
 
    .page-pagination {
        width: 100%;
        /* #ifdef APP-NVUE */
        width: 750rpx;
        /* #endif */
 
        .page-con {
            width: 100%;
            display: flex;
            justify-content: center;
            /* #ifdef APP-NVUE */
            width: 750rpx;
            /* #endif */
 
            .page-scroll {
                width: 100%;
                display: flex;
                /* #ifndef APP-NVUE */
                overflow-x: auto;
                overflow-y: hidden;
                /* #endif */
                /* #ifdef APP-NVUE */
                width: 750rpx;
                /* #endif */
 
                .page-scroll-child {
                    display: flex;
                    flex-direction: row;
                    align-items: center;
                    height: 32px;
                    line-height: 30px;
                    /* #ifndef APP-NVUE */
                    margin: 0 auto;
                    padding: 0 0 0 10px;
 
                    /* #endif */
 
                    .pag-btn {
                        background-color: #FFF;
                        color: #1989FA;
                        font-size: 12px;
                        border: 1px solid #EBEEF5;
                        padding: 0 11px;
                        /* #ifndef APP-NVUE */
                        cursor: pointer;
                        white-space: nowrap;
                        /* #endif */
                        margin-left: -1px;
                        display: flex;
                    }
 
                    .page-num {
                        display: flex;
                        flex-direction: row;
                    }
 
                    .pag-btn.active {
                        background-color: #1989FA;
                        color: #FFFFFF !important;
                    }
 
                    .pag-btn.btn-ban {
                        color: #C0C4CC !important;
                        /* #ifndef APP-NVUE */
                        cursor: not-allowed;
                        /* #endif */
                    }
 
                    .ellipsis-btn {
                        padding: 0 1px;
                        color: #999999;
                        /* #ifndef APP-NVUE */
                        cursor: auto;
                        /* #endif */
                    }
 
                    .pag-btn.start,
                    .pag-btn.prev,
                    .pag-btn.next,
                    .pag-btn.end,
                    .pag-btn .icon-more {
                        padding: 0 7px;
                    }
 
                    .icon-left,
                    .icon-right {
                        font-size: 13px;
                    }
 
                    .icon-left1,
                    .icon-right1 {
                        font-size: 17px;
                    }
 
                    // 简单模式
                    .page-num.simple {
                        padding: 0 40px;
                        line-height: 34px;
                        color: #303133;
                        font-size: 16px;
                    }
                }
            }
        }
 
        // 无边框模式
        .no-border .page-scroll .page-scroll-child {
            .pag-btn {
                /* #ifndef APP-NVUE */
                border: none;
                background: none;
                /* #endif */
                /* #ifdef APP-NVUE */
                border: rgba(255, 255, 255, 0);
                background-color: rgba(255, 255, 255, 0);
                /* #endif */
            }
 
            .pag-btn.active {
                border-radius: 4px;
            }
 
            .pag-btn.start,
            .pag-btn.prev,
            .pag-btn.next,
            .pag-btn.end {
                background-color: #F0F0F0 !important;
                border-radius: 4px;
                margin: 0 3px;
            }
 
            .page-num {
                margin: 0 3px;
            }
        }
 
        // 移动端
        .mobile-page {
            display: flex;
            justify-content: center;
            flex-direction: row;
            align-items: center;
            line-height: 28px;
            margin-top: 5px;
        }
 
        /* 附加功能样式 */
        // 总条数
        .page-total {
            display: flex;
            color: $font-color;
            font-size: $font-size;
            margin: 0 5px;
            /* #ifndef APP-NVUE */
            white-space: nowrap;
            /* #endif */
        }
 
        // 每页条数
        .page-limit {
            margin: 0 5px;
            display: flex;
            align-items: center;
            position: relative;
            /* #ifndef APP-NVUE */
            white-space: nowrap;
            /* #endif */
 
            .page-input {
                @include page-input;
                /* #ifndef APP-NVUE */
                outline: none;
                /* #endif */
                padding: 0 18px 0 6px;
                display: flex;
            }
 
            .icon-left {
                position: absolute;
                right: 3px;
                top: 1px;
                color: #C0C4CC;
                font-size: 12px;
                font-weight: 100;
                transform: rotate(-90deg);
            }
        }
 
        // 跳转页码
        .page-go {
            color: $font-color;
            font-size: $font-size;
            display: flex;
            flex-direction: row;
            align-items: center;
            margin: 0 5px;
            /* #ifndef APP-NVUE */
            white-space: nowrap;
            /* #endif */
 
            .page-input {
                @include page-input;
                width: 46px;
                margin: 0 5px;
            }
 
            .page-input-btn {
                @include page-input;
                padding: 0 10px;
                margin-left: 5px;
            }
        }
 
        // 自定义页码信息
        .custom-info {
            margin: 0 10px;
            color: $font-color;
            font-size: $font-size;
        }
    }
 
    // 大号模式
    .page-pagination.size-large .page-con .page-scroll-child {
        height: 40px;
        line-height: 38px;
 
        .pag-btn {
            padding: 0 15px;
            font-size: 15px;
        }
 
        .pag-btn.start,
        .pag-btn.prev,
        .pag-btn.next,
        .pag-btn.end,
        .ellipsis-btn {
            padding: 0 12px;
        }
 
        .pag-btn.btn-text {
            padding: 0 6px;
        }
 
        .icon-left,
        .icon-right {
            font-size: 15px;
        }
 
        .icon-left1,
        .icon-right1 {
            font-size: 19px;
        }
    }
 
    // 小号按钮
    .page-pagination.size-small .page-con .page-scroll-child {
        height: 24px;
        line-height: 22px;
 
        .pag-btn {
            padding: 0 7px;
        }
 
        .pag-btn.start,
        .pag-btn.prev,
        .pag-btn.next,
        .pag-btn.end {
            padding: 0 5px;
        }
 
        .ellipsis-btn {
            padding: 0 5px;
        }
 
        .icon-left,
        .icon-right {
            font-size: 12px;
        }
 
        .icon-left1,
        .icon-right1 {
            font-size: 15px;
        }
    }
 
    /* #ifndef APP-NVUE */
    .page-pagination .pc-page {
        display: none;
    }
 
    .page-pagination .mobile-page {
        display: flex;
    }
 
    @media screen and (min-width: 450px) {
        .page-pagination .pc-page {
            display: block;
        }
 
        .page-pagination .mobile-page {
            display: none;
        }
    }
 
    /* #endif */
</style>