前端代码
This commit is contained in:
@@ -0,0 +1,85 @@
|
||||
<template>
|
||||
<div class="placeholder-page">
|
||||
<div class="placeholder-card">
|
||||
<div class="placeholder-icon">
|
||||
<svg-icon :icon-class="icon" />
|
||||
</div>
|
||||
<h2 class="placeholder-title">{{ title }}</h2>
|
||||
<p class="placeholder-desc">{{ description }}</p>
|
||||
<el-tag size="small" type="info" effect="plain">功能开发中,敬请期待</el-tag>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'PlaceholderPage',
|
||||
props: {
|
||||
// 页面标题
|
||||
title: {
|
||||
type: String,
|
||||
required: true
|
||||
},
|
||||
// 功能描述
|
||||
description: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
// 图标名称(对应 src/assets/icons/svg)
|
||||
icon: {
|
||||
type: String,
|
||||
default: 'education'
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.placeholder-page {
|
||||
min-height: calc(100vh - 200px);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 20px;
|
||||
|
||||
.placeholder-card {
|
||||
width: 100%;
|
||||
max-width: 560px;
|
||||
padding: 48px 40px;
|
||||
text-align: center;
|
||||
background: #fff;
|
||||
border: 1px dashed #c0c4cc;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.placeholder-icon {
|
||||
width: 72px;
|
||||
height: 72px;
|
||||
margin: 0 auto 20px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 50%;
|
||||
background: var(--edu-green-light);
|
||||
|
||||
.svg-icon {
|
||||
font-size: 36px;
|
||||
color: var(--edu-green-primary);
|
||||
}
|
||||
}
|
||||
|
||||
.placeholder-title {
|
||||
font-size: 20px;
|
||||
font-weight: 600;
|
||||
color: #303133;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.placeholder-desc {
|
||||
font-size: 14px;
|
||||
line-height: 1.8;
|
||||
color: #909399;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user