table.js 1013 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /** When your routing table is too long, you can split it into small modules **/
  2. import Layout from '@/layout'
  3. const tableRouter = {
  4. path: '/table',
  5. component: Layout,
  6. redirect: '/table/complex-table',
  7. name: 'Table',
  8. meta: {
  9. title: 'Table',
  10. icon: 'table'
  11. },
  12. children: [
  13. {
  14. path: 'dynamic-table',
  15. component: () => import('@/views/table/dynamic-table/index'),
  16. name: 'DynamicTable',
  17. meta: { title: 'Dynamic Table' }
  18. },
  19. {
  20. path: 'drag-table',
  21. component: () => import('@/views/table/drag-table'),
  22. name: 'DragTable',
  23. meta: { title: 'Drag Table' }
  24. },
  25. {
  26. path: 'inline-edit-table',
  27. component: () => import('@/views/table/inline-edit-table'),
  28. name: 'InlineEditTable',
  29. meta: { title: 'Inline Edit' }
  30. },
  31. {
  32. path: 'complex-table',
  33. component: () => import('@/views/table/complex-table'),
  34. name: 'ComplexTable',
  35. meta: { title: 'Complex Table' }
  36. }
  37. ]
  38. }
  39. export default tableRouter