Blame view

examples/routers/page.vue 1.75 KB
7fa943eb   梁灏   init
1
  <template>
ea060d98   Rijn   fix #1543
2
      <div>
81b641ee   梁灏   Page support glob...
3
          <Page prev-text="上一页" next-text="下一页" :total="total" show-sizer show-elevator show-total  :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
  
          <div style="margin:10px 0px">
81b641ee   梁灏   Page support glob...
10
              <Page :total="1000"  show-sizer show-elevator show-total  :current="12"></Page>
347815f7   huanghong   update dropdown
11
          </div>
944c0dac   huanghong   add example for d...
12
          <div style="margin:10px 0px">
81b641ee   梁灏   Page support glob...
13
              <Page :total="1000" show-sizer show-elevator show-total  :current="12"></Page>
347815f7   huanghong   update dropdown
14
          </div>
944c0dac   huanghong   add example for d...
15
          <div style="margin:100px 0px">
81b641ee   梁灏   Page support glob...
16
              <Page :total="500" show-sizer show-elevator show-total  ></Page>
347815f7   huanghong   update dropdown
17
          </div>
944c0dac   huanghong   add example for d...
18
          <div style="margin:100px 0px">
81b641ee   梁灏   Page support glob...
19
              <Page :total="500" show-sizer show-elevator  ></Page>
347815f7   huanghong   update dropdown
20
          </div>
944c0dac   huanghong   add example for d...
21
          <div style="margin:100px 0px">
81b641ee   梁灏   Page support glob...
22
              <Page :total="500" show-sizer show-elevator   ></Page>
347815f7   huanghong   update dropdown
23
          </div>
944c0dac   huanghong   add example for d...
24
          <div style="margin:10px 0px">
81b641ee   梁灏   Page support glob...
25
              <Page :total="500" show-sizer  ></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>