mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-12 23:35:38 +08:00
338018eba3
* pure page header style * add type props * add prue demo * add config provider doc * fix lint * fix lint error * change pure to ghost * fix test * default ghost is true * fix review style * fix review warning * use online style * remove defualt and remove comment * add test
31 lines
480 B
Markdown
31 lines
480 B
Markdown
---
|
|
order: 1
|
|
title:
|
|
zh-CN: 标准样式
|
|
en-US: Basic Page Header
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
标准页头,适合使用在需要简单描述的场景。
|
|
|
|
## en-US
|
|
|
|
Standard header, suitable for use in scenarios that require a brief description.
|
|
|
|
```jsx
|
|
import { PageHeader } from 'antd';
|
|
|
|
ReactDOM.render(
|
|
<PageHeader
|
|
style={{
|
|
border: '1px solid rgb(235, 237, 240)',
|
|
}}
|
|
onBack={() => null}
|
|
title="Title"
|
|
subTitle="This is a subtitle"
|
|
/>,
|
|
mountNode,
|
|
);
|
|
```
|