From 29ceb3c7ff8df88efabcdc9a8949800de88af07a Mon Sep 17 00:00:00 2001 From: fofolee Date: Sun, 22 Dec 2024 22:08:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=8F=AF=E7=BC=96=E6=8E=92?= =?UTF-8?q?=E7=95=8C=E9=9D=A2=E7=9A=84=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/editor/CommandLanguageBar.vue | 24 +- .../editor/composer/CommandComposer.vue | 42 ++- .../editor/composer/ComposerCard.vue | 167 +++++++--- .../editor/composer/ComposerFlow.vue | 289 ++++++++++++++---- .../editor/composer/ComposerList.vue | 103 ++++--- 5 files changed, 464 insertions(+), 161 deletions(-) diff --git a/src/components/editor/CommandLanguageBar.vue b/src/components/editor/CommandLanguageBar.vue index d51585c..cab6f90 100644 --- a/src/components/editor/CommandLanguageBar.vue +++ b/src/components/editor/CommandLanguageBar.vue @@ -169,16 +169,12 @@ - - - - - + @@ -298,19 +294,19 @@ export default { window.showUb.docs(); }, handleComposerRun(code) { - this.$emit('add-action', code); + this.$emit("add-action", code); }, handleComposerApply(code) { - this.$emit('add-action', code); + this.$emit("add-action", code); this.showComposer = false; }, applyComposerCommands() { if (this.$refs.composer) { const code = this.$refs.composer.generateCode(); - this.$emit('add-action', code); + this.$emit("add-action", code); } this.showComposer = false; - } + }, }, }; diff --git a/src/components/editor/composer/CommandComposer.vue b/src/components/editor/composer/CommandComposer.vue index 0bed54d..6369621 100644 --- a/src/components/editor/composer/CommandComposer.vue +++ b/src/components/editor/composer/CommandComposer.vue @@ -1,18 +1,11 @@ @@ -81,87 +90,167 @@ diff --git a/src/components/editor/composer/ComposerList.vue b/src/components/editor/composer/ComposerList.vue index 93300a8..cf68133 100644 --- a/src/components/editor/composer/ComposerList.vue +++ b/src/components/editor/composer/ComposerList.vue @@ -2,9 +2,14 @@