2024-08-09 10:57:46 +08:00
|
|
|
import type { RouteRecordRaw } from 'vue-router';
|
|
|
|
|
|
|
|
import { BasicLayout } from '#/layouts';
|
|
|
|
import { $t } from '#/locales';
|
|
|
|
|
|
|
|
const routes: RouteRecordRaw[] = [
|
|
|
|
{
|
|
|
|
component: BasicLayout,
|
|
|
|
meta: {
|
|
|
|
icon: 'ion:layers-outline',
|
|
|
|
keepAlive: true,
|
|
|
|
order: 1000,
|
|
|
|
title: $t('page.examples.title'),
|
|
|
|
},
|
|
|
|
name: 'Examples',
|
|
|
|
path: '/examples',
|
|
|
|
children: [
|
2024-08-25 23:40:52 +08:00
|
|
|
{
|
|
|
|
name: 'ModalExample',
|
|
|
|
path: '/examples/modal',
|
|
|
|
component: () => import('#/views/examples/modal/index.vue'),
|
|
|
|
meta: {
|
2024-09-11 16:23:24 +08:00
|
|
|
icon: 'system-uicons:window-content',
|
2024-08-25 23:40:52 +08:00
|
|
|
title: $t('page.examples.modal.title'),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'DrawerExample',
|
|
|
|
path: '/examples/drawer',
|
|
|
|
component: () => import('#/views/examples/drawer/index.vue'),
|
|
|
|
meta: {
|
2024-09-11 16:23:24 +08:00
|
|
|
icon: 'iconoir:drawer',
|
2024-08-25 23:40:52 +08:00
|
|
|
title: $t('page.examples.drawer.title'),
|
|
|
|
},
|
|
|
|
},
|
2024-09-01 22:33:11 +08:00
|
|
|
{
|
|
|
|
name: 'EllipsisExample',
|
|
|
|
path: '/examples/ellipsis',
|
|
|
|
component: () => import('#/views/examples/ellipsis/index.vue'),
|
|
|
|
meta: {
|
2024-09-11 16:23:24 +08:00
|
|
|
icon: 'ion:ellipsis-horizontal',
|
2024-09-01 22:33:11 +08:00
|
|
|
title: $t('page.examples.ellipsis.title'),
|
|
|
|
},
|
|
|
|
},
|
2024-09-07 20:33:33 +08:00
|
|
|
{
|
|
|
|
name: 'CaptchaExample',
|
|
|
|
path: '/examples/captcha',
|
|
|
|
component: () => import('#/views/examples/captcha/index.vue'),
|
|
|
|
meta: {
|
2024-09-11 16:23:24 +08:00
|
|
|
icon: 'logos:recaptcha',
|
2024-09-07 20:33:33 +08:00
|
|
|
title: $t('page.examples.captcha.title'),
|
|
|
|
},
|
|
|
|
},
|
2024-09-10 21:48:51 +08:00
|
|
|
{
|
|
|
|
name: 'FormExample',
|
|
|
|
path: '/examples/form',
|
|
|
|
meta: {
|
2024-09-11 16:23:24 +08:00
|
|
|
icon: 'mdi:form-select',
|
2024-09-10 21:48:51 +08:00
|
|
|
title: $t('page.examples.form.title'),
|
|
|
|
},
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
name: 'FormBasicExample',
|
|
|
|
path: '/examples/form/basic',
|
|
|
|
component: () => import('#/views/examples/form/basic.vue'),
|
|
|
|
meta: {
|
|
|
|
title: $t('page.examples.form.basic'),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'FormQueryExample',
|
|
|
|
path: '/examples/form/query',
|
|
|
|
component: () => import('#/views/examples/form/query.vue'),
|
|
|
|
meta: {
|
|
|
|
title: $t('page.examples.form.query'),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'FormRulesExample',
|
|
|
|
path: '/examples/form/rules',
|
|
|
|
component: () => import('#/views/examples/form/rules.vue'),
|
|
|
|
meta: {
|
|
|
|
title: $t('page.examples.form.rules'),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'FormDynamicExample',
|
|
|
|
path: '/examples/form/dynamic',
|
|
|
|
component: () => import('#/views/examples/form/dynamic.vue'),
|
|
|
|
meta: {
|
|
|
|
title: $t('page.examples.form.dynamic'),
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'FormCustomExample',
|
|
|
|
path: '/examples/form/custom',
|
|
|
|
component: () => import('#/views/examples/form/custom.vue'),
|
|
|
|
meta: {
|
|
|
|
title: $t('page.examples.form.custom'),
|
|
|
|
},
|
|
|
|
},
|
2024-09-19 21:56:49 +08:00
|
|
|
{
|
|
|
|
name: 'FormApiExample',
|
|
|
|
path: '/examples/form/api',
|
|
|
|
component: () => import('#/views/examples/form/api.vue'),
|
|
|
|
meta: {
|
|
|
|
title: $t('page.examples.form.api'),
|
|
|
|
},
|
|
|
|
},
|
2024-09-10 21:48:51 +08:00
|
|
|
],
|
|
|
|
},
|
2024-08-09 10:57:46 +08:00
|
|
|
],
|
|
|
|
},
|
|
|
|
];
|
|
|
|
|
|
|
|
export default routes;
|