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
9b55900d
Commit
9b55900d
authored
Oct 30, 2017
by
ddcat1115
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix button list rule
parent
52f53560
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
11 deletions
+22
-11
src/components/PageHeader/demo/standard.md
src/components/PageHeader/demo/standard.md
+9
-3
src/components/PageHeader/index.less
src/components/PageHeader/index.less
+5
-1
src/routes/Profile/AdvancedProfile.js
src/routes/Profile/AdvancedProfile.js
+8
-7
No files found.
src/components/PageHeader/demo/standard.md
View file @
9b55900d
...
@@ -8,9 +8,10 @@ title: Standard
...
@@ -8,9 +8,10 @@ title: Standard
````
jsx
````
jsx
import
PageHeader
from
'
ant-design-pro/lib/PageHeader
'
;
import
PageHeader
from
'
ant-design-pro/lib/PageHeader
'
;
import
DescriptionList
from
'
ant-design-pro/lib/DescriptionList
'
;
import
DescriptionList
from
'
ant-design-pro/lib/DescriptionList
'
;
import
{
Button
,
Menu
,
Icon
,
Row
,
Col
}
from
'
antd
'
;
import
{
Button
,
Menu
,
Dropdown
,
Icon
,
Row
,
Col
}
from
'
antd
'
;
const
{
Description
}
=
DescriptionList
;
const
{
Description
}
=
DescriptionList
;
const
ButtonGroup
=
Button
.
Group
;
const
description
=
(
const
description
=
(
<
DescriptionList
col
=
"2"
>
<
DescriptionList
col
=
"2"
>
...
@@ -31,8 +32,13 @@ const menu = (
...
@@ -31,8 +32,13 @@ const menu = (
const
action
=
(
const
action
=
(
<
div
>
<
div
>
<
Button
>
ζδ½
</
Button
>
<
ButtonGroup
>
<
Button
>
ζδ½
</
Button
>
<
Button
>
ζδ½
</
Button
>
<
Button
>
ζδ½
</
Button
>
<
Dropdown
overlay
=
{
menu
}
placement
=
"bottomRight"
>
<
Button
><
Icon
type
=
"ellipsis"
/></
Button
>
</
Dropdown
>
</
ButtonGroup
>
<
Button
type
=
"primary"
>
δΈ»ζδ½
</
Button
>
<
Button
type
=
"primary"
>
δΈ»ζδ½
</
Button
>
</
div
>
</
div
>
);
);
...
...
src/components/PageHeader/index.less
View file @
9b55900d
...
@@ -118,10 +118,14 @@
...
@@ -118,10 +118,14 @@
.pageHeader {
.pageHeader {
.action {
.action {
:global {
:global {
.ant-btn-group,
:not(.ant-btn-group)
.ant-btn {
.ant-btn-group, .ant-btn {
display: block;
display: block;
margin-bottom: 8px;
margin-bottom: 8px;
}
}
.ant-btn-group > .ant-btn {
display: inline-block;
margin-bottom: 0;
}
}
}
}
}
}
}
...
...
src/routes/Profile/AdvancedProfile.js
View file @
9b55900d
...
@@ -10,6 +10,7 @@ import styles from './AdvancedProfile.less';
...
@@ -10,6 +10,7 @@ import styles from './AdvancedProfile.less';
const
{
Step
}
=
Steps
;
const
{
Step
}
=
Steps
;
const
{
Description
}
=
DescriptionList
;
const
{
Description
}
=
DescriptionList
;
const
ButtonGroup
=
Button
.
Group
;
const
getWindowWidth
=
()
=>
(
window
.
innerWidth
||
document
.
documentElement
.
clientWidth
);
const
getWindowWidth
=
()
=>
(
window
.
innerWidth
||
document
.
documentElement
.
clientWidth
);
...
@@ -23,13 +24,13 @@ const menu = (
...
@@ -23,13 +24,13 @@ const menu = (
const
action
=
(
const
action
=
(
<
div
>
<
div
>
<
Button
>
ζδ½
<
/Button
>
<
Button
Group
>
<
Button
>
ζδ½
<
/Button
>
<
Button
>
ζδ½
<
/Button
>
<
Dropdown
overlay
=
{
menu
}
>
<
Button
>
ζδ½
<
/Button
>
<
Button
>
<
Dropdown
overlay
=
{
menu
}
placement
=
"
bottomRight
"
>
ζ΄ε€
<
Icon
type
=
"
down
"
/
>
<
Button
><
Icon
type
=
"
ellipsis
"
/><
/Button
>
<
/
Butto
n
>
<
/
Dropdow
n
>
<
/
Dropdown
>
<
/
ButtonGroup
>
<
Button
type
=
"
primary
"
>
δΈ»ζδ½
<
/Button
>
<
Button
type
=
"
primary
"
>
δΈ»ζδ½
<
/Button
>
<
/div
>
<
/div
>
);
);
...
...
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