mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2026-03-06 05:30:39 +08:00
完善卡片上标签显示逻辑的算法
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
<CommandTypeTag
|
||||
:cmds="commandInfo.features.cmds"
|
||||
:isGrayColor="!isPlatformSupported || !isActivated"
|
||||
:cardStyleCode="cardStyleCode"
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -63,6 +64,7 @@ export default {
|
||||
isActivated: Boolean,
|
||||
isPlatformSupported: Boolean,
|
||||
isHovered: Boolean,
|
||||
cardStyleCode: Number,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
<CommandTypeTag
|
||||
:cmds="commandInfo.features.cmds"
|
||||
:isGrayColor="!isPlatformSupported || !isActivated"
|
||||
:cardStyleCode="cardStyleCode"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
@@ -58,6 +59,7 @@ export default {
|
||||
isActivated: Boolean,
|
||||
isPlatformSupported: Boolean,
|
||||
isHovered: Boolean,
|
||||
cardStyleCode: Number,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
||||
@@ -24,7 +24,10 @@
|
||||
|
||||
<!-- 匹配模式 -->
|
||||
<div class="row justify-center w-100">
|
||||
<CommandTypeTag :cmds="commandInfo.features.cmds" />
|
||||
<CommandTypeTag
|
||||
:cmds="commandInfo.features.cmds"
|
||||
:cardStyleCode="cardStyleCode"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -32,7 +35,6 @@
|
||||
<script>
|
||||
import CommandTypeTag from "../CommandTypeTag.vue";
|
||||
import platformTypes from "js/options/platformTypes.js";
|
||||
import { computed } from "vue";
|
||||
|
||||
export default {
|
||||
name: "MiniLayout",
|
||||
@@ -40,6 +42,7 @@ export default {
|
||||
props: {
|
||||
commandInfo: Object,
|
||||
isHovered: Boolean,
|
||||
cardStyleCode: Number,
|
||||
},
|
||||
setup() {
|
||||
return {
|
||||
@@ -55,7 +58,7 @@ export default {
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
padding: 16px;
|
||||
padding: 16px 8px;
|
||||
}
|
||||
|
||||
.w-100 {
|
||||
@@ -66,9 +69,9 @@ export default {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
max-width: 90%;
|
||||
/* max-width: 90%; */
|
||||
margin: 0 auto;
|
||||
padding: 0 8px;
|
||||
/* padding: 0 8px; */
|
||||
font-size: 14px;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user