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

42 lines
832 B
Vue
Raw Normal View History

2023-05-24 10:36:51 +00:00
<script>
import BaseComponent from 'primevue/basecomponent';
import SkeletonStyle from 'primevue/skeleton/style';
2023-05-24 10:36:51 +00:00
export default {
name: 'BaseSkeleton',
extends: BaseComponent,
props: {
shape: {
type: String,
default: 'rectangle'
},
size: {
type: String,
default: null
},
width: {
type: String,
default: '100%'
},
height: {
type: String,
default: '1rem'
},
borderRadius: {
type: String,
default: null
},
animation: {
type: String,
default: 'wave'
}
},
style: SkeletonStyle,
provide() {
return {
$parentInstance: this
};
2023-05-24 10:36:51 +00:00
}
};
</script>