Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pro-blocks
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
pro-blocks
Commits
e235ca5d
Commit
e235ca5d
authored
6 years ago
by
afc163
Committed by
偏右
6 years ago
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
This diff is collapsed.
Click to expand it.
src/
layouts
/GridContent.less
→
src/
components/PageHeaderWrapper
/GridContent.less
View file @
e235ca5d
File moved
This diff is collapsed.
Click to expand it.
src/
layouts/PageHeaderLayout
.js
→
src/
components/PageHeaderWrapper/index
.js
View file @
e235ca5d
...
...
@@ -4,10 +4,10 @@ import Link from 'umi/link';
import
PageHeader
from
'
@/components/PageHeader
'
;
import
{
connect
}
from
'
dva
'
;
import
GridContent
from
'
./GridContent
'
;
import
styles
from
'
./
PageHeaderLayout
.less
'
;
import
MenuContext
from
'
.
/MenuContext
'
;
import
styles
from
'
./
index
.less
'
;
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
}
>
{
top
}
<
MenuContext
.
Consumer
>
...
...
@@ -38,4 +38,4 @@ const PageHeaderLayout = ({ children, grid, wrapperClassName, top, ...restProps
export
default
connect
(({
setting
})
=>
({
grid
:
setting
.
grid
,
}))(
PageHeader
Layout
);
}))(
PageHeader
Wrapper
);
This diff is collapsed.
Click to expand it.
src/
layouts/PageHeaderLayout
.less
→
src/
components/PageHeaderWrapper/index
.less
View file @
e235ca5d
File moved
This diff is collapsed.
Click to expand it.
src/pages/Account/Center/Center.js
View file @
e235ca5d
...
...
@@ -3,7 +3,7 @@ import { connect } from 'dva';
import
Link
from
'
umi/link
'
;
import
router
from
'
umi/router
'
;
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
'
;
@
connect
(({
loading
,
user
,
project
})
=>
({
...
...
This diff is collapsed.
Click to expand it.
src/pages/Account/Settings/Info.js
View file @
e235ca5d
...
...
@@ -3,7 +3,7 @@ import { connect } from 'dva';
import
router
from
'
umi/router
'
;
import
{
FormattedMessage
}
from
'
umi/locale
'
;
import
{
Menu
}
from
'
antd
'
;
import
GridContent
from
'
@/
layouts
/GridContent
'
;
import
GridContent
from
'
@/
components/PageHeaderWrapper
/GridContent
'
;
import
styles
from
'
./Info.less
'
;
const
{
Item
}
=
Menu
;
...
...
This diff is collapsed.
Click to expand it.
src/pages/Dashboard/Analysis.js
View file @
e235ca5d
...
...
@@ -27,7 +27,7 @@ import {
import
Trend
from
'
@/components/Trend
'
;
import
NumberInfo
from
'
@/components/NumberInfo
'
;
import
numeral
from
'
numeral
'
;
import
GridContent
from
'
@/
layouts
/GridContent
'
;
import
GridContent
from
'
@/
components/PageHeaderWrapper
/GridContent
'
;
import
Yuan
from
'
@/utils/Yuan
'
;
import
{
getTimeDistance
}
from
'
@/utils/utils
'
;
...
...
This diff is collapsed.
Click to expand it.
src/pages/Dashboard/Monitor.js
View file @
e235ca5d
...
...
@@ -6,7 +6,7 @@ import NumberInfo from '@/components/NumberInfo';
import
CountDown
from
'
@/components/CountDown
'
;
import
ActiveChart
from
'
@/components/ActiveChart
'
;
import
numeral
from
'
numeral
'
;
import
GridContent
from
'
@/
layouts
/GridContent
'
;
import
GridContent
from
'
@/
components/PageHeaderWrapper
/GridContent
'
;
import
Authorized
from
'
@/utils/Authorized
'
;
import
styles
from
'
./Monitor.less
'
;
...
...
This diff is collapsed.
Click to expand it.
src/pages/Dashboard/Workplace.js
View file @
e235ca5d
...
...
@@ -6,7 +6,7 @@ import { Row, Col, Card, List, Avatar } from 'antd';
import
{
Radar
}
from
'
@/components/Charts
'
;
import
EditableLinkGroup
from
'
@/components/EditableLinkGroup
'
;
import
PageHeader
Layout
from
'
@/layouts/PageHeaderLayout
'
;
import
PageHeader
Wrapper
from
'
@/components/PageHeaderWrapper
'
;
import
styles
from
'
./Workplace.less
'
;
...
...
@@ -156,7 +156,7 @@ export default class Workplace extends PureComponent {
);
return
(
<
PageHeader
Layout
<
PageHeader
Wrapper
loading
=
{
currentUserLoading
}
content
=
{
pageHeaderContent
}
extraContent
=
{
extraContent
}
...
...
@@ -248,7 +248,7 @@ export default class Workplace extends PureComponent {
<
/Card
>
<
/Col
>
<
/Row
>
<
/PageHeader
Layout
>
<
/PageHeader
Wrapper
>
);
}
}
This diff is collapsed.
Click to expand it.
src/pages/Forms/AdvancedForm.js
View file @
e235ca5d
...
...
@@ -14,7 +14,7 @@ import {
}
from
'
antd
'
;
import
{
connect
}
from
'
dva
'
;
import
FooterToolbar
from
'
@/components/FooterToolbar
'
;
import
PageHeader
Layout
from
'
@/layouts/PageHeaderLayout
'
;
import
PageHeader
Wrapper
from
'
@/components/PageHeaderWrapper
'
;
import
TableForm
from
'
./TableForm
'
;
import
styles
from
'
./style.less
'
;
...
...
@@ -142,7 +142,7 @@ export default class AdvancedForm extends PureComponent {
};
const
{
width
}
=
this
.
state
;
return
(
<
PageHeader
Layout
<
PageHeader
Wrapper
title
=
"
高级表单
"
content
=
"
高级表单常见于一次性输入和提交大批量数据的场景。
"
wrapperClassName
=
{
styles
.
advancedForm
}
...
...
@@ -303,7 +303,7 @@ export default class AdvancedForm extends PureComponent {
提交
<
/Button
>
<
/FooterToolbar
>
<
/PageHeader
Layout
>
<
/PageHeader
Wrapper
>
);
}
}
This diff is collapsed.
Click to expand it.
src/pages/Forms/BasicForm.js
View file @
e235ca5d
...
...
@@ -12,7 +12,7 @@ import {
Icon
,
Tooltip
,
}
from
'
antd
'
;
import
PageHeader
Layout
from
'
@/layouts/PageHeaderLayout
'
;
import
PageHeader
Wrapper
from
'
@/components/PageHeaderWrapper
'
;
import
styles
from
'
./style.less
'
;
const
FormItem
=
Form
.
Item
;
...
...
@@ -64,7 +64,7 @@ export default class BasicForms extends PureComponent {
};
return
(
<
PageHeader
Layout
<
PageHeader
Wrapper
title
=
"
基础表单
"
content
=
"
表单页用于向用户收集或验证信息,基础表单常见于数据项较少的表单场景。
"
>
...
...
@@ -196,7 +196,7 @@ export default class BasicForms extends PureComponent {
<
/FormItem
>
<
/Form
>
<
/Card
>
<
/PageHeader
Layout
>
<
/PageHeader
Wrapper
>
);
}
}
This diff is collapsed.
Click to expand it.
src/pages/Forms/StepForm/index.js
View file @
e235ca5d
import
React
,
{
PureComponent
,
Fragment
}
from
'
react
'
;
import
{
Card
,
Steps
}
from
'
antd
'
;
import
PageHeader
Layout
from
'
@/layouts/PageHeaderLayout
'
;
import
PageHeader
Wrapper
from
'
@/components/PageHeaderWrapper
'
;
import
styles
from
'
../style.less
'
;
// import { Route, Redirect, Switch } from 'dva/router';
...
...
@@ -28,7 +28,7 @@ export default class StepForm extends PureComponent {
render
()
{
const
{
location
,
children
}
=
this
.
props
;
return
(
<
PageHeader
Layout
<
PageHeader
Wrapper
title
=
"
分步表单
"
tabActiveKey
=
{
location
.
pathname
}
content
=
"
将一个冗长或用户不熟悉的表单任务分成多个步骤,指导用户完成。
"
...
...
@@ -43,7 +43,7 @@ export default class StepForm extends PureComponent {
{
children
}
<
/Fragment
>
<
/Card
>
<
/PageHeader
Layout
>
<
/PageHeader
Wrapper
>
);
}
}
This diff is collapsed.
Click to expand it.
src/pages/List/BasicList.js
View file @
e235ca5d
...
...
@@ -21,7 +21,7 @@ import {
Select
,
}
from
'
antd
'
;
import
PageHeader
Layout
from
'
@/layouts/PageHeaderLayout
'
;
import
PageHeader
Wrapper
from
'
@/components/PageHeaderWrapper
'
;
import
Result
from
'
@/components/Result
'
;
import
styles
from
'
./BasicList.less
'
;
...
...
@@ -253,7 +253,7 @@ export default class BasicList extends PureComponent {
);
};
return
(
<
PageHeader
Layout
>
<
PageHeader
Wrapper
>
<
div
className
=
{
styles
.
standardList
}
>
<
Card
bordered
=
{
false
}
>
<
Row
>
...
...
@@ -332,7 +332,7 @@ export default class BasicList extends PureComponent {
>
{
getModalContent
()}
<
/Modal
>
<
/PageHeader
Layout
>
<
/PageHeader
Wrapper
>
);
}
}
This diff is collapsed.
Click to expand it.
src/pages/List/CardList.js
View file @
e235ca5d
...
...
@@ -3,7 +3,7 @@ import { connect } from 'dva';
import
{
Card
,
Button
,
Icon
,
List
}
from
'
antd
'
;
import
Ellipsis
from
'
@/components/Ellipsis
'
;
import
PageHeader
Layout
from
'
@/layouts/PageHeaderLayout
'
;
import
PageHeader
Wrapper
from
'
@/components/PageHeaderWrapper
'
;
import
styles
from
'
./CardList.less
'
;
...
...
@@ -61,7 +61,7 @@ export default class CardList extends PureComponent {
);
return
(
<
PageHeader
Layout
title
=
"
卡片列表
"
content
=
{
content
}
extraContent
=
{
extraContent
}
>
<
PageHeader
Wrapper
title
=
"
卡片列表
"
content
=
{
content
}
extraContent
=
{
extraContent
}
>
<
div
className
=
{
styles
.
cardList
}
>
<
List
rowKey
=
"
id
"
...
...
@@ -93,7 +93,7 @@ export default class CardList extends PureComponent {
}
/
>
<
/div
>
<
/PageHeader
Layout
>
<
/PageHeader
Wrapper
>
);
}
}
This diff is collapsed.
Click to expand it.
src/pages/List/List.js
View file @
e235ca5d
...
...
@@ -2,7 +2,7 @@ import React, { Component } from 'react';
import
router
from
'
umi/router
'
;
import
{
connect
}
from
'
dva
'
;
import
{
Input
}
from
'
antd
'
;
import
PageHeader
Layout
from
'
@/layouts/PageHeaderLayout
'
;
import
PageHeader
Wrapper
from
'
@/components/PageHeaderWrapper
'
;
@
connect
()
export
default
class
SearchList
extends
Component
{
...
...
@@ -54,7 +54,7 @@ export default class SearchList extends Component {
const
{
match
,
children
,
location
}
=
this
.
props
;
return
(
<
PageHeader
Layout
<
PageHeader
Wrapper
title
=
"
搜索列表
"
content
=
{
mainSearch
}
tabList
=
{
tabList
}
...
...
@@ -67,7 +67,7 @@ export default class SearchList extends Component {
<Route key={item.key} path={item.path} component={item.component} exact={item.exact} />
))}
</Switch> */
}
<
/PageHeader
Layout
>
<
/PageHeader
Wrapper
>
);
}
}
This diff is collapsed.
Click to expand it.
src/pages/List/TableList.js
View file @
e235ca5d
...
...
@@ -22,7 +22,7 @@ import {
Radio
,
}
from
'
antd
'
;
import
StandardTable
from
'
@/components/StandardTable
'
;
import
PageHeader
Layout
from
'
@/layouts/PageHeaderLayout
'
;
import
PageHeader
Wrapper
from
'
@/components/PageHeaderWrapper
'
;
import
styles
from
'
./TableList.less
'
;
...
...
@@ -630,7 +630,7 @@ export default class TableList extends PureComponent {
handleUpdate
:
this
.
handleUpdate
,
};
return
(
<
PageHeader
Layout
title
=
"
查询表格
"
>
<
PageHeader
Wrapper
title
=
"
查询表格
"
>
<
Card
bordered
=
{
false
}
>
<
div
className
=
{
styles
.
tableList
}
>
<
div
className
=
{
styles
.
tableListForm
}
>
{
this
.
renderForm
()}
<
/div
>
...
...
@@ -667,7 +667,7 @@ export default class TableList extends PureComponent {
values
=
{
stepFormValues
}
/
>
)
:
null
}
<
/PageHeader
Layout
>
<
/PageHeader
Wrapper
>
);
}
}
This diff is collapsed.
Click to expand it.
src/pages/Profile/AdvancedProfile.js
View file @
e235ca5d
...
...
@@ -19,7 +19,7 @@ import {
}
from
'
antd
'
;
import
classNames
from
'
classnames
'
;
import
DescriptionList
from
'
@/components/DescriptionList
'
;
import
PageHeader
Layout
from
'
@/layouts/PageHeaderLayout
'
;
import
PageHeader
Wrapper
from
'
@/components/PageHeaderWrapper
'
;
import
styles
from
'
./AdvancedProfile.less
'
;
const
{
Step
}
=
Steps
;
...
...
@@ -257,7 +257,7 @@ export default class AdvancedProfile extends Component {
};
return
(
<
PageHeader
Layout
<
PageHeader
Wrapper
title
=
"
单号:234231029431
"
logo
=
{
<
img
alt
=
""
src
=
"
https://gw.alipayobjects.com/zos/rmsportal/nxkuOJlFJuAUhzlMTCEe.png
"
/>
...
...
@@ -345,7 +345,7 @@ export default class AdvancedProfile extends Component {
>
{
contentList
[
operationkey
]}
<
/Card
>
<
/PageHeader
Layout
>
<
/PageHeader
Wrapper
>
);
}
}
This diff is collapsed.
Click to expand it.
src/pages/Profile/BasicProfile.js
View file @
e235ca5d
...
...
@@ -2,7 +2,7 @@ import React, { Component } from 'react';
import
{
connect
}
from
'
dva
'
;
import
{
Card
,
Badge
,
Table
,
Divider
}
from
'
antd
'
;
import
DescriptionList
from
'
@/components/DescriptionList
'
;
import
PageHeader
Layout
from
'
@/layouts/PageHeaderLayout
'
;
import
PageHeader
Wrapper
from
'
@/components/PageHeaderWrapper
'
;
import
styles
from
'
./BasicProfile.less
'
;
const
{
Description
}
=
DescriptionList
;
...
...
@@ -142,7 +142,7 @@ export default class BasicProfile extends Component {
},
];
return
(
<
PageHeader
Layout
title
=
"
基础详情页
"
>
<
PageHeader
Wrapper
title
=
"
基础详情页
"
>
<
Card
bordered
=
{
false
}
>
<
DescriptionList
size
=
"
large
"
title
=
"
退款申请
"
style
=
{{
marginBottom
:
32
}}
>
<
Description
term
=
"
取货单号
"
>
1000000000
<
/Description
>
...
...
@@ -177,7 +177,7 @@ export default class BasicProfile extends Component {
columns
=
{
progressColumns
}
/
>
<
/Card
>
<
/PageHeader
Layout
>
<
/PageHeader
Wrapper
>
);
}
}
This diff is collapsed.
Click to expand it.
src/pages/Result/Error.js
View file @
e235ca5d
...
...
@@ -2,7 +2,7 @@ import React, { Fragment } from 'react';
import
{
formatMessage
,
FormattedMessage
}
from
'
umi/locale
'
;
import
{
Button
,
Icon
,
Card
}
from
'
antd
'
;
import
Result
from
'
@/components/Result
'
;
import
PageHeader
Layout
from
'
@/layouts/PageHeaderLayout
'
;
import
PageHeader
Wrapper
from
'
@/components/PageHeaderWrapper
'
;
const
extra
=
(
<
Fragment
>
...
...
@@ -51,7 +51,7 @@ const actions = (
);
export
default
()
=>
(
<
PageHeader
Layout
>
<
PageHeader
Wrapper
>
<
Card
bordered
=
{
false
}
>
<
Result
type
=
"
error
"
...
...
@@ -62,5 +62,5 @@ export default () => (
style
=
{{
marginTop
:
48
,
marginBottom
:
16
}}
/
>
<
/Card
>
<
/PageHeader
Layout
>
<
/PageHeader
Wrapper
>
);
This diff is collapsed.
Click to expand it.
src/pages/Result/Success.js
View file @
e235ca5d
...
...
@@ -2,7 +2,7 @@ import React, { Fragment } from 'react';
import
{
formatMessage
,
FormattedMessage
}
from
'
umi/locale
'
;
import
{
Button
,
Row
,
Col
,
Icon
,
Steps
,
Card
}
from
'
antd
'
;
import
Result
from
'
@/components/Result
'
;
import
PageHeader
Layout
from
'
@/layouts/PageHeaderLayout
'
;
import
PageHeader
Wrapper
from
'
@/components/PageHeaderWrapper
'
;
const
{
Step
}
=
Steps
;
...
...
@@ -128,7 +128,7 @@ const actions = (
);
export
default
()
=>
(
<
PageHeader
Layout
>
<
PageHeader
Wrapper
>
<
Card
bordered
=
{
false
}
>
<
Result
type
=
"
success
"
...
...
@@ -139,5 +139,5 @@ export default () => (
style
=
{{
marginTop
:
48
,
marginBottom
:
16
}}
/
>
<
/Card
>
<
/PageHeader
Layout
>
<
/PageHeader
Wrapper
>
);
This diff is collapsed.
Click to expand it.
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