ant-design-vue/components/vc-pagination/demo/showTitle.vue
2019-09-28 20:45:07 +08:00

33 lines
584 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 (
<div>
<VcPagination
onChange={this.onChange}
current={this.current}
total={80}
showLessItems
showTitle={false}
/>
<VcPagination showLessItems defaultCurrent={1} total={60} showTitle={false} />
</div>
);
},
};
</script>