mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-06 09:26:43 +08:00
样式调整
This commit is contained in:
@@ -284,7 +284,7 @@
|
||||
<!-- 内容导航 -->
|
||||
<div class="topNav" v-if="!newData">
|
||||
<div class="search-div nav" style="height: 100px;flex: 1;">
|
||||
<div @click="handleTypeAllClick(1)" class="option-item" style="font-weight: bold" :class="{ 'option-active': ctypeTagAll }">
|
||||
<div @click="handleTypeAllClick(1)" class="option-item" style="font-weight: bold;padding-right: 15px" :class="{ 'option-active': ctypeTagAll }">
|
||||
<a>全部</a>
|
||||
<span :class="ctypeTagAll ? 'nav-bottbor' : ''"></span>
|
||||
</div>
|
||||
@@ -398,6 +398,7 @@
|
||||
:key="tagIndex"
|
||||
size="mini"
|
||||
type="info" style="margin: 2px 2px; border-radius: 2px;"
|
||||
:style="{ fontWeight: isTagMatched(tag) ? 'bold' : 'normal' }"
|
||||
>
|
||||
{{ tag }}
|
||||
</el-tag>
|
||||
@@ -846,6 +847,14 @@ export default {
|
||||
// window.removeEventListener("scroll", this.handleScroll);
|
||||
},
|
||||
methods: {
|
||||
|
||||
isTagMatched(tag) {
|
||||
// 检查stagList中是否有匹配的标签
|
||||
return this.stagList.some(searchTag =>
|
||||
searchTag.tagName === tag || searchTag.name === tag
|
||||
);
|
||||
},
|
||||
|
||||
// 添加清除热点标签选中的方法
|
||||
handleClearHotTags() {
|
||||
// 清除所有热点标签的选中状态
|
||||
@@ -1076,7 +1085,7 @@ handleClearTags() {
|
||||
|
||||
// 强制触发stagList重新计算
|
||||
this.$nextTick(() => {
|
||||
this.searchData();
|
||||
// this.searchData();
|
||||
});
|
||||
},
|
||||
//三级分类
|
||||
|
||||
Reference in New Issue
Block a user