From 405e92972c3f37e03495a5bec26485c76affe164 Mon Sep 17 00:00:00 2001 From: Tnze Date: Fri, 11 Oct 2024 21:24:16 +0800 Subject: [PATCH] Add option for oneclick copy macros --- .../designer/InitialQualitySetting.vue | 2 +- src/components/designer/MacroExporter.vue | 59 +++++++++++++------ 2 files changed, 43 insertions(+), 18 deletions(-) diff --git a/src/components/designer/InitialQualitySetting.vue b/src/components/designer/InitialQualitySetting.vue index 417af662..19ef6aa8 100644 --- a/src/components/designer/InitialQualitySetting.vue +++ b/src/components/designer/InitialQualitySetting.vue @@ -1,6 +1,6 @@ @@ -91,9 +103,11 @@ const copyChunk = async (i: number, macro: string[]) => { + - + {{ line }}
@@ -112,8 +126,12 @@ const copyChunk = async (i: number, macro: string[]) => { } .box-card { - /* width: 200px; */ - cursor: pointer; + user-select: text; +} + +.box-card-oneclick { + cursor: copy; + user-select: none; } @@ -121,11 +139,18 @@ const copyChunk = async (i: number, macro: string[]) => { has-notify = 添加完成提示 has-lock = 锁定宏指令 avg-size = 长度平均化 +oneclick-copy = 一键复制 copied-marco = 已复制 宏#{ $id } 到系统剪切板 marco-finished = 宏#{ $id } 已完成! +copy-failed = 复制失败:{ $err } +has-notify = Notification +has-lock = Lock Macro +avg-size = Equalize +oneclick-copy = Oneclick Copy copied-marco = Copied M#{ $id } to system clipboard! marco-finished = M#{ $id } is finished! +copy-failed = Copy failed: { $err }