Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c881680
commit a48811b
Showing
10 changed files
with
84 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
order: 4 | ||
order: 5 | ||
title: | ||
zh-CN: 多种形态的 PageHeader | ||
en-US: Various forms of PageHeader | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
order: 2 | ||
order: 3 | ||
title: | ||
zh-CN: 带面包屑页头 | ||
en-US: Use with breadcrumbs | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
order: 3 | ||
order: 4 | ||
title: | ||
zh-CN: 组合示例 | ||
en-US: Complete example | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
--- | ||
order: 2 | ||
title: | ||
zh-CN: 纯净模式,没有白底 | ||
en-US: Pure mode, no white background | ||
--- | ||
|
||
## zh-CN | ||
|
||
在某些情况下,pageHeader 不需要自己的背景颜色。 | ||
|
||
## en-US | ||
|
||
In some cases, pageHeader does not require its own background color. | ||
|
||
```jsx | ||
import { PageHeader, Tag, Button, Statistic, Descriptions, Row } from 'antd'; | ||
|
||
ReactDOM.render( | ||
<div | ||
style={{ | ||
backgroundColor: '#eee', | ||
padding: 24, | ||
}} | ||
> | ||
<PageHeader | ||
type="pure" | ||
onBack={() => window.history.back()} | ||
title="Title" | ||
subTitle="This is a subtitle" | ||
extra={[ | ||
<Button key="3">Operation</Button>, | ||
<Button key="2">Operation</Button>, | ||
<Button key="1" type="primary"> | ||
Primary | ||
</Button>, | ||
]} | ||
> | ||
<Descriptions size="small" column={3}> | ||
<Descriptions.Item label="Created">Lili Qu</Descriptions.Item> | ||
<Descriptions.Item label="Association"> | ||
<a>421421</a> | ||
</Descriptions.Item> | ||
<Descriptions.Item label="Creation Time">2017-01-10</Descriptions.Item> | ||
<Descriptions.Item label="Effective Time">2017-10-10</Descriptions.Item> | ||
<Descriptions.Item label="Remarks"> | ||
Gonghu Road, Xihu District, Hangzhou, Zhejiang, China | ||
</Descriptions.Item> | ||
</Descriptions> | ||
</PageHeader> | ||
</div>, | ||
mountNode, | ||
); | ||
``` | ||
|
||
<style> | ||
#components-page-header-demo-pure .code-box-demo .ant-page-header { | ||
border: 1px solid #1890ff; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
order: 4 | ||
order: 6 | ||
iframe: 210 | ||
title: | ||
zh-CN: 响应式 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters