添加按SHIFT和ALT自由开窗的功能
This commit is contained in:
parent
9e70ed2a51
commit
8a82e41555
|
@ -83,6 +83,7 @@ export default class RemoteDataExangeProcesser {
|
|||
this.plan_notify(void 0);
|
||||
this.plan_notify = null;
|
||||
}
|
||||
|
||||
this.plan_notify = $q.notify({
|
||||
position: "center",
|
||||
color: "positive",
|
||||
|
|
|
@ -8,13 +8,23 @@
|
|||
<template v-slot:default-header="prop">
|
||||
<q-item
|
||||
class="full-width"
|
||||
:disable="$store.state.current_running_plan.trim() != ''"
|
||||
clickable
|
||||
@dblclick="
|
||||
(evt) =>
|
||||
(evt) => {
|
||||
if (
|
||||
$store.state.current_running_plan.trim() == '' &&
|
||||
!prop.node.is_group &&
|
||||
callMode(prop.node.item_data)
|
||||
!prop.node.is_group
|
||||
) {
|
||||
callMode(prop.node.item_data);
|
||||
} else {
|
||||
$q.notify({
|
||||
type: 'warning',
|
||||
message: $t('plan running! can\'t call mode!'),
|
||||
position: 'top',
|
||||
timeout: 1500,
|
||||
});
|
||||
}
|
||||
}
|
||||
"
|
||||
>
|
||||
<q-item-section avatar>
|
||||
|
|
|
@ -242,9 +242,8 @@ export default defineComponent({
|
|||
$t.t("update file upload") +
|
||||
$t.t("success") +
|
||||
"! \n" +
|
||||
$t.t(
|
||||
"the system automatically restarts after the upgrade is complete"
|
||||
),
|
||||
upgrade_type.value +
|
||||
$t.t("automatically restarts after the upgrade is complete"),
|
||||
position: "top",
|
||||
timeout: 1500,
|
||||
});
|
||||
|
|
|
@ -395,4 +395,6 @@ export default {
|
|||
"clean screen": "清屏",
|
||||
"CN/EN switch": "中英文切换",
|
||||
DD: "天",
|
||||
"automatically restarts after the upgrade is complete": "升级完成后自动重启",
|
||||
"plan running! can't call mode!": "预案正在运行!不能调用模式!",
|
||||
};
|
||||
|
|
|
@ -273,7 +273,7 @@ export default defineComponent({
|
|||
if (plan_running.value) {
|
||||
return;
|
||||
}
|
||||
if (evt.ctrlKey && wall.value) {
|
||||
if ((evt.ctrlKey || evt.shiftKey || evt.altKey) && wall.value) {
|
||||
let left =
|
||||
wall.value.offsetLeft + (wall.value.parentElement?.offsetLeft ?? 0);
|
||||
let top =
|
||||
|
|
Loading…
Reference in New Issue