diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/components/tastierino.ts b/Thermo.Active/wwwroot/src/app_modules_thermo/components/tastierino.ts index d6109d35..f6c8e70b 100644 --- a/Thermo.Active/wwwroot/src/app_modules_thermo/components/tastierino.ts +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/components/tastierino.ts @@ -1,52 +1,44 @@ import Vue from 'vue'; -import {Prop} from 'vue-property-decorator'; +import { Prop } from 'vue-property-decorator'; import Component from 'vue-class-component'; -@Component({name:"tastierino"}) -export default class Tastierino extends Vue{ +@Component({ name: "tastierino" }) +export default class Tastierino extends Vue { - @Prop() - actualValue:Recipe.IValue; + @Prop() + actualValue: Recipe.IValue; - temp:string; - point:string; + temp: string; + point: string; - @Prop() - value: string; + @Prop() + value: string; - get showtast() { - return this.value; + del() { + this.actualValue.valueAct = 0; + } + + canc() { + this.temp = String(this.actualValue.valueAct); + this.actualValue.valueAct = Number(this.temp.slice(0, -1)) + } + + add(num: string) { + if (this.point) { + this.point += num; + this.actualValue.valueAct = Number(this.point) + } else { + this.temp = String(this.actualValue.valueAct); + this.temp += num; + this.actualValue.valueAct = Number(this.temp) } + } - set showtast(v: string) { - this.$emit('input', v); - } - - del(){ - this.actualValue.valueAct=0; - } - - canc(){ - this.temp=String(this.actualValue.valueAct); - this.actualValue.valueAct=Number(this.temp.slice(0,-1)) - } - - add(num:string){ - if(this.point){ - this.point+=num; - this.actualValue.valueAct=Number(this.point) - }else{ - this.temp=String(this.actualValue.valueAct); - this.temp+=num; - this.actualValue.valueAct=Number(this.temp) - } - } - - addpoint(){ - if(!this.point){ - this.point=String(this.actualValue.valueAct); - this.point+="."; - } + addpoint() { + if (!this.point) { + this.point = String(this.actualValue.valueAct); + this.point += "."; } + } } \ No newline at end of file diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/formato/components/SVG_Components/controstampoSVG.ts b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/formato/components/SVG_Components/controstampoSVG.ts index c68e014c..b0ea83e3 100644 --- a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/formato/components/SVG_Components/controstampoSVG.ts +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/formato/components/SVG_Components/controstampoSVG.ts @@ -1,21 +1,9 @@ import Vue from 'vue'; import Component from 'vue-class-component'; -import {Prop} from 'vue-property-decorator'; +import { Prop } from 'vue-property-decorator'; @Component({}) -export default class ControstampoSVG extends Vue{ - - @Prop() - value: string; - - get showtast() { - return this.value; - } - - set showtast(v: string) { - this.$emit('input', v); - } - - @Prop({default:0}) - alt:Recipe.IValue; +export default class ControstampoSVG extends Vue { + @Prop({ default: 0 }) + alt: Recipe.IValue; } \ No newline at end of file diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/formato/components/SVG_Components/controstampoSVG.vue b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/formato/components/SVG_Components/controstampoSVG.vue index b74863f0..e3aa6661 100644 --- a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/formato/components/SVG_Components/controstampoSVG.vue +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/formato/components/SVG_Components/controstampoSVG.vue @@ -2,7 +2,7 @@