mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-05-14 01:46:52 -04:00
feat(ui): added c-select in the ui lib (#550)
* feat(ui): added c-select in the ui lib * refactor(ui): switched n-select to c-select
This commit is contained in:
parent
6498c9b0fa
commit
dfa1ba8554
29 changed files with 666 additions and 199 deletions
13
src/ui/demo/demo-home.page.vue
Normal file
13
src/ui/demo/demo-home.page.vue
Normal file
|
@ -0,0 +1,13 @@
|
|||
<script lang="ts" setup>
|
||||
import { demoRoutes } from './demo.routes';
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div grid grid-cols-5 gap-2>
|
||||
<c-card v-for="{ name } of demoRoutes" :key="name" :title="String(name)">
|
||||
<c-button :to="{ name }">
|
||||
{{ name }}
|
||||
</c-button>
|
||||
</c-card>
|
||||
</div>
|
||||
</template>
|
|
@ -1,4 +1,5 @@
|
|||
import type { RouteRecordRaw } from 'vue-router';
|
||||
import DemoHome from './demo-home.page.vue';
|
||||
|
||||
const demoPages = import.meta.glob('../*/*.demo.vue');
|
||||
|
||||
|
@ -17,7 +18,14 @@ export const routes = [
|
|||
{
|
||||
path: '/c-lib',
|
||||
name: 'c-lib',
|
||||
children: demoRoutes,
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
name: 'c-lib-index',
|
||||
component: DemoHome,
|
||||
},
|
||||
...demoRoutes,
|
||||
],
|
||||
component: () => import('./demo-wrapper.vue'),
|
||||
},
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue