123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522 |
- import type { AppRouteModule } from '/@/router/types';
- import { getParentLayout, LAYOUT } from '/@/router/constant';
- import { t } from '/@/hooks/web/useI18n';
- const comp: AppRouteModule = {
- path: '/comp',
- name: 'Comp',
- component: LAYOUT,
- redirect: '/comp/basic',
- meta: {
- icon: 'ion:layers-outline',
- title: t('routes.demo.comp.comp'),
- },
- children: [
- {
- path: 'basic',
- name: 'BasicDemo',
- component: () => import('/@/views/demo/comp/button/index.vue'),
- meta: {
- title: t('routes.demo.comp.basic'),
- },
- },
- {
- path: 'form',
- name: 'FormDemo',
- redirect: '/comp/form/basic',
- component: getParentLayout('FormDemo'),
- meta: {
- // icon: 'mdi:form-select',
- title: t('routes.demo.form.form'),
- },
- children: [
- {
- path: 'basic',
- name: 'FormBasicDemo',
- component: () => import('/@/views/demo/form/index.vue'),
- meta: {
- title: t('routes.demo.form.basic'),
- },
- },
- {
- path: 'useForm',
- name: 'UseFormDemo',
- component: () => import('/@/views/demo/form/UseForm.vue'),
- meta: {
- title: t('routes.demo.form.useForm'),
- },
- },
- {
- path: 'refForm',
- name: 'RefFormDemo',
- component: () => import('/@/views/demo/form/RefForm.vue'),
- meta: {
- title: t('routes.demo.form.refForm'),
- },
- },
- {
- path: 'advancedForm',
- name: 'AdvancedFormDemo',
- component: () => import('/@/views/demo/form/AdvancedForm.vue'),
- meta: {
- title: t('routes.demo.form.advancedForm'),
- },
- },
- {
- path: 'ruleForm',
- name: 'RuleFormDemo',
- component: () => import('/@/views/demo/form/RuleForm.vue'),
- meta: {
- title: t('routes.demo.form.ruleForm'),
- },
- },
- {
- path: 'dynamicForm',
- name: 'DynamicFormDemo',
- component: () => import('/@/views/demo/form/DynamicForm.vue'),
- meta: {
- title: t('routes.demo.form.dynamicForm'),
- },
- },
- {
- path: 'customerForm',
- name: 'CustomerFormDemo',
- component: () => import('/@/views/demo/form/CustomerForm.vue'),
- meta: {
- title: t('routes.demo.form.customerForm'),
- },
- },
- ],
- },
- {
- path: 'table',
- name: 'TableDemo',
- redirect: '/comp/table/basic',
- component: getParentLayout('TableDemo'),
- meta: {
- // icon: 'carbon:table-split',
- title: t('routes.demo.table.table'),
- },
- children: [
- {
- path: 'basic',
- name: 'TableBasicDemo',
- component: () => import('/@/views/demo/table/Basic.vue'),
- meta: {
- title: t('routes.demo.table.basic'),
- },
- },
- {
- path: 'treeTable',
- name: 'TreeTableDemo',
- component: () => import('/@/views/demo/table/TreeTable.vue'),
- meta: {
- title: t('routes.demo.table.treeTable'),
- },
- },
- {
- path: 'fetchTable',
- name: 'FetchTableDemo',
- component: () => import('/@/views/demo/table/FetchTable.vue'),
- meta: {
- title: t('routes.demo.table.fetchTable'),
- },
- },
- {
- path: 'fixedColumn',
- name: 'FixedColumnDemo',
- component: () => import('/@/views/demo/table/FixedColumn.vue'),
- meta: {
- title: t('routes.demo.table.fixedColumn'),
- },
- },
- {
- path: 'customerCell',
- name: 'CustomerCellDemo',
- component: () => import('/@/views/demo/table/CustomerCell.vue'),
- meta: {
- title: t('routes.demo.table.customerCell'),
- },
- },
- {
- path: 'formTable',
- name: 'FormTableDemo',
- component: () => import('/@/views/demo/table/FormTable.vue'),
- meta: {
- title: t('routes.demo.table.formTable'),
- },
- },
- {
- path: 'useTable',
- name: 'UseTableDemo',
- component: () => import('/@/views/demo/table/UseTable.vue'),
- meta: {
- title: t('routes.demo.table.useTable'),
- },
- },
- {
- path: 'refTable',
- name: 'RefTableDemo',
- component: () => import('/@/views/demo/table/RefTable.vue'),
- meta: {
- title: t('routes.demo.table.refTable'),
- },
- },
- {
- path: 'multipleHeader',
- name: 'MultipleHeaderDemo',
- component: () => import('/@/views/demo/table/MultipleHeader.vue'),
- meta: {
- title: t('routes.demo.table.multipleHeader'),
- },
- },
- {
- path: 'mergeHeader',
- name: 'MergeHeaderDemo',
- component: () => import('/@/views/demo/table/MergeHeader.vue'),
- meta: {
- title: t('routes.demo.table.mergeHeader'),
- },
- },
- {
- path: 'expandTable',
- name: 'ExpandTableDemo',
- component: () => import('/@/views/demo/table/ExpandTable.vue'),
- meta: {
- title: t('routes.demo.table.expandTable'),
- },
- },
- {
- path: 'fixedHeight',
- name: 'FixedHeightDemo',
- component: () => import('/@/views/demo/table/FixedHeight.vue'),
- meta: {
- title: t('routes.demo.table.fixedHeight'),
- },
- },
- {
- path: 'footerTable',
- name: 'FooterTableDemo',
- component: () => import('/@/views/demo/table/FooterTable.vue'),
- meta: {
- title: t('routes.demo.table.footerTable'),
- },
- },
- {
- path: 'editCellTable',
- name: 'EditCellTableDemo',
- component: () => import('/@/views/demo/table/EditCellTable.vue'),
- meta: {
- title: t('routes.demo.table.editCellTable'),
- },
- },
- {
- path: 'editRowTable',
- name: 'EditRowTableDemo',
- component: () => import('/@/views/demo/table/EditRowTable.vue'),
- meta: {
- title: t('routes.demo.table.editRowTable'),
- },
- },
- ],
- },
- {
- path: 'transition',
- name: 'transitionDemo',
- component: () => import('/@/views/demo/comp/transition/index.vue'),
- meta: {
- title: t('routes.demo.comp.transition'),
- },
- },
- {
- path: 'cropper',
- name: 'CropperDemo',
- component: () => import('/@/views/demo/comp/cropper/index.vue'),
- meta: {
- title: t('routes.demo.comp.cropperImage'),
- },
- },
- {
- path: 'flowChart',
- name: 'flowChartDemo',
- component: () => import('/@/views/demo/comp/flow-chart/index.vue'),
- meta: {
- title: t('routes.demo.comp.flowChart'),
- },
- },
- {
- path: 'timestamp',
- name: 'TimeDemo',
- component: () => import('/@/views/demo/comp/time/index.vue'),
- meta: {
- title: t('routes.demo.comp.time'),
- },
- },
- {
- path: 'countTo',
- name: 'CountTo',
- component: () => import('/@/views/demo/comp/count-to/index.vue'),
- meta: {
- title: t('routes.demo.comp.countTo'),
- },
- },
- {
- path: 'tree',
- name: 'TreeDemo',
- redirect: '/comp/tree/basic',
- component: getParentLayout('TreeDemo'),
- meta: {
- // icon: 'clarity:tree-view-line',
- title: t('routes.demo.comp.tree'),
- },
- children: [
- {
- path: 'basic',
- name: 'BasicTreeDemo',
- component: () => import('/@/views/demo/tree/index.vue'),
- meta: {
- title: t('routes.demo.comp.treeBasic'),
- },
- },
- {
- path: 'editTree',
- name: 'EditTreeDemo',
- component: () => import('/@/views/demo/tree/EditTree.vue'),
- meta: {
- title: t('routes.demo.comp.editTree'),
- },
- },
- {
- path: 'actionTree',
- name: 'ActionTreeDemo',
- component: () => import('/@/views/demo/tree/ActionTree.vue'),
- meta: {
- title: t('routes.demo.comp.actionTree'),
- },
- },
- ],
- },
- {
- path: 'editor',
- name: 'EditorDemo',
- redirect: '/comp/editor/markdown',
- component: getParentLayout('EditorDemo'),
- meta: {
- // icon: 'carbon:table-split',
- title: t('routes.demo.editor.editor'),
- },
- children: [
- {
- path: 'markdown',
- component: getParentLayout('MarkdownDemo'),
- name: 'MarkdownDemo',
- meta: {
- title: t('routes.demo.editor.markdown'),
- },
- redirect: '/comp/editor/markdown/index',
- children: [
- {
- path: 'index',
- name: 'MarkDownBasicDemo',
- component: () => import('/@/views/demo/editor/markdown/index.vue'),
- meta: {
- title: t('routes.demo.editor.tinymceBasic'),
- },
- },
- {
- path: 'editor',
- name: 'MarkDownFormDemo',
- component: () => import('/@/views/demo/editor/markdown/Editor.vue'),
- meta: {
- title: t('routes.demo.editor.tinymceForm'),
- },
- },
- ],
- },
- {
- path: 'tinymce',
- component: getParentLayout('TinymceDemo'),
- name: 'TinymceDemo',
- meta: {
- title: t('routes.demo.editor.tinymce'),
- },
- redirect: '/comp/editor/tinymce/index',
- children: [
- {
- path: 'index',
- name: 'TinymceBasicDemo',
- component: () => import('/@/views/demo/editor/tinymce/index.vue'),
- meta: {
- title: t('routes.demo.editor.tinymceBasic'),
- },
- },
- {
- path: 'editor',
- name: 'TinymceFormDemo',
- component: () => import('/@/views/demo/editor/tinymce/Editor.vue'),
- meta: {
- title: t('routes.demo.editor.tinymceForm'),
- },
- },
- ],
- },
- ],
- },
- {
- path: 'scroll',
- name: 'ScrollDemo',
- redirect: '/comp/scroll/basic',
- component: getParentLayout('ScrollDemo'),
- meta: {
- title: t('routes.demo.comp.scroll'),
- },
- children: [
- {
- path: 'basic',
- name: 'BasicScrollDemo',
- component: () => import('/@/views/demo/comp/scroll/index.vue'),
- meta: {
- title: t('routes.demo.comp.scrollBasic'),
- },
- },
- {
- path: 'action',
- name: 'ActionScrollDemo',
- component: () => import('/@/views/demo/comp/scroll/Action.vue'),
- meta: {
- title: t('routes.demo.comp.scrollAction'),
- },
- },
- {
- path: 'virtualScroll',
- name: 'VirtualScrollDemo',
- component: () => import('/@/views/demo/comp/scroll/VirtualScroll.vue'),
- meta: {
- title: t('routes.demo.comp.virtualScroll'),
- },
- },
- ],
- },
- {
- path: 'modal',
- name: 'ModalDemo',
- component: () => import('/@/views/demo/comp/modal/index.vue'),
- meta: {
- title: t('routes.demo.comp.modal'),
- },
- },
- {
- path: 'drawer',
- name: 'DrawerDemo',
- component: () => import('/@/views/demo/comp/drawer/index.vue'),
- meta: {
- title: t('routes.demo.comp.drawer'),
- },
- },
- {
- path: 'desc',
- name: 'DescDemo',
- component: () => import('/@/views/demo/comp/desc/index.vue'),
- meta: {
- title: t('routes.demo.comp.desc'),
- },
- },
- {
- path: 'lazy',
- name: 'LazyDemo',
- component: getParentLayout('LazyDemo'),
- redirect: '/comp/lazy/basic',
- meta: {
- title: t('routes.demo.comp.lazy'),
- },
- children: [
- {
- path: 'basic',
- name: 'BasicLazyDemo',
- component: () => import('/@/views/demo/comp/lazy/index.vue'),
- meta: {
- title: t('routes.demo.comp.lazyBasic'),
- },
- },
- {
- path: 'transition',
- name: 'BasicTransitionDemo',
- component: () => import('/@/views/demo/comp/lazy/Transition.vue'),
- meta: {
- title: t('routes.demo.comp.lazyTransition'),
- },
- },
- ],
- },
- {
- path: 'verify',
- name: 'VerifyDemo',
- component: getParentLayout('VerifyDemo'),
- redirect: '/comp/verify/drag',
- meta: {
- title: t('routes.demo.comp.verify'),
- },
- children: [
- {
- path: 'drag',
- name: 'VerifyDragDemo',
- component: () => import('/@/views/demo/comp/verify/index.vue'),
- meta: {
- title: t('routes.demo.comp.verifyDrag'),
- },
- },
- {
- path: 'rotate',
- name: 'VerifyRotateDemo',
- component: () => import('/@/views/demo/comp/verify/Rotate.vue'),
- meta: {
- title: t('routes.demo.comp.verifyRotate'),
- },
- },
- ],
- },
- //
- {
- path: 'qrcode',
- name: 'QrCodeDemo',
- component: () => import('/@/views/demo/comp/qrcode/index.vue'),
- meta: {
- title: t('routes.demo.comp.qrcode'),
- },
- },
- {
- path: 'strength-meter',
- name: 'StrengthMeterDemo',
- component: () => import('/@/views/demo/comp/strength-meter/index.vue'),
- meta: {
- title: t('routes.demo.comp.strength'),
- },
- },
- {
- path: 'upload',
- name: 'UploadDemo',
- component: () => import('/@/views/demo/comp/upload/index.vue'),
- meta: {
- title: t('routes.demo.comp.upload'),
- },
- },
- {
- path: 'loading',
- name: 'LoadingDemo',
- component: () => import('/@/views/demo/comp/loading/index.vue'),
- meta: {
- title: t('routes.demo.comp.loading'),
- },
- },
- ],
- };
- export default comp;
|