Blame view

examples/routers/page.vue 1.81 KB
7fa943eb   梁灏   init
1
  <template>
ea060d98   Rijn   fix #1543
2
      <div>
ac50d539   梁灏   Page add prev-tex...
3
          <Page prev-text="上一页" next-text="下一页" :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>
1a4a76e9   梁灏   update Page style
27
28
29
30
31
32
33
34
          <div style="margin: 10px 0px">
              <Page :total="40" size="small"></Page>
              <br><br>
              <Page :total="40" size="small" show-elevator show-sizer></Page>
              <br><br>
              <Page :total="40" size="small" show-total></Page>
              <br><br>
          </div>
ea060d98   Rijn   fix #1543
35
      </div>
7fa943eb   梁灏   init
36
37
  </template>
  <script>
7fa943eb   梁灏   init
38
      export default {
ea060d98   Rijn   fix #1543
39
40
          data () {
              return {
6355250e   Rijn   emit current upda...
41
                  current: 1,
ea060d98   Rijn   fix #1543
42
43
44
45
46
47
                  total: 21
              }
          },
          methods: {
              subject() {
                  this.total -= 1;
6355250e   Rijn   emit current upda...
48
49
50
              },
              change() {
                  this.current = 1;
ea060d98   Rijn   fix #1543
51
52
              }
          }
7fa943eb   梁灏   init
53
      }
d6342fe1   jingsam   fixed ie bug
54
  </script>