ant-design-vue/components/vc-pagination/demo/default.vue
2018-03-05 19:06:44 +08:00

28 lines
406 B
Vue

<script>
import VcPagination from '../index'
import '../assets/index.less'
export default {
data () {
return {
current: 3,
}
},
methods: {
onChange (page) {
console.log(page)
this.current = page
},
},
render () {
return (
<VcPagination
onChange={this.onChange}
current={this.current}
total={25}
/>
)
},
}
</script>