mirror of
https://gitee.com/dromara/go-view.git
synced 2025-10-14 14:32:10 +08:00
fix: small change
This commit is contained in:
parent
7f01544ef9
commit
cc80bb0c09
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div class="sizeScroll go-text-box">
|
||||
<div class="content">
|
||||
<div ref="textAutoBox" id="inner" :class="{ innerActive: true }">
|
||||
<div ref="textAutoBox" id="inner" class="innerActive">
|
||||
<div id="textAutoBox" v-html="option.dataset"></div>
|
||||
</div>
|
||||
</div>
|
||||
@ -54,7 +54,6 @@ onMounted(() => {
|
||||
if (!showDown) {
|
||||
nextTick(() => {textAutoBox.value.style.animationDuration = '0s'})
|
||||
relanimation.value = 0
|
||||
console.log('停止',textAutoBox.value.style);
|
||||
}
|
||||
})
|
||||
|
||||
@ -63,16 +62,6 @@ watch(
|
||||
() => props.chartConfig.option.dataset,
|
||||
(newData: any) => {
|
||||
option.dataset = newData
|
||||
|
||||
},
|
||||
{
|
||||
immediate: true
|
||||
}
|
||||
)
|
||||
|
||||
watch(
|
||||
() => option.dataset,
|
||||
() => {
|
||||
if (textAutoBox.value !== undefined) {
|
||||
showDown = false
|
||||
nextTick(() => {
|
||||
@ -98,6 +87,16 @@ watch(
|
||||
}
|
||||
)
|
||||
|
||||
watch(
|
||||
() => animation,
|
||||
(newData: any) => {
|
||||
relanimation = newData
|
||||
},
|
||||
{
|
||||
immediate: true
|
||||
}
|
||||
)
|
||||
|
||||
// 预览更新
|
||||
useChartDataFetch(props.chartConfig, useChartEditStore, (newData: string) => {
|
||||
option.dataset = newData
|
||||
@ -137,11 +136,11 @@ useChartDataFetch(props.chartConfig, useChartEditStore, (newData: string) => {
|
||||
}
|
||||
}
|
||||
@keyframes slide {
|
||||
0% {
|
||||
from {
|
||||
transform: translateY(0);
|
||||
}
|
||||
100% {
|
||||
transform: translateY(-60%);
|
||||
to {
|
||||
transform: translateY(-100%);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user