123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280 |
- import type { RouteRecordRaw } from 'vue-router';
- import { $t } from '#/locales';
- const routes: RouteRecordRaw[] = [
- {
- meta: {
- icon: 'ion:layers-outline',
- keepAlive: true,
- order: 1000,
- title: $t('examples.title'),
- },
- name: 'Examples',
- path: '/examples',
- children: [
- {
- name: 'FormExample',
- path: '/examples/form',
- meta: {
- icon: 'mdi:form-select',
- title: $t('examples.form.title'),
- },
- children: [
- {
- name: 'FormBasicExample',
- path: '/examples/form/basic',
- component: () => import('#/views/examples/form/basic.vue'),
- meta: {
- title: $t('examples.form.basic'),
- },
- },
- {
- name: 'FormQueryExample',
- path: '/examples/form/query',
- component: () => import('#/views/examples/form/query.vue'),
- meta: {
- title: $t('examples.form.query'),
- },
- },
- {
- name: 'FormRulesExample',
- path: '/examples/form/rules',
- component: () => import('#/views/examples/form/rules.vue'),
- meta: {
- title: $t('examples.form.rules'),
- },
- },
- {
- name: 'FormDynamicExample',
- path: '/examples/form/dynamic',
- component: () => import('#/views/examples/form/dynamic.vue'),
- meta: {
- title: $t('examples.form.dynamic'),
- },
- },
- {
- name: 'FormCustomExample',
- path: '/examples/form/custom',
- component: () => import('#/views/examples/form/custom.vue'),
- meta: {
- title: $t('examples.form.custom'),
- },
- },
- {
- name: 'FormApiExample',
- path: '/examples/form/api',
- component: () => import('#/views/examples/form/api.vue'),
- meta: {
- title: $t('examples.form.api'),
- },
- },
- {
- name: 'FormMergeExample',
- path: '/examples/form/merge',
- component: () => import('#/views/examples/form/merge.vue'),
- meta: {
- title: $t('examples.form.merge'),
- },
- },
- ],
- },
- {
- name: 'VxeTableExample',
- path: '/examples/vxe-table',
- meta: {
- icon: 'lucide:table',
- title: $t('examples.vxeTable.title'),
- },
- children: [
- {
- name: 'VxeTableBasicExample',
- path: '/examples/vxe-table/basic',
- component: () => import('#/views/examples/vxe-table/basic.vue'),
- meta: {
- title: $t('examples.vxeTable.basic'),
- },
- },
- {
- name: 'VxeTableRemoteExample',
- path: '/examples/vxe-table/remote',
- component: () => import('#/views/examples/vxe-table/remote.vue'),
- meta: {
- title: $t('examples.vxeTable.remote'),
- },
- },
- {
- name: 'VxeTableTreeExample',
- path: '/examples/vxe-table/tree',
- component: () => import('#/views/examples/vxe-table/tree.vue'),
- meta: {
- title: $t('examples.vxeTable.tree'),
- },
- },
- {
- name: 'VxeTableFixedExample',
- path: '/examples/vxe-table/fixed',
- component: () => import('#/views/examples/vxe-table/fixed.vue'),
- meta: {
- title: $t('examples.vxeTable.fixed'),
- },
- },
- {
- name: 'VxeTableCustomCellExample',
- path: '/examples/vxe-table/custom-cell',
- component: () =>
- import('#/views/examples/vxe-table/custom-cell.vue'),
- meta: {
- title: $t('examples.vxeTable.custom-cell'),
- },
- },
- {
- name: 'VxeTableFormExample',
- path: '/examples/vxe-table/form',
- component: () => import('#/views/examples/vxe-table/form.vue'),
- meta: {
- title: $t('examples.vxeTable.form'),
- },
- },
- {
- name: 'VxeTableEditCellExample',
- path: '/examples/vxe-table/edit-cell',
- component: () => import('#/views/examples/vxe-table/edit-cell.vue'),
- meta: {
- title: $t('examples.vxeTable.editCell'),
- },
- },
- {
- name: 'VxeTableEditRowExample',
- path: '/examples/vxe-table/edit-row',
- component: () => import('#/views/examples/vxe-table/edit-row.vue'),
- meta: {
- title: $t('examples.vxeTable.editRow'),
- },
- },
- {
- name: 'VxeTableVirtualExample',
- path: '/examples/vxe-table/virtual',
- component: () => import('#/views/examples/vxe-table/virtual.vue'),
- meta: {
- title: $t('examples.vxeTable.virtual'),
- },
- },
- ],
- },
- {
- name: 'CaptchaExample',
- path: '/examples/captcha',
- meta: {
- icon: 'logos:recaptcha',
- title: $t('examples.captcha.title'),
- },
- children: [
- {
- name: 'DragVerifyExample',
- path: '/examples/captcha/slider',
- component: () =>
- import('#/views/examples/captcha/slider-captcha.vue'),
- meta: {
- title: $t('examples.captcha.sliderCaptcha'),
- },
- },
- {
- name: 'RotateVerifyExample',
- path: '/examples/captcha/slider-rotate',
- component: () =>
- import('#/views/examples/captcha/slider-rotate-captcha.vue'),
- meta: {
- title: $t('examples.captcha.sliderRotateCaptcha'),
- },
- },
- {
- name: 'CaptchaPointSelectionExample',
- path: '/examples/captcha/point-selection',
- component: () =>
- import('#/views/examples/captcha/point-selection-captcha.vue'),
- meta: {
- title: $t('examples.captcha.pointSelection'),
- },
- },
- ],
- },
- {
- name: 'ModalExample',
- path: '/examples/modal',
- component: () => import('#/views/examples/modal/index.vue'),
- meta: {
- icon: 'system-uicons:window-content',
- title: $t('examples.modal.title'),
- },
- },
- {
- name: 'DrawerExample',
- path: '/examples/drawer',
- component: () => import('#/views/examples/drawer/index.vue'),
- meta: {
- icon: 'iconoir:drawer',
- title: $t('examples.drawer.title'),
- },
- },
- {
- name: 'EllipsisExample',
- path: '/examples/ellipsis',
- component: () => import('#/views/examples/ellipsis/index.vue'),
- meta: {
- icon: 'ion:ellipsis-horizontal',
- title: $t('examples.ellipsis.title'),
- },
- },
- {
- name: 'VueResizeDemo',
- path: '/demos/resize/basic',
- component: () => import('#/views/examples/resize/basic.vue'),
- meta: {
- icon: 'material-symbols:resize',
- title: $t('examples.resize.title'),
- },
- },
- {
- name: 'ColPageDemo',
- path: '/examples/layout/col-page',
- component: () => import('#/views/examples/layout/col-page.vue'),
- meta: {
- badge: 'Alpha',
- badgeVariants: 'destructive',
- icon: 'material-symbols:horizontal-distribute',
- title: $t('examples.layout.col-page'),
- },
- },
- {
- name: 'TippyDemo',
- path: '/examples/tippy',
- component: () => import('#/views/examples/tippy/index.vue'),
- meta: {
- icon: 'mdi:message-settings-outline',
- title: 'Tippy',
- },
- },
- {
- name: 'JsonViewer',
- path: '/examples/json-viewer',
- component: () => import('#/views/examples/json-viewer/index.vue'),
- meta: {
- icon: 'tabler:json',
- title: 'JsonViewer',
- },
- },
- {
- name: 'Motion',
- path: '/examples/motion',
- component: () => import('#/views/examples/motion/index.vue'),
- meta: {
- icon: 'mdi:animation-play',
- title: 'Motion',
- },
- },
- ],
- },
- ];
- export default routes;
|