From 072724fc6f824f1496a1c8e0dd3b7d024bc1eb80 Mon Sep 17 00:00:00 2001 From: Daniel Shuy Date: Wed, 13 Dec 2017 20:58:43 +0800 Subject: [PATCH] Fix references to private _plugins data property --- src/BaseCharts/Bar.js | 4 ++-- src/BaseCharts/Bubble.js | 4 ++-- src/BaseCharts/Doughnut.js | 4 ++-- src/BaseCharts/HorizontalBar.js | 4 ++-- src/BaseCharts/Line.js | 4 ++-- src/BaseCharts/Pie.js | 4 ++-- src/BaseCharts/PolarArea.js | 4 ++-- src/BaseCharts/Radar.js | 4 ++-- src/BaseCharts/Scatter.js | 4 ++-- 9 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/BaseCharts/Bar.js b/src/BaseCharts/Bar.js index 34403b5a..a52fd57b 100644 --- a/src/BaseCharts/Bar.js +++ b/src/BaseCharts/Bar.js @@ -77,7 +77,7 @@ export default { methods: { addPlugin (plugin) { - this._plugins.push(plugin) + this.$data._plugins.push(plugin) }, renderChart (data, options) { let chartOptions = mergeOptions(this.defaultOptions, options) @@ -86,7 +86,7 @@ export default { type: 'bar', data: data, options: chartOptions, - plugins: this._plugins + plugins: this.$data._plugins } ) } diff --git a/src/BaseCharts/Bubble.js b/src/BaseCharts/Bubble.js index 13321a51..14df228a 100644 --- a/src/BaseCharts/Bubble.js +++ b/src/BaseCharts/Bubble.js @@ -79,7 +79,7 @@ export default { methods: { addPlugin (plugin) { - this._plugins.push(plugin) + this.$data._plugins.push(plugin) }, renderChart (data, options) { let chartOptions = mergeOptions(this.defaultOptions, options) @@ -89,7 +89,7 @@ export default { type: 'bubble', data: data, options: chartOptions, - plugins: this._plugins + plugins: this.$data._plugins } ) } diff --git a/src/BaseCharts/Doughnut.js b/src/BaseCharts/Doughnut.js index 73a01944..aaab9c79 100644 --- a/src/BaseCharts/Doughnut.js +++ b/src/BaseCharts/Doughnut.js @@ -62,7 +62,7 @@ export default { methods: { addPlugin (plugin) { - this._plugins.push(plugin) + this.$data._plugins.push(plugin) }, renderChart (data, options) { let chartOptions = mergeOptions(this.defaultOptions, options) @@ -72,7 +72,7 @@ export default { type: 'doughnut', data: data, options: chartOptions, - plugins: this._plugins + plugins: this.$data._plugins } ) } diff --git a/src/BaseCharts/HorizontalBar.js b/src/BaseCharts/HorizontalBar.js index eeb4dd30..b9e57d58 100644 --- a/src/BaseCharts/HorizontalBar.js +++ b/src/BaseCharts/HorizontalBar.js @@ -79,7 +79,7 @@ export default { methods: { addPlugin (plugin) { - this._plugins.push(plugin) + this.$data._plugins.push(plugin) }, renderChart (data, options, type) { let chartOptions = mergeOptions(this.defaultOptions, options) @@ -88,7 +88,7 @@ export default { type: 'horizontalBar', data: data, options: chartOptions, - plugins: this._plugins + plugins: this.$data._plugins } ) } diff --git a/src/BaseCharts/Line.js b/src/BaseCharts/Line.js index 029ac2a5..3daa6591 100644 --- a/src/BaseCharts/Line.js +++ b/src/BaseCharts/Line.js @@ -77,7 +77,7 @@ export default { methods: { addPlugin (plugin) { - this._plugins.push(plugin) + this.$data._plugins.push(plugin) }, renderChart (data, options) { let chartOptions = mergeOptions(this.defaultOptions, options) @@ -87,7 +87,7 @@ export default { type: 'line', data: data, options: chartOptions, - plugins: this._plugins + plugins: this.$data._plugins } ) } diff --git a/src/BaseCharts/Pie.js b/src/BaseCharts/Pie.js index 1071c5b4..99d7a4f0 100644 --- a/src/BaseCharts/Pie.js +++ b/src/BaseCharts/Pie.js @@ -62,7 +62,7 @@ export default { methods: { addPlugin (plugin) { - this._plugins.push(plugin) + this.$data._plugins.push(plugin) }, renderChart (data, options) { let chartOptions = mergeOptions(this.defaultOptions, options) @@ -72,7 +72,7 @@ export default { type: 'pie', data: data, options: chartOptions, - plugins: this._plugins + plugins: this.$data._plugins } ) } diff --git a/src/BaseCharts/PolarArea.js b/src/BaseCharts/PolarArea.js index d9834c79..f33b6823 100644 --- a/src/BaseCharts/PolarArea.js +++ b/src/BaseCharts/PolarArea.js @@ -62,7 +62,7 @@ export default { methods: { addPlugin (plugin) { - this._plugins.push(plugin) + this.$data._plugins.push(plugin) }, renderChart (data, options) { let chartOptions = mergeOptions(this.defaultOptions, options) @@ -72,7 +72,7 @@ export default { type: 'polarArea', data: data, options: chartOptions, - plugins: this._plugins + plugins: this.$data._plugins } ) } diff --git a/src/BaseCharts/Radar.js b/src/BaseCharts/Radar.js index 080393d6..e6acd914 100644 --- a/src/BaseCharts/Radar.js +++ b/src/BaseCharts/Radar.js @@ -62,7 +62,7 @@ export default { methods: { addPlugin (plugin) { - this._plugins.push(plugin) + this.$data._plugins.push(plugin) }, renderChart (data, options) { let chartOptions = mergeOptions(this.defaultOptions, options) @@ -72,7 +72,7 @@ export default { type: 'radar', data: data, options: chartOptions, - plugins: this._plugins + plugins: this.$data._plugins } ) } diff --git a/src/BaseCharts/Scatter.js b/src/BaseCharts/Scatter.js index b7969398..e29e0cb0 100644 --- a/src/BaseCharts/Scatter.js +++ b/src/BaseCharts/Scatter.js @@ -68,7 +68,7 @@ export default { methods: { addPlugin (plugin) { - this._plugins.push(plugin) + this.$data._plugins.push(plugin) }, renderChart (data, options) { let chartOptions = mergeOptions(this.defaultOptions, options) @@ -78,7 +78,7 @@ export default { type: 'scatter', data: data, options: chartOptions, - plugins: this._plugins + plugins: this.$data._plugins } ) }