primevue-mirror/components/lib/chart/BaseChart.vue

34 lines
647 B
Vue
Raw Normal View History

2023-05-31 06:44:48 +00:00
<script>
import BaseComponent from 'primevue/basecomponent';
import ChartStyle from 'primevue/chart/style';
2023-05-31 06:44:48 +00:00
export default {
name: 'BaseChart',
extends: BaseComponent,
props: {
type: String,
data: null,
options: null,
plugins: null,
width: {
type: Number,
default: 300
},
height: {
type: Number,
default: 150
},
canvasProps: {
type: null,
default: null
}
},
style: ChartStyle,
2023-05-31 06:44:48 +00:00
provide() {
return {
$parentInstance: this
};
}
};
</script>