2024-07-31 00:19:17 +08:00
|
|
|
import type { RouteRecordRaw } from 'vue-router';
|
|
|
|
|
|
|
|
import { BasicLayout } from '#/layouts';
|
|
|
|
import { $t } from '#/locales';
|
|
|
|
|
|
|
|
const routes: RouteRecordRaw[] = [
|
|
|
|
{
|
|
|
|
component: BasicLayout,
|
|
|
|
meta: {
|
|
|
|
icon: 'ic:baseline-view-in-ar',
|
|
|
|
keepAlive: true,
|
|
|
|
order: 1000,
|
2024-10-19 14:28:21 +08:00
|
|
|
title: $t('demos.title'),
|
2024-07-31 00:19:17 +08:00
|
|
|
},
|
|
|
|
name: 'Demos',
|
|
|
|
path: '/demos',
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
meta: {
|
2024-10-19 14:28:21 +08:00
|
|
|
title: $t('demos.naive'),
|
2024-07-31 00:19:17 +08:00
|
|
|
},
|
|
|
|
name: 'NaiveDemos',
|
2024-07-31 21:48:37 +08:00
|
|
|
path: '/demos/naive',
|
2024-07-31 00:19:17 +08:00
|
|
|
component: () => import('#/views/demos/naive/index.vue'),
|
|
|
|
},
|
2024-08-07 12:13:54 +08:00
|
|
|
{
|
|
|
|
meta: {
|
2024-10-19 14:28:21 +08:00
|
|
|
title: $t('demos.table'),
|
2024-08-07 12:13:54 +08:00
|
|
|
},
|
|
|
|
name: 'Table',
|
|
|
|
path: '/demos/table',
|
|
|
|
component: () => import('#/views/demos/table/index.vue'),
|
|
|
|
},
|
2024-12-08 19:23:46 +08:00
|
|
|
{
|
|
|
|
meta: {
|
|
|
|
title: $t('demos.form'),
|
|
|
|
},
|
|
|
|
name: 'Form',
|
|
|
|
path: '/demos/form',
|
|
|
|
component: () => import('#/views/demos/form/basic.vue'),
|
|
|
|
},
|
2024-07-31 00:19:17 +08:00
|
|
|
],
|
|
|
|
},
|
|
|
|
];
|
|
|
|
|
|
|
|
export default routes;
|