Commit 07f400e572cd8c66bbf63ca98d98f828064f92d7
1 parent
472b4ff1
fixed #136
add on-page-size-change event
Showing
3 changed files
with
8 additions
and
4 deletions
Show diff stats
src/components/date-picker/base/date-table.vue
src/components/page/page.vue
test/routers/page.vue
1 | 1 | <template> |
2 | - <Page :total="1000" show-sizer show-elevator show-total class="classr" :style="{float: 'right'}"></Page> | |
2 | + <Page :total="1000" show-sizer show-elevator show-total class="classr" :style="{float: 'right'}" @on-page-size-change="pc"></Page> | |
3 | 3 | <br><br> |
4 | 4 | <Page :total="1000" show-sizer show-elevator show-total size="small" class="classr2"></Page> |
5 | 5 | <br><br> |
... | ... | @@ -8,6 +8,11 @@ |
8 | 8 | <script> |
9 | 9 | import { Page } from 'iview'; |
10 | 10 | export default { |
11 | - components: { Page } | |
11 | + components: { Page }, | |
12 | + methods: { | |
13 | + pc (page) { | |
14 | + console.log(page) | |
15 | + } | |
16 | + } | |
12 | 17 | } |
13 | 18 | </script> | ... | ... |