Compare commits
1 Commits
develop
...
miheev-dev
| Author | SHA1 | Date | |
|---|---|---|---|
| a57ab9b8a6 |
+27
-11
@@ -60,8 +60,7 @@ function setNumber(item) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function openPreview(event) {
|
function openPreview() {
|
||||||
event.currentTarget.blur()
|
|
||||||
generateCode()
|
generateCode()
|
||||||
if (!listOfTrips.value.length) {
|
if (!listOfTrips.value.length) {
|
||||||
izitoast.error({
|
izitoast.error({
|
||||||
@@ -73,9 +72,8 @@ function openPreview(event) {
|
|||||||
isCodeViewVisible.value = true;
|
isCodeViewVisible.value = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
function saveResult(event) {
|
function saveResult() {
|
||||||
isModalVisible.value = true;
|
isModalVisible.value = true;
|
||||||
event.currentTarget.blur()
|
|
||||||
generateCode()
|
generateCode()
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -129,8 +127,7 @@ function generateCode() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function cancel(event) {
|
function cancel() {
|
||||||
event.currentTarget.blur()
|
|
||||||
if (clickCount.value === 1) {
|
if (clickCount.value === 1) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -142,8 +139,7 @@ function cancel(event) {
|
|||||||
clickCount.value--;
|
clickCount.value--;
|
||||||
}
|
}
|
||||||
|
|
||||||
function cleanResult(event) {
|
function cleanResult() {
|
||||||
event.currentTarget.blur()
|
|
||||||
clickCount.value = 1;
|
clickCount.value = 1;
|
||||||
numbers.value.forEach(item => {
|
numbers.value.forEach(item => {
|
||||||
item.isPlatform = false;
|
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) {
|
function onContextMenu(e, item) {
|
||||||
ContextMenu.showContextMenu({
|
ContextMenu.showContextMenu({
|
||||||
theme: 'mac dark',
|
theme: 'mac dark',
|
||||||
@@ -304,7 +310,7 @@ function onContextMenu(e, item) {
|
|||||||
{
|
{
|
||||||
label: "Удалить",
|
label: "Удалить",
|
||||||
onClick: () => deletePlatform(item),
|
onClick: () => deletePlatform(item),
|
||||||
icon: h(Trash),
|
icon: createSvgIcon(Trash),
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -320,14 +326,14 @@ function onContextMenu(e, item) {
|
|||||||
{
|
{
|
||||||
label: "Удалить",
|
label: "Удалить",
|
||||||
onClick: () => deleteQR(item),
|
onClick: () => deleteQR(item),
|
||||||
icon: h(Trash)
|
icon: createSvgIcon(Trash),
|
||||||
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "Удалить",
|
label: "Удалить",
|
||||||
icon: h(Trash),
|
icon: createSvgIcon(Trash),
|
||||||
onClick: () => deletePointMap(item),
|
onClick: () => deletePointMap(item),
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
@@ -395,6 +401,10 @@ function onContextMenu(e, item) {
|
|||||||
<style>
|
<style>
|
||||||
* {
|
* {
|
||||||
font-family: 'Courier New', Courier, monospace;
|
font-family: 'Courier New', Courier, monospace;
|
||||||
|
outline: none;
|
||||||
|
}
|
||||||
|
* :focus-visible {
|
||||||
|
box-shadow: 0 0 0 3px #23aae3e2;
|
||||||
}
|
}
|
||||||
|
|
||||||
html {
|
html {
|
||||||
@@ -477,11 +487,17 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.actions svg {
|
.actions svg {
|
||||||
|
outline: none;
|
||||||
width: 40px;
|
width: 40px;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
transition: color 0.4s;
|
transition: color 0.4s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.actions svg:focus-visible {
|
||||||
|
box-shadow: 0 0 0 3px #23aae3e2;
|
||||||
|
border-radius: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
.actions svg:hover {
|
.actions svg:hover {
|
||||||
color: rgba(20, 104, 140, 0.89);
|
color: rgba(20, 104, 140, 0.89);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,7 +20,4 @@
|
|||||||
.cls-1{
|
.cls-1{
|
||||||
fill:none;
|
fill:none;
|
||||||
}
|
}
|
||||||
#Layer_2 {
|
|
||||||
color: black;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
Reference in New Issue
Block a user