From a0ef05a86ecb8b3f36102b980a37f93ce97ba8d1 Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Mon, 28 Mar 2022 19:34:59 +1100 Subject: Make option passing less irregular --- src/components/TileInfoModal.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/components/TileInfoModal.vue') diff --git a/src/components/TileInfoModal.vue b/src/components/TileInfoModal.vue index f45ef04..cfa1a10 100644 --- a/src/components/TileInfoModal.vue +++ b/src/components/TileInfoModal.vue @@ -6,16 +6,16 @@ import {TolNode} from '../tol'; export default defineComponent({ props: { tolNode: {type: Object as PropType, required: true}, - options: {type: Object, required: true}, + uiOpts: {type: Object, required: true}, }, computed: { imgStyles(): Record { return { backgroundImage: 'url(\'/img/' + this.tolNode.name.replaceAll('\'', '\\\'') + '.png\')', - width: this.options.infoModalImgSz + 'px', - height: this.options.infoModalImgSz + 'px', + width: this.uiOpts.infoModalImgSz + 'px', + height: this.uiOpts.infoModalImgSz + 'px', backgroundSize: 'cover', - borderRadius: this.options.borderRadius + 'px', + borderRadius: this.uiOpts.borderRadius + 'px', } }, }, -- cgit v1.2.3