From 58aba42dbd153c1d51ddd845f88648cd78d56ded Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Fri, 25 Mar 2022 19:56:22 +1100 Subject: Fix typescript errors --- src/components/Settings.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/components/Settings.vue') diff --git a/src/components/Settings.vue b/src/components/Settings.vue index b56de12..d35549e 100644 --- a/src/components/Settings.vue +++ b/src/components/Settings.vue @@ -21,13 +21,17 @@ export default defineComponent({ this.$emit('layout-option-change'); }, onMinTileSzChg(){ - if (Number(this.$refs.minTileSzInput.value) > Number(this.$refs.maxTileSzInput.value)){ + let minInput = this.$refs.minTileSzInput as HTMLInputElement; + let maxInput = this.$refs.maxTileSzInput as HTMLInputElement; + if (Number(minInput.value) > Number(maxInput.value)){ this.layoutOptions.maxTileSz = this.layoutOptions.minTileSz; } this.onLayoutOptChg(); }, - onMaxTileSzChg(evt){ - if (Number(this.$refs.maxTileSzInput.value) < Number(this.$refs.minTileSzInput.value)){ + onMaxTileSzChg(){ + let minInput = this.$refs.minTileSzInput as HTMLInputElement; + let maxInput = this.$refs.maxTileSzInput as HTMLInputElement; + if (Number(maxInput.value) < Number(minInput.value)){ this.layoutOptions.minTileSz = this.layoutOptions.maxTileSz; } this.onLayoutOptChg(); -- cgit v1.2.3