18 lines
242 B
Vue
18 lines
242 B
Vue
|
<template>
|
||
|
<div :class="loading ? 'skeleton-block' : ''">
|
||
|
<slot />
|
||
|
</div>
|
||
|
</template>
|
||
|
|
||
|
<script lang="ts">
|
||
|
export default {
|
||
|
name: 'Loading',
|
||
|
props: {
|
||
|
loading: {
|
||
|
type: Boolean,
|
||
|
default: true,
|
||
|
},
|
||
|
},
|
||
|
}
|
||
|
</script>
|