diff options
| author | Terry Truong <terry06890@gmail.com> | 2022-03-28 19:34:59 +1100 |
|---|---|---|
| committer | Terry Truong <terry06890@gmail.com> | 2022-03-28 19:34:59 +1100 |
| commit | a0ef05a86ecb8b3f36102b980a37f93ce97ba8d1 (patch) | |
| tree | 06e7426ee5a40624ba102e21120138dc13131c84 /src/components/TileInfoModal.vue | |
| parent | c9a116654004c014257a2aac8d6cf82bc7d7d580 (diff) | |
Make option passing less irregular
Diffstat (limited to 'src/components/TileInfoModal.vue')
| -rw-r--r-- | src/components/TileInfoModal.vue | 8 |
1 files changed, 4 insertions, 4 deletions
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<TolNode>, required: true}, - options: {type: Object, required: true}, + uiOpts: {type: Object, required: true}, }, computed: { imgStyles(): Record<string,string> { 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', } }, }, |
