aboutsummaryrefslogtreecommitdiff
path: root/src/ui/demo/demo-wrapper.vue
diff options
context:
space:
mode:
authorGravatar Corentin Thomasset <corentin.thomasset74@gmail.com> 2023-05-07 23:31:10 +0200
committerGravatar Corentin THOMASSET <corentin.thomasset74@gmail.com> 2023-05-14 22:30:23 +0200
commitaad8d84e13ce31c1b7c1cbb930fb8bd4c0abe13a (patch)
treec483e3a25c858c09c73496616d95f168d8b9298d /src/ui/demo/demo-wrapper.vue
parent401f13f7e305d60097db2334642e423c41d8897d (diff)
downloadit-tools-aad8d84e13ce31c1b7c1cbb930fb8bd4c0abe13a.tar.gz
it-tools-aad8d84e13ce31c1b7c1cbb930fb8bd4c0abe13a.tar.zst
it-tools-aad8d84e13ce31c1b7c1cbb930fb8bd4c0abe13a.zip
ui-lib(new-component): added text input component in the c-lib
Diffstat (limited to '')
-rw-r--r--src/ui/demo/demo-wrapper.vue5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ui/demo/demo-wrapper.vue b/src/ui/demo/demo-wrapper.vue
index cc16a00..8d4bae0 100644
--- a/src/ui/demo/demo-wrapper.vue
+++ b/src/ui/demo/demo-wrapper.vue
@@ -18,6 +18,8 @@
</div>
<div flex-1 pl-4>
+ <h1>{{ componentName }}</h1>
+
<router-view />
</div>
</div>
@@ -25,9 +27,12 @@
</template>
<script lang="ts" setup>
+import _ from 'lodash';
import { demoRoutes } from './demo.routes';
const route = useRoute();
+
+const componentName = computed(() => _.startCase(String(route.name).replace(/^c-/, '')));
</script>
<style lang="less" scoped></style>