You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
406 B
28 lines
406 B
7 years ago
|
<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>
|