Skip to content

Commit 97c6834

Browse files
committed
refactor(social-box-chart-example): props
1 parent c967f6c commit 97c6834

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/views/dashboard/SocialBoxChartExample.vue

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,16 @@ import { Line } from 'vue-chartjs'
33
44
export default {
55
extends: Line,
6-
props: ['data', 'height'],
6+
props: {
7+
data: {
8+
type: Array,
9+
default: () => [0, 22, 34, 46, 58, 70, 46]
10+
},
11+
height: {
12+
type: String,
13+
default: '100'
14+
}
15+
},
716
mounted () {
817
this.renderChart({
918
labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'],

0 commit comments

Comments
 (0)