Element ui paging pagerCount detection error

an error is detected when setting the paging pager-count, and the configuration is clearly correct

clipboard.png

the code is as follows:

<el-pagination

        background
        layout="pager"
        :current-page="bjCurrPage"
        @current-change="handleBjCurrentChange"
        :page-size="bjSize"
        :total="bjTotal" :pager-count="bjPageCount">
</el-pagination>
    bjData:[

    ],
    bjCurrData:[

    ],
    bjTotal:0,
    bjSize:4,
    bjPageCount:5,
    bjCurrPage:1,

Please give us some advice. Thank you

Jun.08,2021

Please post the complete code.
in addition, the total number of pages total and page-count can be set to display the page number without having to be set at the same time.


Today I also encountered the same problem. My problem lies in the fact that the value of the attribute is an odd number greater than or equal to 5 and less than or equal to 21

.
Menu