编排添加正则提取/替换

This commit is contained in:
fofolee
2024-12-31 15:32:31 +08:00
parent c163bdd9d6
commit b532630ab9
15 changed files with 1862 additions and 58 deletions

View File

@@ -121,6 +121,11 @@ export default defineComponent({
],
};
},
props: {
command: {
type: Object,
},
},
computed: {
mainKeyDisplay() {
if (!this.mainKey) return "";
@@ -272,7 +277,7 @@ export default defineComponent({
const args = [this.mainKey, ...activeModifiers];
// 为每个参数添加引号
this.$emit("update:modelValue", `keyTap("${args.join('","')}")`);
this.$emit("update:modelValue", `${this.command.value}("${args.join('","')}")`);
},
parseKeyString(val) {
try {