From 66a4283b9b0a7b18769f67f477b5390206204265 Mon Sep 17 00:00:00 2001 From: fofolee Date: Mon, 17 Feb 2025 01:14:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96CommandConfig=E5=B8=83?= =?UTF-8?q?=E5=B1=80=EF=BC=8C=E8=8A=82=E7=9C=81=E7=A9=BA=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/CommandEditor.vue | 1 + src/components/composer/FlowTabs.vue | 1 + src/components/editor/CommandConfig.vue | 127 ++++++++++++++---------- 3 files changed, 77 insertions(+), 52 deletions(-) diff --git a/src/components/CommandEditor.vue b/src/components/CommandEditor.vue index facb4c9..96dfce2 100644 --- a/src/components/CommandEditor.vue +++ b/src/components/CommandEditor.vue @@ -11,6 +11,7 @@ @@ -59,42 +82,19 @@ /> - +
-
- - 标签 -
- -
- - -
-
- - 输出 -
-
+
+
+ + 输出 +
-
+
- 搜索面板推送 - - + 搜索面板推送 +
@@ -179,6 +183,10 @@ export default defineComponent({ type: Boolean, default: false, }, + from: { + type: String, + default: "quickcommand", + }, }, emits: ["update:modelValue", "update:is-expanded"], data() { @@ -315,9 +323,19 @@ export default defineComponent({ width: 100%; } -.basic-config :deep(.q-field__native), -.basic-config :deep(.q-field__control) { - height: 36px; +.tag-select :deep(.q-field__control) { + overflow-x: auto; +} + +.tag-select :deep(.q-field__native) { + display: flex; + flex-wrap: nowrap; + overflow-x: auto; + padding-bottom: 4px; +} + +.tag-select :deep(.q-field__native::-webkit-scrollbar) { + height: 1px; } .command-config :deep(.q-item) { @@ -327,7 +345,12 @@ export default defineComponent({ } .command-config :deep(.q-item__section--side) { - padding: 0; + padding-left: 8px; + padding-right: 0; +} + +.command-config :deep(.q-item__section--side .q-icon) { + top: 13px; } .command-config :deep(.q-item:hover) {