Skip to content

Commit 76827e0

Browse files
committed
refactor: update header layout and add version info to enhance UI clarity
1 parent 176336c commit 76827e0

File tree

1 file changed

+42
-1
lines changed

1 file changed

+42
-1
lines changed

src/vue/projects/App.vue

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
<template>
22
<div class="container">
3-
<img class="logo_img" :src="imgUrl['head-logo']" alt="" /> | workspace工程列表
3+
<div class="header_logo">
4+
<img class="logo_img" :src="imgUrl['head-logo']" alt="" />
5+
<div class="logo_text">
6+
<p>扩展工具 - workspace工程列表</p>
7+
<span>v{{ extensionInfo.version }}</span>
8+
</div>
9+
</div>
410
<br><br>
511
可以在感兴趣的BSP/工程项上✔,然后保存配置,将会在侧边栏中显示对应列表。<br>
612
<hr>
@@ -25,6 +31,7 @@ import { onMounted, ref, nextTick } from 'vue';
2531
import type { ElTable } from 'element-plus';
2632
import { imgUrl } from '../assets/img';
2733
import { sendCommand } from '../api/vscode';
34+
import { extensionInfo } from '../home/data';
2835
2936
const loading = ref(false); // 是否加载中
3037
@@ -90,4 +97,38 @@ onMounted(() => {
9097
.container {
9198
padding: 20px;
9299
}
100+
101+
.header_logo {
102+
display: flex;
103+
align-items: center;
104+
column-gap: 12px;
105+
font-size: 18px;
106+
color: #333;
107+
margin-bottom: 20px;
108+
109+
.logo_img {
110+
width: 228px;
111+
height: 68px;
112+
}
113+
114+
.logo_text {
115+
color: #333;
116+
padding-top: 15px;
117+
118+
p {
119+
font-size: 18px;
120+
margin: 0;
121+
}
122+
123+
span {
124+
font-size: 12px;
125+
}
126+
}
127+
}
128+
129+
.page_title {
130+
font-size: 16px;
131+
color: #666;
132+
margin-top: 10px;
133+
}
93134
</style>

0 commit comments

Comments
 (0)