mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-06-29 12:22:44 +08:00
样式微调
This commit is contained in:
parent
cf173227af
commit
2c8da17be0
@ -1,11 +1,11 @@
|
|||||||
<template>
|
<template>
|
||||||
<!-- mini 模式下如果命令未启用或者不可直接运行则隐藏卡片面板 -->
|
<!-- mini 模式下如果命令未启用或者不可直接运行则隐藏卡片面板 -->
|
||||||
<div
|
<div
|
||||||
class="wrapper"
|
:class="{ wrapper: 1, warpperHover: isWarpperHover }"
|
||||||
v-show="!cardStyleVars.hideCard"
|
v-show="!cardStyleVars.hideCard"
|
||||||
:id="commandInfo.features.code"
|
:id="commandInfo.features.code"
|
||||||
@mouseenter="showCtrlButtons = true"
|
@mouseenter="isWarpperHover = true"
|
||||||
@mouseleave="if (!isCtrlBtnMenuOpen) showCtrlButtons = false;"
|
@mouseleave="if (!isCtrlBtnMenuOpen) isWarpperHover = false;"
|
||||||
>
|
>
|
||||||
<div>
|
<div>
|
||||||
<!-- mini 模式下不显示各类按钮 -->
|
<!-- mini 模式下不显示各类按钮 -->
|
||||||
@ -23,7 +23,7 @@
|
|||||||
<div
|
<div
|
||||||
class="absolute"
|
class="absolute"
|
||||||
style="z-index: 1; right: 16px; top: 16px"
|
style="z-index: 1; right: 16px; top: 16px"
|
||||||
v-show="showCtrlButtons"
|
v-show="isWarpperHover"
|
||||||
>
|
>
|
||||||
<q-btn
|
<q-btn
|
||||||
flat
|
flat
|
||||||
@ -54,7 +54,7 @@
|
|||||||
transition-hide="jump-up"
|
transition-hide="jump-up"
|
||||||
@hide="
|
@hide="
|
||||||
isCtrlBtnMenuOpen = false;
|
isCtrlBtnMenuOpen = false;
|
||||||
showCtrlButtons = false;
|
isWarpperHover = false;
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
<q-list style="min-width: 100px">
|
<q-list style="min-width: 100px">
|
||||||
@ -118,7 +118,11 @@
|
|||||||
<q-card-section>
|
<q-card-section>
|
||||||
<!-- logo -->
|
<!-- logo -->
|
||||||
<div class="row" :class="cardStyleVars.logoPosition">
|
<div class="row" :class="cardStyleVars.logoPosition">
|
||||||
<q-avatar square size="48px">
|
<q-avatar
|
||||||
|
square
|
||||||
|
size="48px"
|
||||||
|
:class="{ featureIco: 1, featureIcoHover: isWarpperHover }"
|
||||||
|
>
|
||||||
<img :src="commandInfo.features.icon" />
|
<img :src="commandInfo.features.icon" />
|
||||||
</q-avatar>
|
</q-avatar>
|
||||||
</div>
|
</div>
|
||||||
@ -248,6 +252,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import { features } from "monaco-editor/esm/metadata.js";
|
||||||
import commandTypes from "../js/options/commandTypes.js";
|
import commandTypes from "../js/options/commandTypes.js";
|
||||||
import platformTypes from "../js/options/platformTypes.js";
|
import platformTypes from "../js/options/platformTypes.js";
|
||||||
import CrontabSetting from "components/popup/CrontabSetting";
|
import CrontabSetting from "components/popup/CrontabSetting";
|
||||||
@ -267,7 +272,7 @@ export default {
|
|||||||
showCrontab: false,
|
showCrontab: false,
|
||||||
// showShare: false,
|
// showShare: false,
|
||||||
cronJob: null,
|
cronJob: null,
|
||||||
showCtrlButtons: false,
|
isWarpperHover: false,
|
||||||
isCtrlBtnMenuOpen: false,
|
isCtrlBtnMenuOpen: false,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@ -456,11 +461,17 @@ export default {
|
|||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
.wrapper {
|
.wrapper {
|
||||||
transition: 0.2s;
|
transition: 0.5s;
|
||||||
}
|
}
|
||||||
.wrapper:hover {
|
.warpperHover {
|
||||||
transition: 0.2s;
|
transition: 0.5s;
|
||||||
transform: translateY(-3px);
|
transform: translateY(-3px);
|
||||||
/* filter: drop-shadow(1px 1px 5px #0000008e); */
|
}
|
||||||
|
.featureIco {
|
||||||
|
transition: 0.5s;
|
||||||
|
}
|
||||||
|
.featureIcoHover {
|
||||||
|
transition: 0.5s;
|
||||||
|
transform: scale(1.1);
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -487,7 +487,7 @@ export default {
|
|||||||
let el = document.getElementById(code);
|
let el = document.getElementById(code);
|
||||||
el.scrollIntoViewIfNeeded();
|
el.scrollIntoViewIfNeeded();
|
||||||
// 闪一下
|
// 闪一下
|
||||||
el.style.filter = "drop-shadow(2px 4px 6px black)";
|
el.style.filter = "drop-shadow(2px 4px 6px gray)";
|
||||||
el.style.transform = "translateY(-5px)";
|
el.style.transform = "translateY(-5px)";
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
el.style.filter = "";
|
el.style.filter = "";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user