examples.ts 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. import type { RouteRecordRaw } from 'vue-router';
  2. import { BasicLayout } from '#/layouts';
  3. import { $t } from '#/locales';
  4. const routes: RouteRecordRaw[] = [
  5. {
  6. component: BasicLayout,
  7. meta: {
  8. icon: 'ion:layers-outline',
  9. keepAlive: true,
  10. order: 1000,
  11. title: $t('page.examples.title'),
  12. },
  13. name: 'Examples',
  14. path: '/examples',
  15. children: [
  16. {
  17. name: 'ModalExample',
  18. path: '/examples/modal',
  19. component: () => import('#/views/examples/modal/index.vue'),
  20. meta: {
  21. title: $t('page.examples.modal.title'),
  22. },
  23. },
  24. {
  25. name: 'DrawerExample',
  26. path: '/examples/drawer',
  27. component: () => import('#/views/examples/drawer/index.vue'),
  28. meta: {
  29. title: $t('page.examples.drawer.title'),
  30. },
  31. },
  32. {
  33. name: 'EllipsisExample',
  34. path: '/examples/ellipsis',
  35. component: () => import('#/views/examples/ellipsis/index.vue'),
  36. meta: {
  37. title: $t('page.examples.ellipsis.title'),
  38. },
  39. },
  40. {
  41. name: 'CaptchaExample',
  42. path: '/examples/captcha',
  43. component: () => import('#/views/examples/captcha/index.vue'),
  44. meta: {
  45. title: $t('page.examples.captcha.title'),
  46. },
  47. },
  48. ],
  49. },
  50. ];
  51. export default routes;