增加menu可配置是否自动关闭功能 增加单页面刷新功能

This commit is contained in:
蒋吉兆
2021-01-24 17:01:43 +08:00
parent 3952d5ec14
commit f82acdb478
6 changed files with 217 additions and 115 deletions
+10 -4
View File
@@ -19,8 +19,14 @@
</el-select>
</div>
</transition>
<div
:style="{display:'inline-block',float:'right',width:'31px',textAlign:'left',fontSize:'16px',paddingTop:'2px'}"
class="user-box"
>
<i @click="$bus.$emit('reload')" :style="{cursor:'pointer'}" class="el-icon-refresh" />
</div>
<div :style="{display:'inline-block',float:'right'}" class="user-box">
<i @click="showSearch()" class="el-icon-search search-icon"></i>
<i :style="{cursor:'pointer'}" @click="showSearch()" class="el-icon-search search-icon"></i>
</div>
</div>
</template>
@@ -48,9 +54,9 @@ export default {
},
showSearch() {
this.show = true;
this.$nextTick(()=>{
this.$refs['search-input'].focus()
})
this.$nextTick(() => {
this.$refs["search-input"].focus();
});
}
}
};