This commit is contained in:
@@ -4,7 +4,7 @@ import { Line } from "vue-chartjs";
|
||||
export default {
|
||||
extends: Line,
|
||||
props: {
|
||||
chartdata: {
|
||||
chartData: {
|
||||
type: Object,
|
||||
default: null
|
||||
},
|
||||
@@ -13,8 +13,16 @@ export default {
|
||||
default: null
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
chartData() {
|
||||
// debugger;
|
||||
// this.$data._chart.update();
|
||||
// this.$data._chart.renderChart();
|
||||
this.renderChart(this.chartData, this.options);
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.renderChart(this.chartdata, this.options);
|
||||
this.renderChart(this.chartData, this.options);
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user