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
e6d23aed
Commit
e6d23aed
authored
Sep 27, 2017
by
ddcat1115
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve responsive
parent
9b23270a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
9 deletions
+35
-9
src/components/PageHeader/demo/standard.md
src/components/PageHeader/demo/standard.md
+2
-2
src/components/PageHeader/index.less
src/components/PageHeader/index.less
+31
-5
src/routes/Profile/AdvancedProfile.js
src/routes/Profile/AdvancedProfile.js
+2
-2
No files found.
src/components/PageHeader/demo/standard.md
View file @
e6d23aed
...
@@ -31,11 +31,11 @@ const action = (
...
@@ -31,11 +31,11 @@ const action = (
const
extra
=
(
const
extra
=
(
<
Row
>
<
Row
>
<
Col
s
pan
=
{
12
}
>
<
Col
s
m
=
{
24
}
md
=
{
12
}
>
<
div
style
=
{
{
color
:
'
rgba(0, 0, 0, 0.43)
'
}
}
>
状态
</
div
>
<
div
style
=
{
{
color
:
'
rgba(0, 0, 0, 0.43)
'
}
}
>
状态
</
div
>
<
div
style
=
{
{
color
:
'
rgba(0, 0, 0, 0.85)
'
,
fontSize
:
20
}
}
>
待审批
</
div
>
<
div
style
=
{
{
color
:
'
rgba(0, 0, 0, 0.85)
'
,
fontSize
:
20
}
}
>
待审批
</
div
>
</
Col
>
</
Col
>
<
Col
s
pan
=
{
12
}
>
<
Col
s
m
=
{
24
}
md
=
{
12
}
>
<
div
style
=
{
{
color
:
'
rgba(0, 0, 0, 0.43)
'
}
}
>
订单金额
</
div
>
<
div
style
=
{
{
color
:
'
rgba(0, 0, 0, 0.43)
'
}
}
>
订单金额
</
div
>
<
div
style
=
{
{
color
:
'
rgba(0, 0, 0, 0.85)
'
,
fontSize
:
20
}
}
>
¥ 568.08
</
div
>
<
div
style
=
{
{
color
:
'
rgba(0, 0, 0, 0.85)
'
,
fontSize
:
20
}
}
>
¥ 568.08
</
div
>
</
Col
>
</
Col
>
...
...
src/components/PageHeader/index.less
View file @
e6d23aed
...
@@ -66,7 +66,7 @@
...
@@ -66,7 +66,7 @@
}
}
}
}
@media screen and (max-width: @screen-
md
) {
@media screen and (max-width: @screen-
xl
) {
.pageHeader {
.pageHeader {
.extraContent {
.extraContent {
margin-left: 44px;
margin-left: 44px;
...
@@ -74,18 +74,44 @@
...
@@ -74,18 +74,44 @@
}
}
}
}
@media screen and (max-width: @screen-
sm
) {
@media screen and (max-width: @screen-
lg
) {
.pageHeader {
.pageHeader {
.extraContent {
.extraContent {
margin-left: 24px;
margin-left: 20px;
}
}
}
@media screen and (max-width: @screen-md) {
.pageHeader {
.row {
display: block;
}
.action, .extraContent {
margin-left: 0;
text-align: left;
}
}
}
@media screen and (max-width: @screen-sm) {
.pageHeader {
.detail {
display: block;
}
}
}
}
}
}
@media screen and (max-width: @screen-xs) {
@media screen and (max-width: @screen-xs) {
.pageHeader {
.pageHeader {
.extraContent {
.action {
margin-left: 8px;
:global {
.ant-btn-group, :not(.ant-btn-group) .ant-button {
display: block;
margin-bottom: 8px;
}
}
}
}
}
}
}
}
src/routes/Profile/AdvancedProfile.js
View file @
e6d23aed
...
@@ -35,11 +35,11 @@ const action = (
...
@@ -35,11 +35,11 @@ const action = (
const
extra
=
(
const
extra
=
(
<
Row
>
<
Row
>
<
Col
span
=
{
12
}
>
<
Col
xs
=
{
24
}
sm
=
{
12
}
>
<
div
className
=
{
styles
.
textSecondary
}
>
状态
<
/div
>
<
div
className
=
{
styles
.
textSecondary
}
>
状态
<
/div
>
<
div
className
=
{
styles
.
heading
}
>
待审批
<
/div
>
<
div
className
=
{
styles
.
heading
}
>
待审批
<
/div
>
<
/Col
>
<
/Col
>
<
Col
span
=
{
12
}
>
<
Col
xs
=
{
24
}
sm
=
{
12
}
>
<
div
className
=
{
styles
.
textSecondary
}
>
订单金额
<
/div
>
<
div
className
=
{
styles
.
textSecondary
}
>
订单金额
<
/div
>
<
div
className
=
{
styles
.
heading
}
>
¥
568.08
<
/div
>
<
div
className
=
{
styles
.
heading
}
>
¥
568.08
<
/div
>
<
/Col
>
<
/Col
>
...
...
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