chore(client): tweak ui

This commit is contained in:
syuilo 2022-07-02 22:07:04 +09:00
parent ec41aefeea
commit 9c6a220810
4 changed files with 46 additions and 28 deletions

View file

@ -1,5 +1,5 @@
<script lang="ts">
import { h, onMounted, onUnmounted, ref } from 'vue';
import { h, onMounted, onUnmounted, ref, watch } from 'vue';
export default {
name: 'MarqueeText',
@ -32,6 +32,8 @@ export default {
contentEl.value.style.animationDuration = `${duration}s`;
}
watch(() => props.duration, calc);
onMounted(() => {
calc();
});