Parcourir la source

[VersionBeta] V.1.0.0.0

[Adds]
1.修改鼠标移入齿轮“我的文件”和“工作文件” 显示菜单事件
master
zxm il y a 4 ans
Parent
révision
7b39ff1547
1 fichiers modifiés avec 14 ajouts et 0 suppressions
  1. +14
    -0
      src/views/main_web/workspace.vue

+ 14
- 0
src/views/main_web/workspace.vue Voir le fichier

@@ -2277,6 +2277,8 @@ export default {
this.listFolders();
this.updateProjUser();
window.addEventListener("resize", this.listenBottomHeight, true);
//添加鼠标移入齿轮事件
window.addEventListener("mouseenter", this.setIconMouseEnter, true);
},
computed: {
/**
@@ -2319,6 +2321,17 @@ export default {
this.showadow = false
}
},
/**
* 鼠标移上齿轮设置事件
*/
setIconMouseEnter:function(){
//工作文件下 指定显示某些菜单项
if (this.currentPageType == 1) {
this.isShowMenuFile = true;
} else {
this.isShowMenuFile = false;
}
},
/**
* 刷新页面
*/
@@ -6159,6 +6172,7 @@ export default {
destroyed: function() {
window.removeEventListener("scroll", this.onscroll);
window.removeEventListener("resize", this.listenBottomHeight);
window.removeEventListener("mouseenter", this.setIconMouseEnter);
clearInterval(this.timer);
},
components: {