Blame view

examples/routers/page.vue 583 Bytes
7fa943eb   梁灏   init
1
  <template>
87c51597   梁灏   support Page
2
3
4
5
6
7
8
      <div>
          <Page :total="1000" show-sizer show-elevator show-total class="classr" :style="{float: 'right'}" @on-page-size-change="pc"></Page>
          <br><br>
          <Page :total="1000" show-sizer show-elevator show-total size="small" class="classr2"></Page>
          <br><br>
          <Page :current="2" :total="50" simple></Page>
      </div>
7fa943eb   梁灏   init
9
10
  </template>
  <script>
928033f0   梁灏   optimize Page style
11
      import { Page } from 'iview';
7fa943eb   梁灏   init
12
      export default {
07f400e5   梁灏   fixed #136
13
14
15
16
17
18
          components: { Page },
          methods: {
              pc (page) {
                  console.log(page)
              }
          }
7fa943eb   梁灏   init
19
      }
d6342fe1   jingsam   fixed ie bug
20
  </script>