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
e1e0a7d2
Commit
e1e0a7d2
authored
Jul 05, 2018
by
陈帅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style: Card should not use Spin
parent
fba1af02
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
11 deletions
+7
-11
src/components/Charts/ChartCard/index.js
src/components/Charts/ChartCard/index.js
+3
-7
src/components/Charts/ChartCard/index.less
src/components/Charts/ChartCard/index.less
+0
-4
src/routes/Dashboard/Analysis.js
src/routes/Dashboard/Analysis.js
+4
-0
No files found.
src/components/Charts/ChartCard/index.js
View file @
e1e0a7d2
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
{
Card
,
Spin
}
from
'
antd
'
;
import
{
Card
}
from
'
antd
'
;
import
classNames
from
'
classnames
'
;
import
classNames
from
'
classnames
'
;
import
styles
from
'
./index.less
'
;
import
styles
from
'
./index.less
'
;
...
@@ -64,12 +64,8 @@ const ChartCard = ({
...
@@ -64,12 +64,8 @@ const ChartCard = ({
);
);
return
(
return
(
<
Card
bodyStyle
=
{{
padding
:
'
20px 24px 8px 24px
'
}}
{...
rest
}
>
<
Card
loading
=
{
loading
}
bodyStyle
=
{{
padding
:
'
20px 24px 8px 24px
'
}}
{...
rest
}
>
{
{
content
}
<
Spin
spinning
=
{
loading
}
wrapperClassName
=
{
styles
.
spin
}
>
{
content
}
<
/Spin
>
}
<
/Card
>
<
/Card
>
);
);
};
};
...
...
src/components/Charts/ChartCard/index.less
View file @
e1e0a7d2
...
@@ -72,7 +72,3 @@
...
@@ -72,7 +72,3 @@
margin-top: 20px;
margin-top: 20px;
}
}
}
}
.spin :global(.ant-spin-container) {
overflow: visible;
}
src/routes/Dashboard/Analysis.js
View file @
e1e0a7d2
...
@@ -261,6 +261,7 @@ export default class Analysis extends Component {
...
@@ -261,6 +261,7 @@ export default class Analysis extends Component {
<
ChartCard
<
ChartCard
bordered
=
{
false
}
bordered
=
{
false
}
title
=
"
总销售额
"
title
=
"
总销售额
"
loading
=
{
loading
}
action
=
{
action
=
{
<
Tooltip
title
=
"
指标说明
"
>
<
Tooltip
title
=
"
指标说明
"
>
<
Icon
type
=
"
info-circle-o
"
/>
<
Icon
type
=
"
info-circle-o
"
/>
...
@@ -284,6 +285,7 @@ export default class Analysis extends Component {
...
@@ -284,6 +285,7 @@ export default class Analysis extends Component {
<
ChartCard
<
ChartCard
bordered
=
{
false
}
bordered
=
{
false
}
title
=
"
访问量
"
title
=
"
访问量
"
loading
=
{
loading
}
action
=
{
action
=
{
<
Tooltip
title
=
"
指标说明
"
>
<
Tooltip
title
=
"
指标说明
"
>
<
Icon
type
=
"
info-circle-o
"
/>
<
Icon
type
=
"
info-circle-o
"
/>
...
@@ -300,6 +302,7 @@ export default class Analysis extends Component {
...
@@ -300,6 +302,7 @@ export default class Analysis extends Component {
<
ChartCard
<
ChartCard
bordered
=
{
false
}
bordered
=
{
false
}
title
=
"
支付笔数
"
title
=
"
支付笔数
"
loading
=
{
loading
}
action
=
{
action
=
{
<
Tooltip
title
=
"
指标说明
"
>
<
Tooltip
title
=
"
指标说明
"
>
<
Icon
type
=
"
info-circle-o
"
/>
<
Icon
type
=
"
info-circle-o
"
/>
...
@@ -316,6 +319,7 @@ export default class Analysis extends Component {
...
@@ -316,6 +319,7 @@ export default class Analysis extends Component {
<
ChartCard
<
ChartCard
bordered
=
{
false
}
bordered
=
{
false
}
title
=
"
运营活动效果
"
title
=
"
运营活动效果
"
loading
=
{
loading
}
action
=
{
action
=
{
<
Tooltip
title
=
"
指标说明
"
>
<
Tooltip
title
=
"
指标说明
"
>
<
Icon
type
=
"
info-circle-o
"
/>
<
Icon
type
=
"
info-circle-o
"
/>
...
...
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