Skip to content

Commit b1c496e

Browse files
committed
Dev environment - Added VueUiKpi testing arena
1 parent 34f81cb commit b1c496e

File tree

3 files changed

+50
-2
lines changed

3 files changed

+50
-2
lines changed

TestingArena/ArenaVueUiKpi.vue

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<script setup>
2+
import { ref, computed, onMounted } from "vue";
3+
import LocalVueUiKpi from '../src/components/vue-ui-kpi.vue';
4+
import LocalVueDataUi from '../src/components/vue-data-ui.vue';
5+
import Box from "./Box.vue";
6+
import convertArrayToObject from "./convertModel";
7+
import { useArena } from "../src/useArena";
8+
9+
const dataset = ref(12012012);
10+
11+
function updateVal() {
12+
dataset.value = Math.random() * 10000
13+
}
14+
15+
16+
</script>
17+
18+
<template>
19+
<div>
20+
<button @click="updateVal">NEW VAL</button>
21+
<LocalVueUiKpi :dataset="dataset"/>
22+
</div>
23+
<Box>
24+
<template #title>VueUiKpi</template>
25+
26+
<template #local>
27+
<LocalVueUiKpi :dataset="dataset"/>
28+
</template>
29+
<template #VDUI-local>
30+
<LocalVueDataUi component="VueUiKpi" :dataset="dataset"/>
31+
</template>
32+
<template #build>
33+
<VueUiKpi :dataset="dataset"/>
34+
</template>
35+
<template #VDUI-build>
36+
<VueDataUi component="VueUiKpi" :dataset="dataset"/>
37+
</template>
38+
</Box>
39+
</template>

src/App.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ import ArenaVueUiParallelCoordinatePlot from "../TestingArena/ArenaVueUiParallel
4545
import ArenaVueUiTimer from "../TestingArena/ArenaVueUiTimer.vue";
4646
import ArenaVueUiCarouselTable from "../TestingArena/ArenaVueUiCarouselTable.vue";
4747
import ArenaVueUiGizmo from "../TestingArena/ArenaVueUiGizmo.vue";
48+
import ArenaVueUiKpi from "../TestingArena/ArenaVueUiKpi.vue";
4849
4950
const showOldArena = ref(false);
5051
@@ -93,12 +94,14 @@ const components = ref([
9394
/*_________________*/"VueUiTimer", // 41
9495
/*_________*/"VueUiCarouselTable", // 42
9596
/*_________________*/"VueUiGizmo", // 43
97+
/*___________________*/"VueUiKpi", // 44
98+
9699
// screenshot
97100
// dashboard
98101
// cursor
99102
]);
100103
101-
const selectedComponent = ref(components.value[43]);
104+
const selectedComponent = ref(components.value[44]);
102105
103106
</script>
104107

@@ -244,4 +247,7 @@ const selectedComponent = ref(components.value[43]);
244247

245248
<!-- 43 -->
246249
<ArenaVueUiGizmo v-if="selectedComponent === 'VueUiGizmo'" />
250+
251+
<!-- 44 -->
252+
<ArenaVueUiKpi v-if="selectedComponent === 'VueUiKpi'" />
247253
</template>

src/main.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ import {
5757
VueUiParallelCoordinatePlot,
5858
VueUiTimer,
5959
VueUiCarouselTable,
60-
VueUiGizmo
60+
VueUiGizmo,
61+
VueUiKpi
6162
} from 'vue-data-ui';
6263
import 'vue-data-ui/style.css';
6364

@@ -118,4 +119,6 @@ app.component("VueUiParallelCoordinatePlot", VueUiParallelCoordinatePlot);
118119
app.component("VueUiTimer", VueUiTimer);
119120
app.component("VueUiCarouselTable", VueUiCarouselTable);
120121
app.component("VueUiGizmo", VueUiGizmo);
122+
app.component("VueUiKpi", VueUiKpi);
123+
121124
app.mount('#app');

0 commit comments

Comments
 (0)