New file |
| | |
| | | import { defineConfig } from '@umijs/max'; |
| | | |
| | | export default defineConfig({ |
| | | publicPath: '/v2/', |
| | | }); |
| | |
| | | import { defineConfig } from '@umijs/max'; |
| | | console.log('env', process.env.UMI_APP_PUBLIC_PATH); |
| | | |
| | | export default defineConfig({ |
| | | antd: {}, |
| | | access: {}, |
| | |
| | | slave: {}, |
| | | }, |
| | | base: '/v2/', |
| | | publicPath: process.env.UMI_APP_PUBLIC_PATH, |
| | | // layout: { |
| | | // title: '@umijs/max', |
| | | // }, |
| | | routes: [ |
| | | { |
| | | path: '/', |
| | |
| | | path: '/about', |
| | | component: './Home', |
| | | }, |
| | | // { |
| | | // name: '权限演示', |
| | | // path: '/access', |
| | | // component: './Access', |
| | | // }, |
| | | // { |
| | | // name: ' CRUD 示例', |
| | | // path: '/table', |
| | | // component: './Table', |
| | | // }, |
| | | ], |
| | | npmClient: 'pnpm', |
| | | }); |
| | |
| | | "private": true, |
| | | "author": "", |
| | | "scripts": { |
| | | "build": "cross-env NODE_ENV=production REACT_APP_ENV=production UMI_ENV=production max build", |
| | | "build": "cross-env max build", |
| | | "dev": "max dev", |
| | | "format": "prettier --cache --write .", |
| | | "postinstall": "max setup", |
| | |
| | | import QueueAnim from 'rc-queue-anim'; |
| | | import OverPack from 'rc-scroll-anim/lib/ScrollOverPack'; |
| | | import React from 'react'; |
| | | import { targetId } from './data.source'; |
| | | import { getChildrenToRender } from './utils'; |
| | | |
| | | class Content9 extends React.PureComponent { |
| | |
| | | </QueueAnim> |
| | | ); |
| | | return ( |
| | | <OverPack key={i.toString()} {...block}> |
| | | <OverPack key={i.toString()} {...block} targetId={targetId}> |
| | | {isMobile && textWrapper} |
| | | <QueueAnim |
| | | className="image-wrapper" |