Commit 87cbea42 authored by “yiyousong”'s avatar “yiyousong”

perf: 优化分类页面

parent 7abc4239
...@@ -35,7 +35,9 @@ ...@@ -35,7 +35,9 @@
<div class="folder-img-box flex aic jcc"> <div class="folder-img-box flex aic jcc">
<i class="iconfont icon-folder"></i> <i class="iconfont icon-folder"></i>
</div> </div>
<p class="folder-name tac">{{ v.categoryName }}</p> <p class="folder-name tac">
{{ v.categoryName }}
</p>
</div> </div>
</div> </div>
<!-- <YEmpty v-else width="200" text="暂无数据"></YEmpty> --> <!-- <YEmpty v-else width="200" text="暂无数据"></YEmpty> -->
...@@ -189,14 +191,18 @@ export default { ...@@ -189,14 +191,18 @@ export default {
bottom: 0; bottom: 0;
} }
.folder-list { .folder-list {
display: flex; width: 100%;
flex-wrap: wrap; display: grid;
grid-template-columns: repeat(6, 1fr);
gap: 40px 115px; gap: 40px 115px;
} }
.folder-item { .folder-item {
width: 100%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center;
overflow: hidden;
gap: 20px; gap: 20px;
cursor: pointer; cursor: pointer;
.folder-img-box { .folder-img-box {
...@@ -210,10 +216,14 @@ export default { ...@@ -210,10 +216,14 @@ export default {
} }
} }
.folder-name { .folder-name {
width: 100%;
font-family: Source Han Sans CN; font-family: Source Han Sans CN;
font-weight: 500; font-weight: 500;
font-size: 24px; font-size: 24px;
color: #333333; color: #333333;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment