zent
Version:
一套前端设计语言和基于React的实现
59 lines (48 loc) • 822 B
Markdown
order: 3
zh-CN:
title: 无数据
en-US:
title: No data
```jsx
import { Pagination, MiniPagination, LitePagination } from 'zent';
class Test extends Component {
state = {
pageSize: 10,
current: 2,
};
onChange = options => {
console.log(options);
this.setState(options);
};
render() {
const { current, pageSize } = this.state;
return (
<div>
<Pagination
current={current}
pageSize={pageSize}
total={0}
onChange={this.onChange}
/>
<br />
<LitePagination
current={current}
pageSize={pageSize}
total={0}
onChange={this.onChange}
/>
<br />
<MiniPagination
current={current}
pageSize={pageSize}
total={0}
onChange={this.onChange}
/>
</div>
);
}
}
ReactDOM.render(<Test />, mountNode);
```