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