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> <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> <canvas ref="canvas" :width="width" :height="height" @click="onCanvasClick($event)" v-bind="{ ...canvasProps, ...ptm('canvas') }"></canvas>
</div> </div>
</template> </template>

View File

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

View File

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