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 = `
.p-skeleton {
position: relative;
overflow: hidden;
}
@ -38,6 +37,10 @@ const styles = `
}
`;
const inlineStyles = {
root: { position: 'relative' }
};
const classes = {
root: ({ props }) => [
'p-skeleton p-component',
@ -80,7 +83,8 @@ export default {
}
},
css: {
classes
classes,
inlineStyles
},
watch: {
isUnstyled: {

View File

@ -1,5 +1,5 @@
<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>
<script>