Refactor #3965 - For Skeleton

pull/3997/head
Tuğçe Küçükoğlu 2023-05-25 17:43:15 +03:00
parent 4fc5d0918e
commit 42345f106f
2 changed files with 7 additions and 3 deletions

View File

@ -4,7 +4,6 @@ import { useStyle } from 'primevue/usestyle';
const styles = ` const styles = `
.p-skeleton { .p-skeleton {
position: relative;
overflow: hidden; overflow: hidden;
} }
@ -38,6 +37,10 @@ const styles = `
} }
`; `;
const inlineStyles = {
root: { position: 'relative' }
};
const classes = { const classes = {
root: ({ props }) => [ root: ({ props }) => [
'p-skeleton p-component', 'p-skeleton p-component',
@ -80,7 +83,8 @@ export default {
} }
}, },
css: { css: {
classes classes,
inlineStyles
}, },
watch: { watch: {
isUnstyled: { isUnstyled: {

View File

@ -1,5 +1,5 @@
<template> <template>
<div :style="containerStyle" :class="cx('root')" aria-hidden="true" v-bind="ptm('root')"></div> <div :class="cx('root')" :style="[sx('root'), containerStyle]" aria-hidden="true" v-bind="ptm('root')"></div>
</template> </template>
<script> <script>