Refactor #3911 - For Chart

This commit is contained in:
Tuğçe Küçükoğlu 2023-05-02 10:18:02 +03:00
parent aedc26d859
commit fba71b1864
3 changed files with 47 additions and 2 deletions

View file

@ -1,12 +1,15 @@
<template>
<div class="p-chart">
<canvas ref="canvas" :width="width" :height="height" @click="onCanvasClick($event)" v-bind="canvasProps"></canvas>
<div class="p-chart" v-bind="ptm('root')">
<canvas ref="canvas" :width="width" :height="height" @click="onCanvasClick($event)" v-bind="{ ...canvasProps, ...ptm('canvas') }"></canvas>
</div>
</template>
<script>
import BaseComponent from 'primevue/basecomponent';
export default {
name: 'Chart',
extends: BaseComponent,
emits: ['select', 'loaded'],
props: {
type: String,