Invalid prop: custom validator check failed for prop "pagerCount"的报错

Posted zy740

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Invalid prop: custom validator check failed for prop "pagerCount"的报错相关的知识,希望对你有一定的参考价值。

Invalid prop: custom validator check failed for prop "pagerCount"

 

在element分页中使用pager-count报错:

 

[Vue warn]: Invalid prop: custom validator check failed for prop "pagerCount".

 

found in

 

---> <ElPagination>
<Course> at src/components/Course.vue
<App> at src/App.vue
<Root>

 

页面写法:

技术图片
<el-pagination
          style="padding-bottom: 0;
      :page-size="size"
      :page-sizes="[5, 11, 15]"
      :pager-count="3"
      @current-change="handleCurrentChange"
      :current-page="page"
      @size-change="handleSizeChange"
      layout="sizes, prev, pager, next, jumper"
      :total="courses_total" v-if="courses_total>1">
</el-pagination>
技术图片

一开始以为是单词写错了,后来去看了文档,发现人家只要5~21之间的奇数,奇数,奇数.....哎,所以使用的时候还是要多看看文档,如果你也遇到这个问题,希望能快速解决,毕竟在这个问题上浪费时间就太不值了...技术图片

 

以上是关于Invalid prop: custom validator check failed for prop "pagerCount"的报错的主要内容,如果未能解决你的问题,请参考以下文章

Invalid prop: custom validator check failed for prop "pagerCount"的报错

Vue Element遇警告:[Vue warn]: Invalid prop: custom validator check failed for prop "type".(代码

Vue——解决[Vue warn]: Invalid prop: custom validator check failed for prop "index". found in

Invalid prop: type check failed for prop “value”. Expected String, Number, got Array

react+antd Failed prop type: Invalid prop `value` supplied to `Select`.

Invalid prop: type check failed for prop “value“. Expected String, Number, got Array