mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 00:02:15 +00:00
75 lines
1.8 KiB
Vue
75 lines
1.8 KiB
Vue
<template>
|
|
<div class="empty-page-content">
|
|
<div class="content">
|
|
<div class="icon">
|
|
<file-icon v-if="icon === 'file'" size="38"></file-icon>
|
|
<file-text-icon v-if="icon === 'file-text'" size="38"></file-text-icon>
|
|
<settings-icon v-if="icon === 'settings'" size="38"></settings-icon>
|
|
</div>
|
|
<div class="header">
|
|
<h1 class="title">{{ title }}</h1>
|
|
<h2 class="description">{{ description }}</h2>
|
|
</div>
|
|
<slot></slot>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import { FileIcon, FileTextIcon, SettingsIcon } from 'vue-feather-icons'
|
|
|
|
export default {
|
|
name: 'EmptyPageContent',
|
|
props: ['icon','title','description'],
|
|
components: {
|
|
SettingsIcon,
|
|
FileTextIcon,
|
|
FileIcon,
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
@import '/resources/sass/vuefilemanager/_variables';
|
|
@import '/resources/sass/vuefilemanager/_mixins';
|
|
|
|
.empty-page-content {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
text-align: center;
|
|
|
|
.content {
|
|
margin: 0 auto;
|
|
max-width: 360px;
|
|
|
|
/deep/ .button-base {
|
|
margin: 0 auto;
|
|
}
|
|
}
|
|
|
|
.icon {
|
|
path, polyline, line, circle {
|
|
stroke: $theme;
|
|
}
|
|
}
|
|
|
|
.header {
|
|
margin-top: 15px;
|
|
margin-bottom: 25px;
|
|
}
|
|
|
|
.title {
|
|
@include font-size(23);
|
|
font-weight: 700;
|
|
padding-bottom: 5px;
|
|
}
|
|
|
|
.description {
|
|
@include font-size(16);
|
|
font-weight: 500;
|
|
}
|
|
}
|
|
</style>
|