在element分頁中使用pager-count報錯:vue
vue.esm.js?c5de:628 [Vue warn]: Invalid prop: custom validator check failed for prop "pagerCount".spa
found incode
---> <ElPagination>
<ElDialog> at packages/dialog/src/component.vue
<FinancingManaLendingList>
<ElMain> at packages/main/src/main.vue
<CompageLayout>
<ElContainer> at packages/container/src/main.vue... (1 recursive calls)
<MainLayout>
<App> at src/App.vue
<Root>component
頁面寫法:blog
<el-pagination style="padding-bottom: 0;" @size-change="handleBuyerSizeChange" @current-change="handleBuyerCurrentChange" :current-page="1" :pager-count="6" :page-sizes="[5, 10, 15, 20]" :page-size="5" layout="total, sizes, prev, pager, next, jumper" :total="50"> </el-pagination>
一開始覺得是單詞寫錯了,後來去看了文檔,發現人家只要5~21之間的奇數,奇數,奇數.....哎,因此使用的時候仍是要多看看文檔,若是你也遇到這個問題,但願能快速解決,畢竟在這個問題上浪費時間就太不值了...ci