mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
33 lines
633 B
Vue
33 lines
633 B
Vue
<template>
|
|
<div class="be-empty">
|
|
<slot>
|
|
<template
|
|
v-if="typeof config.content === 'string' && config.content.length > 0"
|
|
>
|
|
{{ config.content }}
|
|
</template>
|
|
<component :is="config.content" v-if="typeof config.content !== 'string'"></component>
|
|
</slot>
|
|
</div>
|
|
</template>
|
|
<script lang="ts">
|
|
import { emptyContent } from './v-empty'
|
|
|
|
export default Vue.extend({
|
|
name: 'VEmpty',
|
|
data() {
|
|
return {
|
|
config: emptyContent,
|
|
}
|
|
},
|
|
})
|
|
</script>
|
|
<style lang="scss">
|
|
@import "common";
|
|
.be-empty {
|
|
flex-grow: 1;
|
|
@include h-center();
|
|
justify-content: center;
|
|
}
|
|
</style>
|