Blame view

examples/routers/page.vue 1.47 KB
7fa943eb   梁灏   init
1
  <template>
ea060d98   Rijn   fix #1543
2
      <div>
a7a79014   梁灏   fixed #3112
3
          <Page :total="total" show-sizer show-elevator show-total transfer :current.sync="current"></Page>
6355250e   Rijn   emit current upda...
4
          {{ current }}
ea060d98   Rijn   fix #1543
5
          <Button type="primary" @click="subject">- 1</Button>
6355250e   Rijn   emit current upda...
6
          <Button type="primary" @click="change">Change</Button>
6d2b7bcb   梁灏   fixed #1575
7
          <Page :current="2" :total="50" simple></Page>
944c0dac   huanghong   add example for d...
8
9
10
  
          <div style="margin:10px 0px">
              <Page :total="1000"  show-sizer show-elevator show-total transfer :current="12"></Page>
347815f7   huanghong   update dropdown
11
          </div>
944c0dac   huanghong   add example for d...
12
13
          <div style="margin:10px 0px">
              <Page :total="1000" show-sizer show-elevator show-total transfer :current="12"></Page>
347815f7   huanghong   update dropdown
14
          </div>
944c0dac   huanghong   add example for d...
15
16
          <div style="margin:100px 0px">
              <Page :total="500" show-sizer show-elevator show-total transfer ></Page>
347815f7   huanghong   update dropdown
17
          </div>
944c0dac   huanghong   add example for d...
18
19
          <div style="margin:100px 0px">
              <Page :total="500" show-sizer show-elevator transfer ></Page>
347815f7   huanghong   update dropdown
20
          </div>
944c0dac   huanghong   add example for d...
21
22
          <div style="margin:100px 0px">
              <Page :total="500" show-sizer show-elevator  transfer ></Page>
347815f7   huanghong   update dropdown
23
          </div>
944c0dac   huanghong   add example for d...
24
25
          <div style="margin:10px 0px">
              <Page :total="500" show-sizer transfer ></Page>
347815f7   huanghong   update dropdown
26
          </div>
ea060d98   Rijn   fix #1543
27
      </div>
7fa943eb   梁灏   init
28
29
  </template>
  <script>
7fa943eb   梁灏   init
30
      export default {
ea060d98   Rijn   fix #1543
31
32
          data () {
              return {
6355250e   Rijn   emit current upda...
33
                  current: 1,
ea060d98   Rijn   fix #1543
34
35
36
37
38
39
                  total: 21
              }
          },
          methods: {
              subject() {
                  this.total -= 1;
6355250e   Rijn   emit current upda...
40
41
42
              },
              change() {
                  this.current = 1;
ea060d98   Rijn   fix #1543
43
44
              }
          }
7fa943eb   梁灏   init
45
      }
d6342fe1   jingsam   fixed ie bug
46
  </script>