import { initRoute } from '@/router'

const routers = [
  {
    path: '/',
    name: 'Home',
    component: () => import('@/views/Index')
  },
  {
    path: '/form-demo',
    name: 'form-demo',
    component: () => import(/* webpackChunkName: "about" */ '../views/form/form-demo')
  },
  {
    path: '/table-demo',
    name: 'table-demo',
    component: () => import(/* webpackChunkName: "about" */ '../views/table/table-demo')
  },
  {
    path: '/dynamic-table-demo',
    name: 'dynamic-table-demo',
    component: () => import(/* webpackChunkName: "about" */ '../views/table/dynamic-table-demo')
  },
  {
    path: '/dynamic-edit-table-demo',
    name: 'dynamic-edit-table-demo',
    component: () => import(/* webpackChunkName: "about" */ '../views/table/dynamic-edit-table-demo')
  },
  {
    path: '/tree-table-demo',
    name: 'dynamic-table-demo',
    component: () => import(/* webpackChunkName: "about" */ '../views/table/tree-table-demo')
  },
  {
    path: '/form-components-demo',
    name: 'form-components-demo',
    component: () => import(/* webpackChunkName: "about" */ '../views/form/form-components-demo')
  },
]

export default initRoute(routers);