software20121216
低調的D吖
采纳率0%
2019-10-29 18:14 阅读 2.8k

vue.esm.js?efeb:628 [Vue warn]: Missing required prop: "total" 是什麼原因呢


     <div :class="{'hidden':hidden}" class="pagination-container">
    <el-pagination
      :background="background"
      :current-page.sync="currentPage"
      :page-size.sync="pageSize"
      :layout="layout"
      :page-sizes="pageSizes"
      :total="total"
      v-bind="$attrs"
      @size-change="handleSizeChange"
      @current-change="handleCurrentChange"
    />
  </div>


this is ----

<script>
export default {
  name: 'user',
  data () {
    return {
      formdata: [],

        }
    },
    props: {
    total: {
      required: true,
      type: Number
    },
    page: {
      type: Number,
      default: 1
    },
    limit: {
      type: Number,
      default: 20
    }
        }
</script>
  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

1条回答 默认 最新

相关推荐