click fuori da combo e paddle
This commit is contained in:
@@ -180,6 +180,7 @@ export default class app extends Vue {
|
||||
|
||||
onmousedown() {
|
||||
KeyboardHelper.hideKeyboard();
|
||||
messageService.publishToChannel('hideall');
|
||||
}
|
||||
|
||||
@Watch("isMainViewLiftedUp")
|
||||
|
||||
@@ -2,6 +2,7 @@ import Component from "vue-class-component";
|
||||
import Vue from "vue";
|
||||
import { Prop } from "vue-property-decorator";
|
||||
import lottie from "lottie-web";
|
||||
import { messageService } from "@/_base";
|
||||
|
||||
@Component({})
|
||||
export default class Combo extends Vue {
|
||||
@@ -42,7 +43,7 @@ export default class Combo extends Vue {
|
||||
}
|
||||
|
||||
mounted() {
|
||||
|
||||
messageService.subscribeToChannel('hideall', () => this.hideList());
|
||||
}
|
||||
|
||||
}
|
||||
@@ -9,7 +9,7 @@
|
||||
<i v-if="opened" class="fa fa-chevron-up" />
|
||||
<i v-else class="fa fa-chevron-down" />
|
||||
</div>
|
||||
<div class="droplist" v-if="opened">
|
||||
<div class="droplist" v-if="opened" @mousedown.prevent.stop>
|
||||
<div
|
||||
class="droplist-item"
|
||||
v-for="opt in options"
|
||||
|
||||
@@ -6,6 +6,7 @@ import { store, MachineStatusModel } from "@/store";
|
||||
import { SoftKeysConfigurationModel, machineInfoStore } from "@/store/machineInfo.store";
|
||||
import { Hub, machineService } from "@/services";
|
||||
import { Watch } from "vue-property-decorator";
|
||||
import { messageService } from "@/_base";
|
||||
|
||||
@Component({
|
||||
components: { softKey }
|
||||
@@ -60,6 +61,7 @@ export default class Paddle extends Vue {
|
||||
|
||||
async mounted() {
|
||||
this.loadData();
|
||||
messageService.subscribeToChannel('hideall', () => { this.isOpen = false; this.openFull = false; })
|
||||
}
|
||||
|
||||
@Watch("isOpen")
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
<template>
|
||||
<div class="paddle" :class="{'open-half': isOpen && !openFull, 'open-full': isOpen && openFull}">
|
||||
<div
|
||||
class="paddle"
|
||||
:class="{'open-half': isOpen && !openFull, 'open-full': isOpen && openFull}"
|
||||
@mousedown.prevent.stop
|
||||
>
|
||||
<nav class="paddleButton" @click="isOpen = !isOpen; openFull = false;sendKeyCancel()">
|
||||
<div class="circles">
|
||||
<div></div>
|
||||
|
||||
Reference in New Issue
Block a user