mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-05-14 01:46:52 -04:00
ui-lib(new-component): added text input component in the c-lib
This commit is contained in:
parent
401f13f7e3
commit
aad8d84e13
14 changed files with 428 additions and 21 deletions
|
@ -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>
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue