Blame view

local/routers/page.vue 664 Bytes
7fa943eb   梁灏   init
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
  <style>
      body{
          padding: 100px;
      }
      .ivu-page-item-active{
          color: #f60;
      }
  </style>
  <template>
      <Page :current="1" :total="total" show-sizer show-total show-elevator :page-size="10" simple @on-change="setPage"></Page>
  </template>
  <script>
      import { Page } from 'iview';
  
      export default {
          components: {
              Page
          },
          props: {
          
          },
          data () {
              return {
                  total: 512
              }
          },
          computed: {
          
          },
          methods: {
              setPage (page) {
                  console.log(page)
              }
          }
      }
  </script>