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 (
|
|
|
|
<div>
|
|
|
|
<p> customize node </p>
|
|
|
|
<VcPagination
|
|
|
|
selectComponentClass={VcSelect}
|
|
|
|
showSizeChanger
|
|
|
|
showQuickJumper={{ goButton: <button>确定</button> }}
|
|
|
|
defaultPageSize={20}
|
|
|
|
defaultCurrent={5}
|
|
|
|
onShowSizeChange={this.onShowSizeChange}
|
|
|
|
onChange={this.onChange}
|
|
|
|
total={450}
|
|
|
|
/>
|
|
|
|
<p> default node </p>
|
|
|
|
<VcPagination simple showQuickJumper={{ goButton: true }} defaultCurrent={1} total={50} />
|
|
|
|
</div>
|
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>
|