/**
 * title: "尺寸"
 * description: "通过设置size属性设置分页组件的大小。"
 */
import React from 'react';
import { Pagination } from '@alicloud/console-components';

const handlePageSizeChange = (size: number) => {
  console.log(size);
};
const h2Style = {
  fontSize: '12px',
  lineHeight: '22px',
  marginTop: '28px',
};
export default () => {
  return (
    <div>
      <div style={h2Style}>默认</div>
      <Pagination defaultCurrent={2} onChange={handlePageSizeChange} />
      <div style={h2Style}>小号</div>
      <Pagination
        defaultCurrent={2}
        size="small"
        onChange={handlePageSizeChange}
        type="normal"
        pageSize={10}
        total={200}
      />
    </div>
  );
};


