-
No.{{ item.ranking }}
+
{{ indexPrefix }}{{ item.ranking }}
-
+
{{ status.mergedConfig.valueFormatter ? status.mergedConfig.valueFormatter(item) : item.value }}
{{ unit }}
-
-
+
+
+ {{ status.mergedConfig.valueFormatter ? status.mergedConfig.valueFormatter(item) : item.value }}
+ {{ unit }}
+
@@ -28,7 +32,9 @@ const props = defineProps({
},
});
const { w, h } = toRefs(props.chartConfig.attr);
-const { rowNum, unit, color, textColor, borderColor, indexFontSize, leftFontSize, rightFontSize } = toRefs(props.chartConfig.option);
+const { type, rowNum, unit, height, color, textColor, borderColor, borderRadius, indexPrefix, indexFontSize, leftFontSize, rightFontSize } = toRefs(
+ props.chartConfig.option
+);
const status = reactive({
mergedConfig: props.chartConfig.option,
@@ -91,7 +97,7 @@ const calcHeights = (onresize = false) => {
const animation = async (start = false) => {
let { avgHeight, animationIndex, mergedConfig, rowsData, updater } = status;
- const { waitTime, carousel, rowNum } = mergedConfig;
+ const { isAnimation, waitTime, carousel, rowNum } = mergedConfig;
const rowLength = rowsData.length;
if (rowNum >= rowLength) return;
if (start) {
@@ -104,6 +110,7 @@ const animation = async (start = false) => {
status.rows = rows.slice(0, rowNum + 1);
status.heights = new Array(rowLength).fill(avgHeight);
await new Promise((resolve) => setTimeout(resolve, 300));
+ if (!isAnimation) return;
if (updater !== status.updater) return;
status.heights.splice(0, animationNum, ...new Array(animationNum).fill(0));
animationIndex += animationNum;
@@ -177,7 +184,7 @@ onUnmounted(() => {
diff --git a/src/views/land/components/landCirculation.vue b/src/views/land/components/landCirculation.vue
index fda8e7c..687d111 100644
--- a/src/views/land/components/landCirculation.vue
+++ b/src/views/land/components/landCirculation.vue
@@ -1,113 +1,88 @@
-
-
-
-
-
-
-
-
- {{ item[b] }}
-
-
-
-
-
-
+
+
-
-
diff --git a/src/views/land/components/landPatrol.vue b/src/views/land/components/landPatrol.vue
index d7682f5..f68255c 100644
--- a/src/views/land/components/landPatrol.vue
+++ b/src/views/land/components/landPatrol.vue
@@ -1,121 +1,79 @@
-
-
-
-
-
-
-
-
-
- {{ item[b] }}
-
-
-
-
-
-
-
-
-
-
-
-
+
-
-
-