[+] Create courses prop. and pass it from overall.vue

This commit is contained in:
Hykilpikonna
2019-08-25 01:57:11 +08:00
parent 3cd9db65ec
commit d7c4c87959
2 changed files with 5 additions and 2 deletions
@@ -1,9 +1,12 @@
import {Component, Vue} from 'vue-property-decorator';
import {Component, Prop, Vue} from 'vue-property-decorator';
import {Course} from '@/components/app/app';
@Component({
})
export default class GraphOverall extends Vue
{
@Prop({required: true}) courses: any;
public chartData =
{
columns: ['日期', '访问用户', '下单用户', '下单率'],
+1 -1
View File
@@ -1,7 +1,7 @@
<template>
<div id="overall">
<p>这是 Overall</p>
<graph-overall></graph-overall>
<graph-overall :courses="courses"></graph-overall>
</div>
</template>