mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-15 17:31:43 +08:00
22 lines
366 B
Vue
22 lines
366 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>
|