mirror of
https://github.com/rubickCenter/rubick
synced 2025-06-08 11:34:10 +08:00
修改'钉住'样式从图钉按钮改为在插件菜单中选项.
This commit is contained in:
parent
ba45c627ab
commit
c0adb7a03d
@ -80,18 +80,6 @@
|
|||||||
</a-list-item>
|
</a-list-item>
|
||||||
</a-list>
|
</a-list>
|
||||||
</div>
|
</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>
|
||||||
<div v-else class="rubick-select-subMenu">
|
<div v-else class="rubick-select-subMenu">
|
||||||
<div>
|
<div>
|
||||||
@ -368,6 +356,10 @@ export default {
|
|||||||
type === "separate"
|
type === "separate"
|
||||||
) {
|
) {
|
||||||
const pluginMenu = [
|
const pluginMenu = [
|
||||||
|
{
|
||||||
|
label: this.config.perf.common.hideOnBlur ? "自动隐藏" : "钉住",
|
||||||
|
click: this.changeHideOnBlur,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: "开发者工具",
|
label: "开发者工具",
|
||||||
click: () => {
|
click: () => {
|
||||||
@ -574,9 +566,4 @@ export default {
|
|||||||
left: 0;
|
left: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.button-hide-on-blur {
|
|
||||||
padding: 0px 3px 0px 0px;
|
|
||||||
// 小按钮只会在碰到1/3处时被认为点击。
|
|
||||||
height: 33%;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user