This commit is contained in:
parent
095a47d63b
commit
1d3d70f760
|
@ -6,10 +6,10 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
<template>
|
<template>
|
||||||
<div
|
<div
|
||||||
:class="$style.root"
|
:class="$style.root"
|
||||||
:style="tickerColorsRef"
|
:style="tickerColors"
|
||||||
>
|
>
|
||||||
<img :class="$style.icon" :src="tickerInfoRef.iconUrl"/>
|
<img :class="$style.icon" :src="tickerInfo.iconUrl"/>
|
||||||
<div :class="$style.name">{{ tickerInfoRef.name }}</div>
|
<div :class="$style.name">{{ tickerInfo.name }}</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -20,8 +20,8 @@ import type { MkInstanceTickerProps } from '@/components/MkInstanceTicker.impl.j
|
||||||
|
|
||||||
const props = defineProps<MkInstanceTickerProps>();
|
const props = defineProps<MkInstanceTickerProps>();
|
||||||
|
|
||||||
const tickerInfoRef = computed(() => getTickerInfo(props));
|
const tickerInfo = computed(() => getTickerInfo(props));
|
||||||
const tickerColorsRef = computed(() => getTickerColors(tickerInfoRef.value));
|
const tickerColors = computed(() => getTickerColors(tickerInfo.value));
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" module>
|
<style lang="scss" module>
|
||||||
|
|
Loading…
Reference in New Issue