iview/examples/routers/page.vue

21 lines
414 B
Vue
Raw Normal View History

2016-09-09 14:29:19 +08:00
<template>
2017-08-08 11:23:50 -05:00
<div>
<Page :total="total" show-sizer show-elevator show-total></Page>
<Button type="primary" @click="subject">- 1</Button>
</div>
2016-09-09 14:29:19 +08:00
</template>
<script>
export default {
2017-08-08 11:23:50 -05:00
data () {
return {
total: 21
}
},
methods: {
subject() {
this.total -= 1;
}
}
2016-09-09 14:29:19 +08:00
}
2016-10-28 17:24:52 +08:00
</script>