完善ubrowser各项参数及UI

This commit is contained in:
fofolee
2024-12-23 21:01:05 +08:00
parent c8a9a63dcb
commit eeda8e66d9
24 changed files with 2002 additions and 1148 deletions

View File

@@ -61,6 +61,7 @@ export default defineComponent({
availableCommands,
};
},
emits: ["use-composer", "update:modelValue"],
methods: {
addCommand(action) {
this.commandFlow.push({
@@ -84,8 +85,9 @@ export default defineComponent({
outputVars.set(index, varName);
line += `let ${varName} = `;
}
if (cmd.useOutput !== null) {
if (cmd.value === "ubrowser") {
line += cmd.argv;
} else if (cmd.useOutput !== null) {
const inputVar = outputVars.get(cmd.useOutput);
line += `${cmd.value}(${inputVar})`;
} else {