Files
education/frontend/src/components/PlaceholderPage/index.vue
T
2026-08-26 09:52:26 +08:00

86 lines
1.6 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<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>