84 lines
2.9 KiB
HTML
84 lines
2.9 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>前端测试</title>
|
|
<script src="/static/vue.global.prod.js"></script>
|
|
<link rel="stylesheet" href="/static/element-plus.css" />
|
|
|
|
|
|
<!-- Tailwind CSS -->
|
|
|
|
|
|
<!-- Vue 3 -->
|
|
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
|
|
|
|
<!-- Element Plus CSS -->
|
|
<link rel="stylesheet" href="https://unpkg.com/element-plus@2.4.3/dist/index.css">
|
|
|
|
<!-- Element Plus JS -->
|
|
<script src="https://unpkg.com/element-plus@2.4.3/dist/index.full.min.js"></script>
|
|
|
|
|
|
<style>
|
|
/* 基础重置 */
|
|
body { margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
|
|
|
|
/* 卡片组件 */
|
|
.card { background: white; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); padding: 24px; margin-bottom: 24px; transition: all 0.3s; }
|
|
.card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
|
|
|
|
/* 侧边栏 */
|
|
.sidebar { width: 160px; position: fixed; height: 100vh; left: 0; top: 0; background: #f5f5f5; border-right: 1px solid #e0e0e0; }
|
|
|
|
/* 主内容区 */
|
|
.main-content { margin-left: 160px; width: calc(100vw - 160px); min-height: 100vh; overflow-x: auto; }
|
|
|
|
/* 统计卡片 */
|
|
.stat-card { text-align: center; padding: 20px; cursor: pointer; transition: transform 0.2s; }
|
|
.stat-card:hover { transform: translateY(-4px); }
|
|
.stat-value { font-size: 2.5rem; font-weight: bold; color: #409EFF; line-height: 1.2; }
|
|
.stat-label { color: #909399; font-size: 0.9rem; margin-top: 8px; }
|
|
|
|
/* 操作按钮组 */
|
|
.action-btn-group { display: flex; gap: 8px; flex-wrap: wrap; }
|
|
|
|
/* 快速筛选 */
|
|
.quick-filter { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
|
|
|
|
/* 状态徽章 */
|
|
.status-badge { display: inline-flex; align-items: center; gap: 4px; }
|
|
.status-dot { width: 6px; height: 6px; border-radius: 50%; }
|
|
.status-dot.pending { background: #E6A23C; }
|
|
.status-dot.review { background: #F56C6C; }
|
|
.status-dot.ready { background: #67C23A; }
|
|
.status-dot.published { background: #409EFF; }
|
|
|
|
/* 加载覆盖层 */
|
|
.loading-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,0.8); display: flex; align-items: center; justify-content: center; z-index: 9999; }
|
|
|
|
/* 响应式 */
|
|
@media (max-width: 768px) {
|
|
.sidebar { display: none; }
|
|
.main-content { margin-left: 0; width: 100vw; }
|
|
}
|
|
</style>
|
|
|
|
</head>
|
|
<body>
|
|
<div id="app">
|
|
<h1>测试页面</h1>
|
|
<p>Vue 已加载: {{ loaded }}</p>
|
|
<el-button type="primary">测试按钮</el-button>
|
|
</div>
|
|
<script>
|
|
const { createApp, ref } = Vue;
|
|
createApp({
|
|
setup() {
|
|
const loaded = ref(true);
|
|
return { loaded };
|
|
}
|
|
}).use(ElementPlus).mount('#app');
|
|
</script>
|
|
</body>
|
|
</html> |