You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
430 B
Vue
22 lines
430 B
Vue
2 years ago
|
<template>
|
||
|
<div :class="['el-skeleton__item', `el-skeleton__${variant}`]">
|
||
|
<img-placeholder v-if="variant === 'image'" />
|
||
|
</div>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
import ImgPlaceholder from './img-placeholder';
|
||
|
|
||
|
export default {
|
||
|
name: 'ElSkeletonItem',
|
||
|
props: {
|
||
|
variant: {
|
||
|
type: String,
|
||
|
default: 'text'
|
||
|
}
|
||
|
},
|
||
|
components: {
|
||
|
[ImgPlaceholder.name]: ImgPlaceholder
|
||
|
}
|
||
|
};
|
||
|
</script>
|