0
点赞
收藏
分享

微信扫一扫

前端那些事20240131-前端那些事-avue2 分页 附加功能

龙驹书房 04-03 17:15 阅读 1


前端那些事20240131-前端那些事-avue2 分页 附加功能_前端

<el-button type="small" @click="page.layout='sizes,pager'">简单模式</el-button>
<el-button type="small" @click="page.layout='total, sizes, prev, pager, next, jumper'">复杂模式</el-button>
<avue-crud :data="data" :option="option" :page.sync="page"></avue-crud>

<script>
  export default {
    data() {
      return {
        page:{
          total:1000,
          layout: "total, sizes, prev, pager, next, jumper", 
        },
        data: [],
        option: {
          header:false,
          column:[{
            label:'姓名',
            prop:'name'
          }]
        }
      }
    }
  }
</script>

运行结果

前端那些事20240131-前端那些事-avue2 分页 附加功能_前端_02

举报

相关推荐

0 条评论