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
c9164b8b
Commit
c9164b8b
authored
Oct 26, 2017
by
ddcat1115
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/ant-design/test2
parents
03c26af8
95aef7c6
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
16 deletions
+13
-16
src/components/Charts/WaterWave/index.js
src/components/Charts/WaterWave/index.js
+1
-1
src/components/PageHeader/index.js
src/components/PageHeader/index.js
+8
-6
src/layouts/BasicLayout.js
src/layouts/BasicLayout.js
+3
-0
src/routes/Forms/BasicForm.js
src/routes/Forms/BasicForm.js
+1
-1
src/routes/Forms/style.less
src/routes/Forms/style.less
+0
-8
No files found.
src/components/Charts/WaterWave/index.js
View file @
c9164b8b
...
...
@@ -102,7 +102,7 @@ class WaterWave extends PureComponent {
ctx
.
lineTo
(
xOffset
,
canvasHeight
);
ctx
.
lineTo
(
startPoint
[
0
],
startPoint
[
1
]);
const
gradient
=
ctx
.
createLinearGradient
(
0
,
0
,
0
,
170
);
const
gradient
=
ctx
.
createLinearGradient
(
0
,
0
,
0
,
canvasHeight
);
gradient
.
addColorStop
(
0
,
'
#ffffff
'
);
gradient
.
addColorStop
(
1
,
'
#1890FF
'
);
ctx
.
fillStyle
=
gradient
;
...
...
src/components/PageHeader/index.js
View file @
c9164b8b
...
...
@@ -59,9 +59,8 @@ export default class PageHeader extends PureComponent {
const
url
=
`/
${
pathSnippets
.
slice
(
0
,
index
+
1
).
join
(
'
/
'
)}
`
;
return
(
<
Breadcrumb
.
Item
key
=
{
url
}
>
{
createElement
(
linkElement
,
{
to
:
url
,
href
:
url
,
{
createElement
(
index
===
pathSnippets
.
length
-
1
?
'
span
'
:
linkElement
,
{
[
linkElement
===
'
a
'
?
'
href
'
:
'
to
'
]:
url
,
},
breadcrumbNameMap
[
url
]
||
breadcrumbNameMap
[
url
.
replace
(
'
/
'
,
''
)]
||
url
)}
<
/Breadcrumb.Item
>
);
...
...
@@ -69,8 +68,7 @@ export default class PageHeader extends PureComponent {
const
breadcrumbItems
=
[(
<
Breadcrumb
.
Item
key
=
"
home
"
>
{
createElement
(
linkElement
,
{
to
:
'
/
'
,
href
:
'
/
'
,
[
linkElement
===
'
a
'
?
'
href
'
:
'
to
'
]:
'
/
'
,
},
'
ι¦ι‘΅
'
)}
<
/Breadcrumb.Item
>
)].
concat
(
extraBreadcrumbItems
);
...
...
@@ -85,7 +83,11 @@ export default class PageHeader extends PureComponent {
{
breadcrumbList
.
map
(
item
=>
(
<
Breadcrumb
.
Item
key
=
{
item
.
title
}
>
{
item
.
href
?
<
a
href
=
""
>
{
item
.
title
}
<
/a> : item.title
}
{
item
.
href
?
(
createElement
(
linkElement
,
{
[
linkElement
===
'
a
'
?
'
href
'
:
'
to
'
]:
item
.
href
,
},
'
ι¦ι‘΅
'
)
)
:
item
.
title
}
<
/Breadcrumb.Item>
)
)
}
...
...
src/layouts/BasicLayout.js
View file @
c9164b8b
...
...
@@ -58,6 +58,9 @@ class BasicLayout extends React.PureComponent {
getDefaultCollapsedSubMenus
(
props
)
{
const
currentMenuSelectedKeys
=
[...
this
.
getCurrentMenuSelectedKeys
(
props
)];
currentMenuSelectedKeys
.
splice
(
-
1
,
1
);
if
(
currentMenuSelectedKeys
.
length
===
0
)
{
return
[
'
dashboard
'
];
}
return
currentMenuSelectedKeys
;
}
getCurrentMenuSelectedKeys
(
props
)
{
...
...
src/routes/Forms/BasicForm.js
View file @
c9164b8b
...
...
@@ -150,7 +150,7 @@ export default class BasicForms extends PureComponent {
{
getFieldDecorator
(
'
public
'
,
{
initialValue
:
'
1
'
,
})(
<
Radio
.
Group
className
=
{
styles
.
radioGroup
}
>
<
Radio
.
Group
>
<
Radio
value
=
"
1
"
>
ε ¬εΌ
<
/Radio
>
<
Radio
value
=
"
2
"
>
ι¨εε ¬εΌ
<
/Radio
>
<
Radio
value
=
"
3
"
>
δΈε ¬εΌ
<
/Radio
>
...
...
src/routes/Forms/style.less
View file @
c9164b8b
...
...
@@ -88,11 +88,3 @@
color: @text-color-secondary;
font-style: normal;
}
.radioGroup {
:global {
.ant-radio-wrapper {
margin-right: 16px;
}
}
}
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