This commit is contained in:
梁灏 2017-04-05 11:24:00 +08:00
parent 891f61d875
commit 713bd3d75d
4 changed files with 80 additions and 13 deletions

View file

@ -1,19 +1,15 @@
<template>
<div>
<Page :total="1000" show-sizer show-elevator show-total class="classr" :style="{float: 'right'}" @on-page-size-change="pc"></Page>
<br><br>
<Page :total="1000" show-sizer show-elevator show-total size="small" class="classr2"></Page>
<br><br>
<Page :current="2" :total="50" simple></Page>
<Page :total="100" :current="current"></Page>
{{ current }}
<Button @click="current = 1">set current</Button>
</div>
</template>
<script>
import { Page } from 'iview';
export default {
components: { Page },
methods: {
pc (page) {
console.log(page)
data () {
return {
current: 2
}
}
}