import { DEFAULT_LAYOUT } from '../base'
import { AppRouteRecordRaw } from '../types'

const LIST: AppRouteRecordRaw = {
  path: '/list',
  name: 'list',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: 'menu.list',
    requiresAuth: true,
    icon: 'icon-list',
    order: 2,
  },
  children: [
    {
      path: 'search-table-demo',
      name: 'SearchTableDemo',
      component: () => import('@/views/list/search-table/demo.vue'),
      meta: {
        locale: '公共组件Demo',
        requiresAuth: true,
        roles: ['*'],
      },
    },
  ],
}

export default LIST
