From 4d02df581f20821dfb8823f038fb141f63788429 Mon Sep 17 00:00:00 2001 From: SILVER PANG Date: Mon, 7 Nov 2016 15:37:07 +0800 Subject: [PATCH] Update README.md fix the syntax error of the example --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7cccad51..7f25bd2c 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,7 @@ You can overwrite the default chart options. Just pass the options object as a s import { Line } from 'vue-chartjs' export default Line.extend({ - props: [data, options], + props: ["data", "options"], mounted () { this.renderChart(this.data, this.options) } @@ -107,8 +107,8 @@ The mixins automatically create `chartData` as a prop or data. And add a watcher import { Line, reactiveProp } from 'vue-chartjs' export default Line.extend({ - mixins: [reactiveProp] - props: [chartData, options], + mixins: [reactiveProp], + props: ["chartData", "options"], mounted () { this.renderChart(this.chartData, this.options) }