mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-11-15 11:21:42 +00:00
ui-lib(new-component): added text input component in the c-lib
This commit is contained in:
committed by
Corentin THOMASSET
parent
401f13f7e3
commit
aad8d84e13
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user