2023-05-24 10:36:51 +00:00
|
|
|
<script>
|
|
|
|
import BaseComponent from 'primevue/basecomponent';
|
2023-10-02 10:46:09 +00:00
|
|
|
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'
|
|
|
|
}
|
|
|
|
},
|
2023-10-02 10:46:09 +00:00
|
|
|
style: SkeletonStyle,
|
2023-05-30 12:28:04 +00:00
|
|
|
provide() {
|
|
|
|
return {
|
|
|
|
$parentInstance: this
|
|
|
|
};
|
2023-05-24 10:36:51 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|