- {{ item.title }}
+ activeColor="#006AFF" :isActive="item.index == (currentMenuItem && currentMenuItem['index'])" />
+ {{ item.title}}
@@ -50,6 +50,7 @@ import SvgIcon1 from '@/components/SvgIcon1.vue';
import GuipToolTip from '@/components/GuipToolTip.vue';
export default {
name: 'SliderMenu',
+ options: { styleIsolation: "shared" },
components: {
SvgIcon1,
GuipToolTip,
@@ -215,22 +216,22 @@ export default {
}
- .el-menu-item.is-active {
- font-weight: bold;
- }
+}
+::v-deep .el-menu-item.is-active .title_text{
+ font-weight: bold;
+ color: #006AFF !important;
}
.title_img {
width: 16px;
margin-right: 4px;
}
-
.title_text {
margin-left: 4px;
font-size: 14px;
- font-weight: bold;
+ font-weight: normal;
display: block;
-
+ color: #1E2226;
}
.el-menu--collapse .title_text {
diff --git a/src/components/Tooltip.vue b/src/components/Tooltip.vue
index 15bd51c..edeb8e8 100644
--- a/src/components/Tooltip.vue
+++ b/src/components/Tooltip.vue
@@ -67,18 +67,24 @@ export default {
const targetRect = targetEl.getBoundingClientRect();
const messageWidth = this.$el.offsetWidth;
const viewportWidth = window.innerWidth;
+ const messageHeight = this.$el.offsetHeight;
// 默认居中位置
let left = targetRect.left + targetRect.width / 2 - messageWidth / 2;
+ let top = 0;
// 边界检测
if (left < 0) {
left = targetRect.left; // 左侧贴边
} else if (left + messageWidth > viewportWidth) {
left = viewportWidth - messageWidth - (viewportWidth -targetRect.right); // 右侧贴边
}
-
+ if(this.position == 'top'){
+ top =`${targetRect.top + window.scrollY - this.offset - messageHeight}px`
+ }else{
+ top = `${targetRect.top + window.scrollY + this.offset + messageHeight}px`
+ }
this.positionStyle = {
- top: `${targetRect.bottom + window.scrollY + this.offset}px`,
+ top,
left: `${left}px`,
right: 'auto', // 清除 right 定位
};
diff --git a/src/components/site/serviceSetting/linkSet.vue b/src/components/site/serviceSetting/linkSet.vue
index b09415a..4a347af 100644
--- a/src/components/site/serviceSetting/linkSet.vue
+++ b/src/components/site/serviceSetting/linkSet.vue
@@ -71,10 +71,10 @@ export default {
},
methods: {
toggleSetSyncHome(){
- this.syncHome = !this.syncHome
+ // this.syncHome = !this.syncHome
},
toggleSetSyncCheck(){
- this.syncCheck = !this.syncCheck
+ // this.syncCheck = !this.syncCheck
},
saveConfirm() {
let obj = {}
diff --git a/src/views/agent/siteAdd.vue b/src/views/agent/siteAdd.vue
index 0ea0e00..0fea349 100644
--- a/src/views/agent/siteAdd.vue
+++ b/src/views/agent/siteAdd.vue
@@ -162,7 +162,7 @@ export default {
display: flex;
flex-direction: column;
height: 100%;
-
+ overflow-y: auto;
.custom-icon {
width: 24px;
height: 24px;
@@ -182,6 +182,11 @@ export default {
text-align: left;
width: calc(84.75% - 72px);
}
+ .sticky{
+ position: sticky;
+ top: 0px;
+ z-index: 100;
+ }
}
.step-wrap {