优化可编排界面的样式

This commit is contained in:
fofolee
2024-12-22 22:08:02 +08:00
parent 2c8db1f473
commit 29ceb3c7ff
5 changed files with 464 additions and 161 deletions

View File

@@ -169,16 +169,12 @@
<KeyRecorder @sendKeys="addAction" />
</q-dialog>
<q-dialog v-model="showComposer" maximized>
<q-card class="full-height">
<q-card-section class="q-pa-md full-height">
<CommandComposer
ref="composer"
@run="handleComposerRun"
@apply="handleComposerApply"
@update:model-value="showComposer = false"
/>
</q-card-section>
</q-card>
<CommandComposer
ref="composer"
@run="handleComposerRun"
@apply="handleComposerApply"
@update:model-value="showComposer = false"
/>
</q-dialog>
</div>
</template>
@@ -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;
}
},
},
};
</script>