Blame view

examples/routers/page.vue 623 Bytes
7fa943eb   梁灏   init
1
  <template>
ea060d98   Rijn   fix #1543
2
      <div>
6355250e   Rijn   emit current upda...
3
4
          <Page :total="total" show-sizer show-elevator show-total :current.sync="current"></Page>
          {{ 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>
ea060d98   Rijn   fix #1543
7
      </div>
7fa943eb   梁灏   init
8
9
  </template>
  <script>
7fa943eb   梁灏   init
10
      export default {
ea060d98   Rijn   fix #1543
11
12
          data () {
              return {
6355250e   Rijn   emit current upda...
13
                  current: 1,
ea060d98   Rijn   fix #1543
14
15
16
17
18
19
                  total: 21
              }
          },
          methods: {
              subject() {
                  this.total -= 1;
6355250e   Rijn   emit current upda...
20
21
22
              },
              change() {
                  this.current = 1;
ea060d98   Rijn   fix #1543
23
24
              }
          }
7fa943eb   梁灏   init
25
      }
d6342fe1   jingsam   fixed ie bug
26
  </script>