2018-03-05 11:06:44 +00:00
|
|
|
<script>
|
2019-01-12 03:33:27 +00:00
|
|
|
import VcPagination from '../index';
|
|
|
|
import VcSelect from '../../vc-select';
|
|
|
|
import '../assets/index.less';
|
|
|
|
import '../../vc-select/assets/index.less';
|
2018-03-05 11:06:44 +00:00
|
|
|
|
|
|
|
export default {
|
|
|
|
data () {
|
2019-01-12 03:33:27 +00:00
|
|
|
return {};
|
2018-03-05 11:06:44 +00:00
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
onShowSizeChange (current, pageSize) {
|
2019-01-12 03:33:27 +00:00
|
|
|
console.log(current);
|
|
|
|
console.log(pageSize);
|
2018-03-05 11:06:44 +00:00
|
|
|
},
|
|
|
|
onChange (current, pageSize) {
|
2019-01-12 03:33:27 +00:00
|
|
|
console.log('onChange:current=', current);
|
|
|
|
console.log('onChange:pageSize=', pageSize);
|
2018-03-05 11:06:44 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
render () {
|
|
|
|
return (
|
|
|
|
<VcPagination
|
|
|
|
selectComponentClass={VcSelect}
|
|
|
|
showQuickJumper
|
|
|
|
showSizeChanger
|
|
|
|
defaultPageSize={20}
|
|
|
|
defaultCurrent={5}
|
|
|
|
onShowSizeChange={this.onShowSizeChange}
|
|
|
|
onChange={this.onChange}
|
|
|
|
total={450}
|
|
|
|
/>
|
2019-01-12 03:33:27 +00:00
|
|
|
);
|
2018-03-05 11:06:44 +00:00
|
|
|
},
|
2019-01-12 03:33:27 +00:00
|
|
|
};
|
2018-03-05 11:06:44 +00:00
|
|
|
</script>
|