Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
ant-design-pro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
duanledexianxianxian
ant-design-pro
Commits
e235ca5d
Commit
e235ca5d
authored
Aug 29, 2018
by
afc163
Committed by
偏右
Aug 30, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move out PageHeaderLayout and rename to PageHeaderWrapper
parent
4c3eef15
Changes
20
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
44 additions
and
44 deletions
+44
-44
src/components/PageHeaderWrapper/GridContent.js
src/components/PageHeaderWrapper/GridContent.js
+0
-0
src/components/PageHeaderWrapper/GridContent.less
src/components/PageHeaderWrapper/GridContent.less
+0
-0
src/components/PageHeaderWrapper/index.js
src/components/PageHeaderWrapper/index.js
+4
-4
src/components/PageHeaderWrapper/index.less
src/components/PageHeaderWrapper/index.less
+0
-0
src/pages/Account/Center/Center.js
src/pages/Account/Center/Center.js
+1
-1
src/pages/Account/Settings/Info.js
src/pages/Account/Settings/Info.js
+1
-1
src/pages/Dashboard/Analysis.js
src/pages/Dashboard/Analysis.js
+1
-1
src/pages/Dashboard/Monitor.js
src/pages/Dashboard/Monitor.js
+1
-1
src/pages/Dashboard/Workplace.js
src/pages/Dashboard/Workplace.js
+3
-3
src/pages/Forms/AdvancedForm.js
src/pages/Forms/AdvancedForm.js
+3
-3
src/pages/Forms/BasicForm.js
src/pages/Forms/BasicForm.js
+3
-3
src/pages/Forms/StepForm/index.js
src/pages/Forms/StepForm/index.js
+3
-3
src/pages/List/BasicList.js
src/pages/List/BasicList.js
+3
-3
src/pages/List/CardList.js
src/pages/List/CardList.js
+3
-3
src/pages/List/List.js
src/pages/List/List.js
+3
-3
src/pages/List/TableList.js
src/pages/List/TableList.js
+3
-3
src/pages/Profile/AdvancedProfile.js
src/pages/Profile/AdvancedProfile.js
+3
-3
src/pages/Profile/BasicProfile.js
src/pages/Profile/BasicProfile.js
+3
-3
src/pages/Result/Error.js
src/pages/Result/Error.js
+3
-3
src/pages/Result/Success.js
src/pages/Result/Success.js
+3
-3
No files found.
src/
layouts
/GridContent.js
→
src/
components/PageHeaderWrapper
/GridContent.js
View file @
e235ca5d
File moved
src/
layouts
/GridContent.less
→
src/
components/PageHeaderWrapper
/GridContent.less
View file @
e235ca5d
File moved
src/
layouts/PageHeaderLayout
.js
→
src/
components/PageHeaderWrapper/index
.js
View file @
e235ca5d
...
@@ -4,10 +4,10 @@ import Link from 'umi/link';
...
@@ -4,10 +4,10 @@ import Link from 'umi/link';
import
PageHeader
from
'
@/components/PageHeader
'
;
import
PageHeader
from
'
@/components/PageHeader
'
;
import
{
connect
}
from
'
dva
'
;
import
{
connect
}
from
'
dva
'
;
import
GridContent
from
'
./GridContent
'
;
import
GridContent
from
'
./GridContent
'
;
import
styles
from
'
./
PageHeaderLayout
.less
'
;
import
styles
from
'
./
index
.less
'
;
import
MenuContext
from
'
.
/MenuContext
'
;
import
MenuContext
from
'
@/layouts
/MenuContext
'
;
const
PageHeader
Layout
=
({
children
,
grid
,
wrapperClassName
,
top
,
...
restProps
})
=>
(
const
PageHeader
Wrapper
=
({
children
,
grid
,
wrapperClassName
,
top
,
...
restProps
})
=>
(
<
div
style
=
{{
margin
:
'
-24px -24px 0
'
}}
className
=
{
wrapperClassName
}
>
<
div
style
=
{{
margin
:
'
-24px -24px 0
'
}}
className
=
{
wrapperClassName
}
>
{
top
}
{
top
}
<
MenuContext
.
Consumer
>
<
MenuContext
.
Consumer
>
...
@@ -38,4 +38,4 @@ const PageHeaderLayout = ({ children, grid, wrapperClassName, top, ...restProps
...
@@ -38,4 +38,4 @@ const PageHeaderLayout = ({ children, grid, wrapperClassName, top, ...restProps
export
default
connect
(({
setting
})
=>
({
export
default
connect
(({
setting
})
=>
({
grid
:
setting
.
grid
,
grid
:
setting
.
grid
,
}))(
PageHeader
Layout
);
}))(
PageHeader
Wrapper
);
src/
layouts/PageHeaderLayout
.less
→
src/
components/PageHeaderWrapper/index
.less
View file @
e235ca5d
File moved
src/pages/Account/Center/Center.js
View file @
e235ca5d
...
@@ -3,7 +3,7 @@ import { connect } from 'dva';
...
@@ -3,7 +3,7 @@ import { connect } from 'dva';
import
Link
from
'
umi/link
'
;
import
Link
from
'
umi/link
'
;
import
router
from
'
umi/router
'
;
import
router
from
'
umi/router
'
;
import
{
Card
,
Row
,
Col
,
Icon
,
Avatar
,
Tag
,
Divider
,
Spin
,
Input
}
from
'
antd
'
;
import
{
Card
,
Row
,
Col
,
Icon
,
Avatar
,
Tag
,
Divider
,
Spin
,
Input
}
from
'
antd
'
;
import
GridContent
from
'
@/
layouts
/GridContent
'
;
import
GridContent
from
'
@/
components/PageHeaderWrapper
/GridContent
'
;
import
styles
from
'
./Center.less
'
;
import
styles
from
'
./Center.less
'
;
@
connect
(({
loading
,
user
,
project
})
=>
({
@
connect
(({
loading
,
user
,
project
})
=>
({
...
...
src/pages/Account/Settings/Info.js
View file @
e235ca5d
...
@@ -3,7 +3,7 @@ import { connect } from 'dva';
...
@@ -3,7 +3,7 @@ import { connect } from 'dva';
import
router
from
'
umi/router
'
;
import
router
from
'
umi/router
'
;
import
{
FormattedMessage
}
from
'
umi/locale
'
;
import
{
FormattedMessage
}
from
'
umi/locale
'
;
import
{
Menu
}
from
'
antd
'
;
import
{
Menu
}
from
'
antd
'
;
import
GridContent
from
'
@/
layouts
/GridContent
'
;
import
GridContent
from
'
@/
components/PageHeaderWrapper
/GridContent
'
;
import
styles
from
'
./Info.less
'
;
import
styles
from
'
./Info.less
'
;
const
{
Item
}
=
Menu
;
const
{
Item
}
=
Menu
;
...
...
src/pages/Dashboard/Analysis.js
View file @
e235ca5d
...
@@ -27,7 +27,7 @@ import {
...
@@ -27,7 +27,7 @@ import {
import
Trend
from
'
@/components/Trend
'
;
import
Trend
from
'
@/components/Trend
'
;
import
NumberInfo
from
'
@/components/NumberInfo
'
;
import
NumberInfo
from
'
@/components/NumberInfo
'
;
import
numeral
from
'
numeral
'
;
import
numeral
from
'
numeral
'
;
import
GridContent
from
'
@/
layouts
/GridContent
'
;
import
GridContent
from
'
@/
components/PageHeaderWrapper
/GridContent
'
;
import
Yuan
from
'
@/utils/Yuan
'
;
import
Yuan
from
'
@/utils/Yuan
'
;
import
{
getTimeDistance
}
from
'
@/utils/utils
'
;
import
{
getTimeDistance
}
from
'
@/utils/utils
'
;
...
...
src/pages/Dashboard/Monitor.js
View file @
e235ca5d
...
@@ -6,7 +6,7 @@ import NumberInfo from '@/components/NumberInfo';
...
@@ -6,7 +6,7 @@ import NumberInfo from '@/components/NumberInfo';
import
CountDown
from
'
@/components/CountDown
'
;
import
CountDown
from
'
@/components/CountDown
'
;
import
ActiveChart
from
'
@/components/ActiveChart
'
;
import
ActiveChart
from
'
@/components/ActiveChart
'
;
import
numeral
from
'
numeral
'
;
import
numeral
from
'
numeral
'
;
import
GridContent
from
'
@/
layouts
/GridContent
'
;
import
GridContent
from
'
@/
components/PageHeaderWrapper
/GridContent
'
;
import
Authorized
from
'
@/utils/Authorized
'
;
import
Authorized
from
'
@/utils/Authorized
'
;
import
styles
from
'
./Monitor.less
'
;
import
styles
from
'
./Monitor.less
'
;
...
...
src/pages/Dashboard/Workplace.js
View file @
e235ca5d
...
@@ -6,7 +6,7 @@ import { Row, Col, Card, List, Avatar } from 'antd';
...
@@ -6,7 +6,7 @@ import { Row, Col, Card, List, Avatar } from 'antd';
import
{
Radar
}
from
'
@/components/Charts
'
;
import
{
Radar
}
from
'
@/components/Charts
'
;
import
EditableLinkGroup
from
'
@/components/EditableLinkGroup
'
;
import
EditableLinkGroup
from
'
@/components/EditableLinkGroup
'
;
import
PageHeader
Layout
from
'
@/layouts/PageHeaderLayout
'
;
import
PageHeader
Wrapper
from
'
@/components/PageHeaderWrapper
'
;
import
styles
from
'
./Workplace.less
'
;
import
styles
from
'
./Workplace.less
'
;
...
@@ -156,7 +156,7 @@ export default class Workplace extends PureComponent {
...
@@ -156,7 +156,7 @@ export default class Workplace extends PureComponent {
);
);
return
(
return
(
<
PageHeader
Layout
<
PageHeader
Wrapper
loading
=
{
currentUserLoading
}
loading
=
{
currentUserLoading
}
content
=
{
pageHeaderContent
}
content
=
{
pageHeaderContent
}
extraContent
=
{
extraContent
}
extraContent
=
{
extraContent
}
...
@@ -248,7 +248,7 @@ export default class Workplace extends PureComponent {
...
@@ -248,7 +248,7 @@ export default class Workplace extends PureComponent {
<
/Card
>
<
/Card
>
<
/Col
>
<
/Col
>
<
/Row
>
<
/Row
>
<
/PageHeader
Layout
>
<
/PageHeader
Wrapper
>
);
);
}
}
}
}
src/pages/Forms/AdvancedForm.js
View file @
e235ca5d
...
@@ -14,7 +14,7 @@ import {
...
@@ -14,7 +14,7 @@ import {
}
from
'
antd
'
;
}
from
'
antd
'
;
import
{
connect
}
from
'
dva
'
;
import
{
connect
}
from
'
dva
'
;
import
FooterToolbar
from
'
@/components/FooterToolbar
'
;
import
FooterToolbar
from
'
@/components/FooterToolbar
'
;
import
PageHeader
Layout
from
'
@/layouts/PageHeaderLayout
'
;
import
PageHeader
Wrapper
from
'
@/components/PageHeaderWrapper
'
;
import
TableForm
from
'
./TableForm
'
;
import
TableForm
from
'
./TableForm
'
;
import
styles
from
'
./style.less
'
;
import
styles
from
'
./style.less
'
;
...
@@ -142,7 +142,7 @@ export default class AdvancedForm extends PureComponent {
...
@@ -142,7 +142,7 @@ export default class AdvancedForm extends PureComponent {
};
};
const
{
width
}
=
this
.
state
;
const
{
width
}
=
this
.
state
;
return
(
return
(
<
PageHeader
Layout
<
PageHeader
Wrapper
title
=
"
高级表单
"
title
=
"
高级表单
"
content
=
"
高级表单常见于一次性输入和提交大批量数据的场景。
"
content
=
"
高级表单常见于一次性输入和提交大批量数据的场景。
"
wrapperClassName
=
{
styles
.
advancedForm
}
wrapperClassName
=
{
styles
.
advancedForm
}
...
@@ -303,7 +303,7 @@ export default class AdvancedForm extends PureComponent {
...
@@ -303,7 +303,7 @@ export default class AdvancedForm extends PureComponent {
提交
提交
<
/Button
>
<
/Button
>
<
/FooterToolbar
>
<
/FooterToolbar
>
<
/PageHeader
Layout
>
<
/PageHeader
Wrapper
>
);
);
}
}
}
}
src/pages/Forms/BasicForm.js
View file @
e235ca5d
...
@@ -12,7 +12,7 @@ import {
...
@@ -12,7 +12,7 @@ import {
Icon
,
Icon
,
Tooltip
,
Tooltip
,
}
from
'
antd
'
;
}
from
'
antd
'
;
import
PageHeader
Layout
from
'
@/layouts/PageHeaderLayout
'
;
import
PageHeader
Wrapper
from
'
@/components/PageHeaderWrapper
'
;
import
styles
from
'
./style.less
'
;
import
styles
from
'
./style.less
'
;
const
FormItem
=
Form
.
Item
;
const
FormItem
=
Form
.
Item
;
...
@@ -64,7 +64,7 @@ export default class BasicForms extends PureComponent {
...
@@ -64,7 +64,7 @@ export default class BasicForms extends PureComponent {
};
};
return
(
return
(
<
PageHeader
Layout
<
PageHeader
Wrapper
title
=
"
基础表单
"
title
=
"
基础表单
"
content
=
"
表单页用于向用户收集或验证信息,基础表单常见于数据项较少的表单场景。
"
content
=
"
表单页用于向用户收集或验证信息,基础表单常见于数据项较少的表单场景。
"
>
>
...
@@ -196,7 +196,7 @@ export default class BasicForms extends PureComponent {
...
@@ -196,7 +196,7 @@ export default class BasicForms extends PureComponent {
<
/FormItem
>
<
/FormItem
>
<
/Form
>
<
/Form
>
<
/Card
>
<
/Card
>
<
/PageHeader
Layout
>
<
/PageHeader
Wrapper
>
);
);
}
}
}
}
src/pages/Forms/StepForm/index.js
View file @
e235ca5d
import
React
,
{
PureComponent
,
Fragment
}
from
'
react
'
;
import
React
,
{
PureComponent
,
Fragment
}
from
'
react
'
;
import
{
Card
,
Steps
}
from
'
antd
'
;
import
{
Card
,
Steps
}
from
'
antd
'
;
import
PageHeader
Layout
from
'
@/layouts/PageHeaderLayout
'
;
import
PageHeader
Wrapper
from
'
@/components/PageHeaderWrapper
'
;
import
styles
from
'
../style.less
'
;
import
styles
from
'
../style.less
'
;
// import { Route, Redirect, Switch } from 'dva/router';
// import { Route, Redirect, Switch } from 'dva/router';
...
@@ -28,7 +28,7 @@ export default class StepForm extends PureComponent {
...
@@ -28,7 +28,7 @@ export default class StepForm extends PureComponent {
render
()
{
render
()
{
const
{
location
,
children
}
=
this
.
props
;
const
{
location
,
children
}
=
this
.
props
;
return
(
return
(
<
PageHeader
Layout
<
PageHeader
Wrapper
title
=
"
分步表单
"
title
=
"
分步表单
"
tabActiveKey
=
{
location
.
pathname
}
tabActiveKey
=
{
location
.
pathname
}
content
=
"
将一个冗长或用户不熟悉的表单任务分成多个步骤,指导用户完成。
"
content
=
"
将一个冗长或用户不熟悉的表单任务分成多个步骤,指导用户完成。
"
...
@@ -43,7 +43,7 @@ export default class StepForm extends PureComponent {
...
@@ -43,7 +43,7 @@ export default class StepForm extends PureComponent {
{
children
}
{
children
}
<
/Fragment
>
<
/Fragment
>
<
/Card
>
<
/Card
>
<
/PageHeader
Layout
>
<
/PageHeader
Wrapper
>
);
);
}
}
}
}
src/pages/List/BasicList.js
View file @
e235ca5d
...
@@ -21,7 +21,7 @@ import {
...
@@ -21,7 +21,7 @@ import {
Select
,
Select
,
}
from
'
antd
'
;
}
from
'
antd
'
;
import
PageHeader
Layout
from
'
@/layouts/PageHeaderLayout
'
;
import
PageHeader
Wrapper
from
'
@/components/PageHeaderWrapper
'
;
import
Result
from
'
@/components/Result
'
;
import
Result
from
'
@/components/Result
'
;
import
styles
from
'
./BasicList.less
'
;
import
styles
from
'
./BasicList.less
'
;
...
@@ -253,7 +253,7 @@ export default class BasicList extends PureComponent {
...
@@ -253,7 +253,7 @@ export default class BasicList extends PureComponent {
);
);
};
};
return
(
return
(
<
PageHeader
Layout
>
<
PageHeader
Wrapper
>
<
div
className
=
{
styles
.
standardList
}
>
<
div
className
=
{
styles
.
standardList
}
>
<
Card
bordered
=
{
false
}
>
<
Card
bordered
=
{
false
}
>
<
Row
>
<
Row
>
...
@@ -332,7 +332,7 @@ export default class BasicList extends PureComponent {
...
@@ -332,7 +332,7 @@ export default class BasicList extends PureComponent {
>
>
{
getModalContent
()}
{
getModalContent
()}
<
/Modal
>
<
/Modal
>
<
/PageHeader
Layout
>
<
/PageHeader
Wrapper
>
);
);
}
}
}
}
src/pages/List/CardList.js
View file @
e235ca5d
...
@@ -3,7 +3,7 @@ import { connect } from 'dva';
...
@@ -3,7 +3,7 @@ import { connect } from 'dva';
import
{
Card
,
Button
,
Icon
,
List
}
from
'
antd
'
;
import
{
Card
,
Button
,
Icon
,
List
}
from
'
antd
'
;
import
Ellipsis
from
'
@/components/Ellipsis
'
;
import
Ellipsis
from
'
@/components/Ellipsis
'
;
import
PageHeader
Layout
from
'
@/layouts/PageHeaderLayout
'
;
import
PageHeader
Wrapper
from
'
@/components/PageHeaderWrapper
'
;
import
styles
from
'
./CardList.less
'
;
import
styles
from
'
./CardList.less
'
;
...
@@ -61,7 +61,7 @@ export default class CardList extends PureComponent {
...
@@ -61,7 +61,7 @@ export default class CardList extends PureComponent {
);
);
return
(
return
(
<
PageHeader
Layout
title
=
"
卡片列表
"
content
=
{
content
}
extraContent
=
{
extraContent
}
>
<
PageHeader
Wrapper
title
=
"
卡片列表
"
content
=
{
content
}
extraContent
=
{
extraContent
}
>
<
div
className
=
{
styles
.
cardList
}
>
<
div
className
=
{
styles
.
cardList
}
>
<
List
<
List
rowKey
=
"
id
"
rowKey
=
"
id
"
...
@@ -93,7 +93,7 @@ export default class CardList extends PureComponent {
...
@@ -93,7 +93,7 @@ export default class CardList extends PureComponent {
}
}
/
>
/
>
<
/div
>
<
/div
>
<
/PageHeader
Layout
>
<
/PageHeader
Wrapper
>
);
);
}
}
}
}
src/pages/List/List.js
View file @
e235ca5d
...
@@ -2,7 +2,7 @@ import React, { Component } from 'react';
...
@@ -2,7 +2,7 @@ import React, { Component } from 'react';
import
router
from
'
umi/router
'
;
import
router
from
'
umi/router
'
;
import
{
connect
}
from
'
dva
'
;
import
{
connect
}
from
'
dva
'
;
import
{
Input
}
from
'
antd
'
;
import
{
Input
}
from
'
antd
'
;
import
PageHeader
Layout
from
'
@/layouts/PageHeaderLayout
'
;
import
PageHeader
Wrapper
from
'
@/components/PageHeaderWrapper
'
;
@
connect
()
@
connect
()
export
default
class
SearchList
extends
Component
{
export
default
class
SearchList
extends
Component
{
...
@@ -54,7 +54,7 @@ export default class SearchList extends Component {
...
@@ -54,7 +54,7 @@ export default class SearchList extends Component {
const
{
match
,
children
,
location
}
=
this
.
props
;
const
{
match
,
children
,
location
}
=
this
.
props
;
return
(
return
(
<
PageHeader
Layout
<
PageHeader
Wrapper
title
=
"
搜索列表
"
title
=
"
搜索列表
"
content
=
{
mainSearch
}
content
=
{
mainSearch
}
tabList
=
{
tabList
}
tabList
=
{
tabList
}
...
@@ -67,7 +67,7 @@ export default class SearchList extends Component {
...
@@ -67,7 +67,7 @@ export default class SearchList extends Component {
<Route key={item.key} path={item.path} component={item.component} exact={item.exact} />
<Route key={item.key} path={item.path} component={item.component} exact={item.exact} />
))}
))}
</Switch> */
}
</Switch> */
}
<
/PageHeader
Layout
>
<
/PageHeader
Wrapper
>
);
);
}
}
}
}
src/pages/List/TableList.js
View file @
e235ca5d
...
@@ -22,7 +22,7 @@ import {
...
@@ -22,7 +22,7 @@ import {
Radio
,
Radio
,
}
from
'
antd
'
;
}
from
'
antd
'
;
import
StandardTable
from
'
@/components/StandardTable
'
;
import
StandardTable
from
'
@/components/StandardTable
'
;
import
PageHeader
Layout
from
'
@/layouts/PageHeaderLayout
'
;
import
PageHeader
Wrapper
from
'
@/components/PageHeaderWrapper
'
;
import
styles
from
'
./TableList.less
'
;
import
styles
from
'
./TableList.less
'
;
...
@@ -630,7 +630,7 @@ export default class TableList extends PureComponent {
...
@@ -630,7 +630,7 @@ export default class TableList extends PureComponent {
handleUpdate
:
this
.
handleUpdate
,
handleUpdate
:
this
.
handleUpdate
,
};
};
return
(
return
(
<
PageHeader
Layout
title
=
"
查询表格
"
>
<
PageHeader
Wrapper
title
=
"
查询表格
"
>
<
Card
bordered
=
{
false
}
>
<
Card
bordered
=
{
false
}
>
<
div
className
=
{
styles
.
tableList
}
>
<
div
className
=
{
styles
.
tableList
}
>
<
div
className
=
{
styles
.
tableListForm
}
>
{
this
.
renderForm
()}
<
/div
>
<
div
className
=
{
styles
.
tableListForm
}
>
{
this
.
renderForm
()}
<
/div
>
...
@@ -667,7 +667,7 @@ export default class TableList extends PureComponent {
...
@@ -667,7 +667,7 @@ export default class TableList extends PureComponent {
values
=
{
stepFormValues
}
values
=
{
stepFormValues
}
/
>
/
>
)
:
null
}
)
:
null
}
<
/PageHeader
Layout
>
<
/PageHeader
Wrapper
>
);
);
}
}
}
}
src/pages/Profile/AdvancedProfile.js
View file @
e235ca5d
...
@@ -19,7 +19,7 @@ import {
...
@@ -19,7 +19,7 @@ import {
}
from
'
antd
'
;
}
from
'
antd
'
;
import
classNames
from
'
classnames
'
;
import
classNames
from
'
classnames
'
;
import
DescriptionList
from
'
@/components/DescriptionList
'
;
import
DescriptionList
from
'
@/components/DescriptionList
'
;
import
PageHeader
Layout
from
'
@/layouts/PageHeaderLayout
'
;
import
PageHeader
Wrapper
from
'
@/components/PageHeaderWrapper
'
;
import
styles
from
'
./AdvancedProfile.less
'
;
import
styles
from
'
./AdvancedProfile.less
'
;
const
{
Step
}
=
Steps
;
const
{
Step
}
=
Steps
;
...
@@ -257,7 +257,7 @@ export default class AdvancedProfile extends Component {
...
@@ -257,7 +257,7 @@ export default class AdvancedProfile extends Component {
};
};
return
(
return
(
<
PageHeader
Layout
<
PageHeader
Wrapper
title
=
"
单号:234231029431
"
title
=
"
单号:234231029431
"
logo
=
{
logo
=
{
<
img
alt
=
""
src
=
"
https://gw.alipayobjects.com/zos/rmsportal/nxkuOJlFJuAUhzlMTCEe.png
"
/>
<
img
alt
=
""
src
=
"
https://gw.alipayobjects.com/zos/rmsportal/nxkuOJlFJuAUhzlMTCEe.png
"
/>
...
@@ -345,7 +345,7 @@ export default class AdvancedProfile extends Component {
...
@@ -345,7 +345,7 @@ export default class AdvancedProfile extends Component {
>
>
{
contentList
[
operationkey
]}
{
contentList
[
operationkey
]}
<
/Card
>
<
/Card
>
<
/PageHeader
Layout
>
<
/PageHeader
Wrapper
>
);
);
}
}
}
}
src/pages/Profile/BasicProfile.js
View file @
e235ca5d
...
@@ -2,7 +2,7 @@ import React, { Component } from 'react';
...
@@ -2,7 +2,7 @@ import React, { Component } from 'react';
import
{
connect
}
from
'
dva
'
;
import
{
connect
}
from
'
dva
'
;
import
{
Card
,
Badge
,
Table
,
Divider
}
from
'
antd
'
;
import
{
Card
,
Badge
,
Table
,
Divider
}
from
'
antd
'
;
import
DescriptionList
from
'
@/components/DescriptionList
'
;
import
DescriptionList
from
'
@/components/DescriptionList
'
;
import
PageHeader
Layout
from
'
@/layouts/PageHeaderLayout
'
;
import
PageHeader
Wrapper
from
'
@/components/PageHeaderWrapper
'
;
import
styles
from
'
./BasicProfile.less
'
;
import
styles
from
'
./BasicProfile.less
'
;
const
{
Description
}
=
DescriptionList
;
const
{
Description
}
=
DescriptionList
;
...
@@ -142,7 +142,7 @@ export default class BasicProfile extends Component {
...
@@ -142,7 +142,7 @@ export default class BasicProfile extends Component {
},
},
];
];
return
(
return
(
<
PageHeader
Layout
title
=
"
基础详情页
"
>
<
PageHeader
Wrapper
title
=
"
基础详情页
"
>
<
Card
bordered
=
{
false
}
>
<
Card
bordered
=
{
false
}
>
<
DescriptionList
size
=
"
large
"
title
=
"
退款申请
"
style
=
{{
marginBottom
:
32
}}
>
<
DescriptionList
size
=
"
large
"
title
=
"
退款申请
"
style
=
{{
marginBottom
:
32
}}
>
<
Description
term
=
"
取货单号
"
>
1000000000
<
/Description
>
<
Description
term
=
"
取货单号
"
>
1000000000
<
/Description
>
...
@@ -177,7 +177,7 @@ export default class BasicProfile extends Component {
...
@@ -177,7 +177,7 @@ export default class BasicProfile extends Component {
columns
=
{
progressColumns
}
columns
=
{
progressColumns
}
/
>
/
>
<
/Card
>
<
/Card
>
<
/PageHeader
Layout
>
<
/PageHeader
Wrapper
>
);
);
}
}
}
}
src/pages/Result/Error.js
View file @
e235ca5d
...
@@ -2,7 +2,7 @@ import React, { Fragment } from 'react';
...
@@ -2,7 +2,7 @@ import React, { Fragment } from 'react';
import
{
formatMessage
,
FormattedMessage
}
from
'
umi/locale
'
;
import
{
formatMessage
,
FormattedMessage
}
from
'
umi/locale
'
;
import
{
Button
,
Icon
,
Card
}
from
'
antd
'
;
import
{
Button
,
Icon
,
Card
}
from
'
antd
'
;
import
Result
from
'
@/components/Result
'
;
import
Result
from
'
@/components/Result
'
;
import
PageHeader
Layout
from
'
@/layouts/PageHeaderLayout
'
;
import
PageHeader
Wrapper
from
'
@/components/PageHeaderWrapper
'
;
const
extra
=
(
const
extra
=
(
<
Fragment
>
<
Fragment
>
...
@@ -51,7 +51,7 @@ const actions = (
...
@@ -51,7 +51,7 @@ const actions = (
);
);
export
default
()
=>
(
export
default
()
=>
(
<
PageHeader
Layout
>
<
PageHeader
Wrapper
>
<
Card
bordered
=
{
false
}
>
<
Card
bordered
=
{
false
}
>
<
Result
<
Result
type
=
"
error
"
type
=
"
error
"
...
@@ -62,5 +62,5 @@ export default () => (
...
@@ -62,5 +62,5 @@ export default () => (
style
=
{{
marginTop
:
48
,
marginBottom
:
16
}}
style
=
{{
marginTop
:
48
,
marginBottom
:
16
}}
/
>
/
>
<
/Card
>
<
/Card
>
<
/PageHeader
Layout
>
<
/PageHeader
Wrapper
>
);
);
src/pages/Result/Success.js
View file @
e235ca5d
...
@@ -2,7 +2,7 @@ import React, { Fragment } from 'react';
...
@@ -2,7 +2,7 @@ import React, { Fragment } from 'react';
import
{
formatMessage
,
FormattedMessage
}
from
'
umi/locale
'
;
import
{
formatMessage
,
FormattedMessage
}
from
'
umi/locale
'
;
import
{
Button
,
Row
,
Col
,
Icon
,
Steps
,
Card
}
from
'
antd
'
;
import
{
Button
,
Row
,
Col
,
Icon
,
Steps
,
Card
}
from
'
antd
'
;
import
Result
from
'
@/components/Result
'
;
import
Result
from
'
@/components/Result
'
;
import
PageHeader
Layout
from
'
@/layouts/PageHeaderLayout
'
;
import
PageHeader
Wrapper
from
'
@/components/PageHeaderWrapper
'
;
const
{
Step
}
=
Steps
;
const
{
Step
}
=
Steps
;
...
@@ -128,7 +128,7 @@ const actions = (
...
@@ -128,7 +128,7 @@ const actions = (
);
);
export
default
()
=>
(
export
default
()
=>
(
<
PageHeader
Layout
>
<
PageHeader
Wrapper
>
<
Card
bordered
=
{
false
}
>
<
Card
bordered
=
{
false
}
>
<
Result
<
Result
type
=
"
success
"
type
=
"
success
"
...
@@ -139,5 +139,5 @@ export default () => (
...
@@ -139,5 +139,5 @@ export default () => (
style
=
{{
marginTop
:
48
,
marginBottom
:
16
}}
style
=
{{
marginTop
:
48
,
marginBottom
:
16
}}
/
>
/
>
<
/Card
>
<
/Card
>
<
/PageHeader
Layout
>
<
/PageHeader
Wrapper
>
);
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment