From ef5c6e46442d4733649245f77e67f0ec9f536d4b Mon Sep 17 00:00:00 2001 From: xiaoQQya <46475319+xiaoQQya@users.noreply.github.com> Date: Sun, 28 Dec 2025 00:10:56 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BB=BB=E5=8A=A1=E4=BF=9D=E5=AD=98?= =?UTF-8?q?=E8=A7=84=E5=88=99=E5=8F=8C=E5=87=BB=E9=AD=94=E6=B3=95=E5=8C=B9?= =?UTF-8?q?=E9=85=8D=E5=8F=AF=E9=87=8A=E6=94=BE=E5=A1=AB=E5=85=A5=E5=8E=9F?= =?UTF-8?q?=E5=A7=8B=E8=A1=A8=E8=BE=BE=E5=BC=8F=20(#136)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * perf: 任务保存规则支持以魔法匹配为模板调整正则表达式 * feat(ui): 调整魔法正则表达式交互逻辑 - 将 `@change` 事件调整为 `@dblclick` - 添加 `title` 提示用户“双击可将魔法匹配释放为填入原始正则表达式” --------- Co-authored-by: Cp0204 --- app/templates/index.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/templates/index.html b/app/templates/index.html index 8a0d458..d07b277 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -379,7 +379,7 @@
- +
@@ -1245,6 +1245,13 @@ if (valA > valB) return this.fileSelect.sortOrder === "asc" ? 1 : -1; return 0; }); + }, + inputRawMagicRegex(task) { + const item = this.formData.magic_regex[task.pattern]; + if (item) { + task.pattern = item.pattern; + task.replace = item.replace; + } } } });