import Drag from '@/Engine/Drag'; import { PAGE_KEY } from '@/Project/constants'; import React from 'react'; export const route: GT.IRouterOptions[] = [ { key: PAGE_KEY.Home, component: () => import('@/Project/pages/Home/index'), options: { name: 'Home', right: 0, top: 20, width: 400, height: 500, }, }, { key: PAGE_KEY.Access, component: () => import('@/Project/pages/Access/index'), options: { name: 'Access', left: 100, top: 20, width: 400, height: 500, }, }, { key: PAGE_KEY.Login, //@ts-ignore component: () => import('@/Project/pages/Login'), //@ts-ignore models: () => import('@/Project/pages/Login/models/login'), options: { name: '登录页', left: 0, top: 0, width: '100%', height: '100%', }, }, { key: PAGE_KEY.PlatformMenu, //@ts-ignore component: () => import('@/Project/pages/PlatformMenu'), //@ts-ignore models: () => import('@/Project/pages/PlatformMenu/models/menu'), options: { name: '首页', left: 0, top: 0, width: '100%', height: '100%', header: false, }, }, ]; let Pages: { [key: string]: any } = {}; route.forEach((item) => { Pages[item.key] = Drag(item); }); export default Pages;