ui-lib(new-component): added text input component in the c-lib

This commit is contained in:
Corentin Thomasset 2023-05-07 23:31:10 +02:00 committed by Corentin THOMASSET
parent 401f13f7e3
commit aad8d84e13
14 changed files with 428 additions and 21 deletions

View file

@ -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>

View file

@ -6,8 +6,6 @@ export const demoRoutes = Object.keys(demoPages).map((path) => {
const [, , fileName] = path.split('/');
const name = fileName.split('.').shift();
console.log(path);
return {
path: name,
name,