Change deprecated v-el to ref

Signed-off-by: Jakub Juszczak <netghost03@gmail.com>
This commit is contained in:
Jakub Juszczak
2016-08-23 20:06:50 +02:00
parent 012b9a82bf
commit 92982ef2ac
6 changed files with 12 additions and 12 deletions

View File

@@ -5,7 +5,7 @@ import { mergeOptions } from '../helpers/options'
export default Vue.extend({
template: `
<div>
<canvas id="pie-chart" width=width height=height v-el:canvas></canvas>
<canvas id="pie-chart" width=width height=height ref="canvas"></canvas>
</div>
`,
@@ -32,7 +32,7 @@ export default Vue.extend({
let chartOptions = mergeOptions(this.defaultOptions, options)
this._chart = new Chart(
this.$els.canvas.getContext('2d'), {
this.$refs.canvas.getContext('2d'), {
type: 'pie',
data: data,
options: chartOptions