mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-06-08 22:51:25 +08:00
禁用时图标灰色
This commit is contained in:
parent
aa6217021f
commit
f8e8239db7
@ -121,7 +121,11 @@
|
||||
<q-avatar
|
||||
square
|
||||
size="48px"
|
||||
:class="{ featureIco: 1, featureIcoHover: isWarpperHover }"
|
||||
:class="{
|
||||
featureIco: 1,
|
||||
featureIcoHover: isWarpperHover,
|
||||
'feature-disabled': !isCommandActivated
|
||||
}"
|
||||
>
|
||||
<img :src="commandInfo.features.icon" />
|
||||
</q-avatar>
|
||||
@ -490,4 +494,9 @@ export default {
|
||||
transform: translateY(0);
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
.feature-disabled {
|
||||
opacity: 0.5;
|
||||
filter: grayscale(100%);
|
||||
}
|
||||
</style>
|
||||
|
Loading…
x
Reference in New Issue
Block a user