首页 > 其他分享 >Error:Invalid prop: custom validator check failed for prop "pagerCount".

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

时间:2022-10-17 13:22:57浏览次数:48  
标签:count pagerCount Invalid custom failed prop

  • Element 分页使用 pager-count 报错

错误原因:pager-count只要5~21之间的奇数

 <el-pagination
  small
  layout="total, prev, pager, next"
  :pager-count="6"
  :page-size="pageData.pageSize"
  :total="pageData.total"
  :current-page="pageData.pageNo"
  @current-change="changePage"
>
</el-pagination>

标签:count,pagerCount,Invalid,custom,failed,prop
From: https://www.cnblogs.com/DL-CODER/p/16798872.html

相关文章