From 1da46e8dc5e40f85e02f00f9b1f871d2e634e55d Mon Sep 17 00:00:00 2001 From: fofolee Date: Sat, 29 Mar 2025 21:34:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=BC=96=E6=8E=92=E9=80=BB?= =?UTF-8?q?=E8=BE=91=E6=8E=A7=E5=88=B6=E7=9A=84=E6=98=BE=E7=A4=BA=EF=BC=8C?= =?UTF-8?q?=E5=8E=BB=E9=99=A4=E9=87=8D=E5=A4=8D=E7=9A=84=E6=96=87=E6=9C=AC?= =?UTF-8?q?=EF=BC=8C=E4=B8=8D=E5=90=8C=E5=88=86=E6=94=AF=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E4=B8=8D=E5=90=8C=E5=9B=BE=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/composer/card/CommandHead.vue | 24 ++++++++++++++----- .../composer/control/ControlCommand.vue | 10 ++++++-- src/js/composer/commands/controlCommands.js | 20 ++++++++-------- 3 files changed, 36 insertions(+), 18 deletions(-) diff --git a/src/components/composer/card/CommandHead.vue b/src/components/composer/card/CommandHead.vue index 6d45e36..38505db 100644 --- a/src/components/composer/card/CommandHead.vue +++ b/src/components/composer/card/CommandHead.vue @@ -16,16 +16,16 @@
- +
-
+
{{ command.label }}
@@ -135,6 +135,15 @@ export default { return this.command.userComments || this.command.summary; }, }, + methods: { + getChianIcon() { + return ( + this.command?.subCommands?.find( + (command) => command.value === this.command.commandType + )?.icon || "fork_left" + ); + }, + }, }; @@ -163,15 +172,18 @@ export default { .command-label { user-select: none; pointer-events: all; - cursor: grab; - transition: all 0.3s ease; display: flex; align-items: center; gap: 8px; margin-right: 8px; } -.command-label:hover { +.command-label-text { + cursor: grab; + transition: all 0.3s ease; +} + +.command-label-text:hover { color: var(--q-primary); transition: all 0.3s ease; } diff --git a/src/components/composer/control/ControlCommand.vue b/src/components/composer/control/ControlCommand.vue index 208209c..98e3778 100644 --- a/src/components/composer/control/ControlCommand.vue +++ b/src/components/composer/control/ControlCommand.vue @@ -2,7 +2,7 @@
-
+
{{ currentFunction?.label || modelValue.commandType }}
@@ -25,7 +25,7 @@ no-icon-animation class="control-btn" > - +