test'

message.info('Click on left button.');直接弹出提示信息
  console.log('click left button', e);  后台输出

  区别

 

import { Pagination } from 'antd';

function onShowSizeChange(current, pageSize) {
  console.log(current, pageSize);
}

ReactDOM.render(
  <Pagination showSizeChanger onShowSizeChange={onShowSizeChange} defaultCurrent={3} total={500} />
, mountNode);

  

showTotal={total => `Total ${total} items`}
showTotal={(total, range) => `${range[0]}-${range[1]} of ${total} items`}

  

posted @ 2018-06-07 21:45  爱吃醋的工程师  阅读(124)  评论(0编辑  收藏  举报