提交 ba45c627 编写于 作者: T tcsnzh

失焦隐藏or不隐藏小按钮现在不会在搜索框出现,且切换到搜索框时一定会隐藏

上级 747c5512
......@@ -59,14 +59,6 @@
</div>
</div>
</a-input>
<span class="button-hide-on-blur" @click="changeHideOnBlur">
<a-icon
type="pushpin"
:style="{
color: config.perf.common.hideOnBlur ? 'grey' : '#ea68a2',
}"
></a-icon>
</span>
<div v-show="showOptions" class="options">
<a-list item-layout="horizontal" :data-source="options">
<a-list-item
......@@ -88,6 +80,18 @@
</a-list-item>
</a-list>
</div>
<span
v-show="selected"
class="button-hide-on-blur"
@click="changeHideOnBlur"
>
<a-icon
type="pushpin"
:style="{
color: config.perf.common.hideOnBlur ? 'grey' : '#ea68a2',
}"
></a-icon>
</span>
</div>
<div v-else class="rubick-select-subMenu">
<div>
......@@ -340,6 +344,7 @@ export default {
showMain: false,
options: [],
});
this.setHideOnBlur(true);
ipcRenderer.send("changeWindowSize-rubick", {
height: getWindowHeight([]),
});
......@@ -411,6 +416,11 @@ export default {
cfg.perf.common.hideOnBlur = !cfg.perf.common.hideOnBlur;
this.config = cfg;
},
setHideOnBlur(v) {
let cfg = { ...this.config };
cfg.perf.common.hideOnBlur = v;
this.config = cfg;
},
},
computed: {
...mapState("main", [
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册