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
Show 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
````
jsx
import
PageHeader
from
'
ant-design-pro/lib/PageHeader
'
;
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
ButtonGroup
=
Button
.
Group
;
const
description
=
(
<
DescriptionList
col
=
"2"
>
...
...
@@ -31,8 +32,13 @@ const menu = (
const
action
=
(
<
div
>
<
ButtonGroup
>
<
Button
>
ζδ½
</
Button
>
<
Button
>
ζδ½
</
Button
>
<
Dropdown
overlay
=
{
menu
}
placement
=
"bottomRight"
>
<
Button
><
Icon
type
=
"ellipsis"
/></
Button
>
</
Dropdown
>
</
ButtonGroup
>
<
Button
type
=
"primary"
>
δΈ»ζδ½
</
Button
>
</
div
>
);
...
...
src/components/PageHeader/index.less
View file @
9b55900d
...
...
@@ -118,10 +118,14 @@
.pageHeader {
.action {
:global {
.ant-btn-group,
:not(.ant-btn-group)
.ant-btn {
.ant-btn-group, .ant-btn {
display: block;
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';
const
{
Step
}
=
Steps
;
const
{
Description
}
=
DescriptionList
;
const
ButtonGroup
=
Button
.
Group
;
const
getWindowWidth
=
()
=>
(
window
.
innerWidth
||
document
.
documentElement
.
clientWidth
);
...
...
@@ -23,13 +24,13 @@ const menu = (
const
action
=
(
<
div
>
<
ButtonGroup
>
<
Button
>
ζδ½
<
/Button
>
<
Button
>
ζδ½
<
/Button
>
<
Dropdown
overlay
=
{
menu
}
>
<
Button
>
ζ΄ε€
<
Icon
type
=
"
down
"
/>
<
/Button
>
<
Dropdown
overlay
=
{
menu
}
placement
=
"
bottomRight
"
>
<
Button
><
Icon
type
=
"
ellipsis
"
/><
/Button
>
<
/Dropdown
>
<
/ButtonGroup
>
<
Button
type
=
"
primary
"
>
δΈ»ζδ½
<
/Button
>
<
/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