123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235 |
- 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: [
- {
- name: 'ModalExample',
- path: '/examples/modal',
- component: () => import('#/views/examples/modal/index.vue'),
- meta: {
- icon: 'system-uicons:window-content',
- title: $t('page.examples.modal.title'),
- },
- },
- {
- name: 'DrawerExample',
- path: '/examples/drawer',
- component: () => import('#/views/examples/drawer/index.vue'),
- meta: {
- icon: 'iconoir:drawer',
- title: $t('page.examples.drawer.title'),
- },
- },
- {
- name: 'EllipsisExample',
- path: '/examples/ellipsis',
- component: () => import('#/views/examples/ellipsis/index.vue'),
- meta: {
- icon: 'ion:ellipsis-horizontal',
- title: $t('page.examples.ellipsis.title'),
- },
- },
- {
- name: 'FormExample',
- path: '/examples/form',
- meta: {
- icon: 'mdi:form-select',
- 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'),
- },
- },
- {
- name: 'FormApiExample',
- path: '/examples/form/api',
- component: () => import('#/views/examples/form/api.vue'),
- meta: {
- title: $t('page.examples.form.api'),
- },
- },
- {
- name: 'FormMergeExample',
- path: '/examples/form/merge',
- component: () => import('#/views/examples/form/merge.vue'),
- meta: {
- title: $t('page.examples.form.merge'),
- },
- },
- ],
- },
- {
- name: 'VxeTableExample',
- path: '/examples/vxe-table',
- meta: {
- icon: 'lucide:table',
- title: $t('page.examples.vxeTable.title'),
- },
- children: [
- {
- name: 'VxeTableBasicExample',
- path: '/examples/vxe-table/basic',
- component: () => import('#/views/examples/vxe-table/basic.vue'),
- meta: {
- title: $t('page.examples.vxeTable.basic'),
- },
- },
- {
- name: 'VxeTableRemoteExample',
- path: '/examples/vxe-table/remote',
- component: () => import('#/views/examples/vxe-table/remote.vue'),
- meta: {
- title: $t('page.examples.vxeTable.remote'),
- },
- },
- {
- name: 'VxeTableTreeExample',
- path: '/examples/vxe-table/tree',
- component: () => import('#/views/examples/vxe-table/tree.vue'),
- meta: {
- title: $t('page.examples.vxeTable.tree'),
- },
- },
- {
- name: 'VxeTableFixedExample',
- path: '/examples/vxe-table/fixed',
- component: () => import('#/views/examples/vxe-table/fixed.vue'),
- meta: {
- title: $t('page.examples.vxeTable.fixed'),
- },
- },
- {
- name: 'VxeTableCustomCellExample',
- path: '/examples/vxe-table/custom-cell',
- component: () =>
- import('#/views/examples/vxe-table/custom-cell.vue'),
- meta: {
- title: $t('page.examples.vxeTable.custom-cell'),
- },
- },
- {
- name: 'VxeTableFormExample',
- path: '/examples/vxe-table/form',
- component: () => import('#/views/examples/vxe-table/form.vue'),
- meta: {
- title: $t('page.examples.vxeTable.form'),
- },
- },
- {
- name: 'VxeTableEditCellExample',
- path: '/examples/vxe-table/edit-cell',
- component: () => import('#/views/examples/vxe-table/edit-cell.vue'),
- meta: {
- title: $t('page.examples.vxeTable.editCell'),
- },
- },
- {
- name: 'VxeTableEditRowExample',
- path: '/examples/vxe-table/edit-row',
- component: () => import('#/views/examples/vxe-table/edit-row.vue'),
- meta: {
- title: $t('page.examples.vxeTable.editRow'),
- },
- },
- {
- name: 'VxeTableVirtualExample',
- path: '/examples/vxe-table/virtual',
- component: () => import('#/views/examples/vxe-table/virtual.vue'),
- meta: {
- title: $t('page.examples.vxeTable.virtual'),
- },
- },
- ],
- },
- {
- name: 'CaptchaExample',
- path: '/examples/captcha',
- meta: {
- icon: 'logos:recaptcha',
- title: $t('page.examples.captcha.title'),
- },
- children: [
- {
- name: 'DragVerifyExample',
- path: '/examples/captcha/slider',
- component: () =>
- import('#/views/examples/captcha/slider-captcha.vue'),
- meta: {
- title: $t('page.examples.captcha.sliderCaptcha'),
- },
- },
- {
- name: 'RotateVerifyExample',
- path: '/examples/captcha/slider-rotate',
- component: () =>
- import('#/views/examples/captcha/slider-rotate-captcha.vue'),
- meta: {
- title: $t('page.examples.captcha.sliderRotateCaptcha'),
- },
- },
- {
- name: 'CaptchaPointSelectionExample',
- path: '/examples/captcha/point-selection',
- component: () =>
- import('#/views/examples/captcha/point-selection-captcha.vue'),
- meta: {
- title: $t('page.examples.captcha.pointSelection'),
- },
- },
- ],
- },
- ],
- },
- ];
- export default routes;
|