primevue-mirror/components/lib/skeleton/Skeleton.vue

19 lines
528 B
Vue

<template>
<div :style="containerStyle" :class="cx('root')" aria-hidden="true" v-bind="ptm('root')"></div>
</template>
<script>
import BaseSkeleton from './BaseSkeleton.vue';
export default {
name: 'Skeleton',
extends: BaseSkeleton,
computed: {
containerStyle() {
if (this.size) return { width: this.size, height: this.size, borderRadius: this.borderRadius };
else return { width: this.width, height: this.height, borderRadius: this.borderRadius };
}
}
};
</script>