Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ant-design-pro-vue
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tianzhuanghu
ant-design-pro-vue
Commits
d6b23f39
Unverified
Commit
d6b23f39
authored
Mar 13, 2019
by
Sendya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor: chart-card api
parent
dbdebca1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
ChartCard.vue
src/components/chart/ChartCard.vue
+13
-4
No files found.
src/components/chart/ChartCard.vue
View file @
d6b23f39
...
@@ -2,12 +2,20 @@
...
@@ -2,12 +2,20 @@
<a-card
:loading=
"loading"
:body-style=
"
{ padding: '20px 24px 8px' }" :bordered="false">
<a-card
:loading=
"loading"
:body-style=
"
{ padding: '20px 24px 8px' }" :bordered="false">
<div
class=
"chart-card-header"
>
<div
class=
"chart-card-header"
>
<div
class=
"meta"
>
<div
class=
"meta"
>
<span
class=
"chart-card-title"
>
{{
title
}}
</span>
<span
class=
"chart-card-title"
>
<slot
name=
"title"
>
{{
title
}}
</slot>
</span>
<span
class=
"chart-card-action"
>
<span
class=
"chart-card-action"
>
<slot
name=
"action"
></slot>
<slot
name=
"action"
></slot>
</span>
</span>
</div>
</div>
<div
class=
"total"
><span>
{{
total
}}
</span></div>
<div
class=
"total"
>
<slot
name=
"total"
>
<span>
{{
typeof
total
===
'function'
&&
total
()
||
total
}}
</span>
</slot>
</div>
</div>
</div>
<div
class=
"chart-card-content"
>
<div
class=
"chart-card-content"
>
<div
class=
"content-fix"
>
<div
class=
"content-fix"
>
...
@@ -31,8 +39,9 @@ export default {
...
@@ -31,8 +39,9 @@ export default {
default
:
''
default
:
''
},
},
total
:
{
total
:
{
type
:
String
,
type
:
[
Function
,
Number
,
String
],
default
:
''
required
:
false
,
default
:
null
},
},
loading
:
{
loading
:
{
type
:
Boolean
,
type
:
Boolean
,
...
...
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