From a57ab9b8a68789c536b39d90a45f5eab04b7b7a9 Mon Sep 17 00:00:00 2001 From: Ilia Miheev Date: Tue, 31 Mar 2026 20:44:57 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=B5=D1=80=D0=B5=D0=B4=D0=B5=D0=BB?= =?UTF-8?q?=D0=B0=D0=BB=20=D1=81=D1=82=D0=B8=D0=BB=D0=B8=20=D0=B4=D0=BB?= =?UTF-8?q?=D1=8F=20=D0=BE=D0=B1=D0=B2=D0=BE=D0=B4=D0=BA=D0=B8=20=D0=BA?= =?UTF-8?q?=D0=BD=D0=BE=D0=BF=D0=BE=D0=BA,=20=D0=BF=D0=B5=D1=80=D0=B5?= =?UTF-8?q?=D0=B4=D0=B5=D0=BB=D0=B0=D0=BB=20=D0=B2=D1=8B=D0=B2=D0=BE=D0=B4?= =?UTF-8?q?=20=D0=B8=D0=BA=D0=BE=D0=BD=D0=BA=D0=B8=20=D0=BA=D0=BE=D1=80?= =?UTF-8?q?=D0=B7=D0=B8=D0=BD=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 38 +++++++++++++++++++++++---------- src/components/UI/svg/Trash.vue | 3 --- 2 files changed, 27 insertions(+), 14 deletions(-) diff --git a/src/App.vue b/src/App.vue index 42f611e..9dacf42 100644 --- a/src/App.vue +++ b/src/App.vue @@ -60,8 +60,7 @@ function setNumber(item) { } } -function openPreview(event) { - event.currentTarget.blur() +function openPreview() { generateCode() if (!listOfTrips.value.length) { izitoast.error({ @@ -73,9 +72,8 @@ function openPreview(event) { isCodeViewVisible.value = true; } -function saveResult(event) { +function saveResult() { isModalVisible.value = true; - event.currentTarget.blur() generateCode() } @@ -129,8 +127,7 @@ function generateCode() { } } -function cancel(event) { - event.currentTarget.blur() +function cancel() { if (clickCount.value === 1) { return; } @@ -142,8 +139,7 @@ function cancel(event) { clickCount.value--; } -function cleanResult(event) { - event.currentTarget.blur() +function cleanResult() { clickCount.value = 1; numbers.value.forEach(item => { item.isPlatform = false; @@ -276,6 +272,16 @@ function createIcon(src) { }) } +function createSvgIcon(svg) { + return h(svg,{ + style:{ + color: '#000', + width: '20px', + height: '20px', + } + }) +} + function onContextMenu(e, item) { ContextMenu.showContextMenu({ theme: 'mac dark', @@ -304,7 +310,7 @@ function onContextMenu(e, item) { { label: "Удалить", onClick: () => deletePlatform(item), - icon: h(Trash), + icon: createSvgIcon(Trash), }, ] }, @@ -320,14 +326,14 @@ function onContextMenu(e, item) { { label: "Удалить", onClick: () => deleteQR(item), - icon: h(Trash) + icon: createSvgIcon(Trash), }, ], }, { label: "Удалить", - icon: h(Trash), + icon: createSvgIcon(Trash), onClick: () => deletePointMap(item), }, ] @@ -395,6 +401,10 @@ function onContextMenu(e, item) { \ No newline at end of file