From 7d29511fdb7ff7a6c8182eb01e05aed39467e7aa Mon Sep 17 00:00:00 2001 From: = Date: Wed, 16 Sep 2020 10:30:56 +0200 Subject: [PATCH] click fuori da combo e paddle --- Thermo.Active/wwwroot/src/App.ts | 1 + .../wwwroot/src/app_modules_thermo/components/combo.ts | 3 ++- .../wwwroot/src/app_modules_thermo/components/combo.vue | 2 +- .../src/app_modules_thermo/components/paddle/paddle.ts | 2 ++ .../src/app_modules_thermo/components/paddle/paddle.vue | 6 +++++- 5 files changed, 11 insertions(+), 3 deletions(-) diff --git a/Thermo.Active/wwwroot/src/App.ts b/Thermo.Active/wwwroot/src/App.ts index 400b08c2..7338b188 100644 --- a/Thermo.Active/wwwroot/src/App.ts +++ b/Thermo.Active/wwwroot/src/App.ts @@ -180,6 +180,7 @@ export default class app extends Vue { onmousedown() { KeyboardHelper.hideKeyboard(); + messageService.publishToChannel('hideall'); } @Watch("isMainViewLiftedUp") diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/components/combo.ts b/Thermo.Active/wwwroot/src/app_modules_thermo/components/combo.ts index b8b6ed74..b6dc6ff8 100644 --- a/Thermo.Active/wwwroot/src/app_modules_thermo/components/combo.ts +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/components/combo.ts @@ -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()); } } \ No newline at end of file diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/components/combo.vue b/Thermo.Active/wwwroot/src/app_modules_thermo/components/combo.vue index a41ebdbf..f1f9533f 100644 --- a/Thermo.Active/wwwroot/src/app_modules_thermo/components/combo.vue +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/components/combo.vue @@ -9,7 +9,7 @@ -
+
{ this.isOpen = false; this.openFull = false; }) } @Watch("isOpen") diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/components/paddle/paddle.vue b/Thermo.Active/wwwroot/src/app_modules_thermo/components/paddle/paddle.vue index d4b60d73..f6ce7417 100644 --- a/Thermo.Active/wwwroot/src/app_modules_thermo/components/paddle/paddle.vue +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/components/paddle/paddle.vue @@ -1,5 +1,9 @@