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