Skip to content

Commit cce0e89

Browse files
committed
VueUiSparkTrend fixes
1 parent 87eacf7 commit cce0e89

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vue-data-ui",
33
"private": false,
4-
"version": "2.1.19",
4+
"version": "2.1.20",
55
"type": "module",
66
"description": "A user-empowering data visualization Vue components library",
77
"keywords": [

src/components/vue-ui-spark-trend.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const safeDatasetCopy = ref(props.dataset.map(v => {
5454
if(trendConfig.value.style.animation.show) {
5555
return null
5656
} else {
57-
return ![undefined].includes(d) ? d : null
57+
return ![undefined].includes(v) ? v : null
5858
}
5959
}))
6060
@@ -73,7 +73,7 @@ onMounted(() => {
7373
let interval = 1000 / fps;
7474
let then = performance.now();
7575
76-
if (trendConfig.value.style.animation && trendConfig.value.style.animation.animationFrames && props.dataset.length > 1) {
76+
if (trendConfig.value.style.animation.show && trendConfig.value.style.animation.animationFrames && props.dataset.length > 1) {
7777
safeDatasetCopy.value = [];
7878
let start = 0;
7979

0 commit comments

Comments
 (0)