Chart styled and unstyled mode updates

pull/4931/head
tugcekucukoglu 2023-12-05 12:56:30 +03:00
parent de6ad7a58c
commit 2c9a39654d
3 changed files with 5 additions and 15 deletions

View File

@ -1,5 +1,5 @@
<template>
<div :class="cx('root')" v-bind="ptm('root')" data-pc-name="chart">
<div :class="cx('root')" :style="sx('root')" v-bind="ptm('root')" data-pc-name="chart">
<canvas ref="canvas" :width="width" :height="height" @click="onCanvasClick($event)" v-bind="{ ...canvasProps, ...ptm('canvas') }"></canvas>
</div>
</template>

View File

@ -1,12 +1,8 @@
import BaseStyle from 'primevue/base/style';
const css = `
@layer primevue {
.p-chart {
position: relative;
}
}
`;
const inlineStyles = {
root: { position: 'relative' }
};
const classes = {
root: 'p-chart'
@ -14,6 +10,6 @@ const classes = {
export default BaseStyle.extend({
name: 'chart',
css,
inlineStyles,
classes
});

View File

@ -4249,11 +4249,5 @@ export default {
resizehelper: {
class: 'absolute hidden w-px z-10 bg-blue-500 dark:bg-blue-300'
}
},
// CHART
chart: {
root: {
class: 'relative'
}
}
};