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" |
| | |
| | | import Title from '@/components/Title/Title'; |
| | | import FooterComponent, { FooterApply } from './Footer'; |
| | | |
| | | export const targetId = window.__POWERED_BY_QIANKUN__ |
| | | ? 'qiankunScrollview' |
| | | : undefined; |
| | | |
| | | export const Nav30DataSource = { |
| | | wrapper: { className: 'header3 home-page-wrapper' }, |
| | | page: { className: 'home-page' }, |
| | |
| | | OverPack: { |
| | | className: 'home-page-wrapper content13-wrapper mcva2tum4q-editor_css', |
| | | playScale: 0.3, |
| | | targetId: targetId, |
| | | }, |
| | | titleWrapper: { |
| | | className: 'title-wrapper', |
| | |
| | | }; |
| | | export const Feature40DataSource = { |
| | | wrapper: { className: 'home-page-wrapper content6-wrapper' }, |
| | | OverPack: { className: 'home-page content6' }, |
| | | OverPack: { className: 'home-page content6', targetId: targetId }, |
| | | textWrapper: { className: 'content6-text', xs: 24, md: 10 }, |
| | | titleWrapper: { |
| | | className: 'title-wrapper', |
| | |
| | | export const Feature50DataSource = { |
| | | wrapper: { className: 'home-page-wrapper content7-wrapper' }, |
| | | page: { className: 'home-page content7' }, |
| | | OverPack: {}, |
| | | OverPack: { targetId: targetId }, |
| | | titleWrapper: { |
| | | className: 'title-wrapper', |
| | | children: [ |
| | |
| | | export const Pricing20DataSource = { |
| | | wrapper: { className: 'home-page-wrapper pricing2-wrapper' }, |
| | | page: { className: 'home-page pricing2' }, |
| | | OverPack: { playScale: 0.3, className: 'pricing2-content-wrapper' }, |
| | | OverPack: { |
| | | playScale: 0.3, |
| | | className: 'pricing2-content-wrapper', |
| | | targetId: targetId, |
| | | }, |
| | | titleWrapper: { |
| | | className: 'pricing2-title-wrapper', |
| | | children: [ |
| | |
| | | OverPack: { |
| | | className: 'home-page-wrapper content13-wrapper content131-wrapper', |
| | | playScale: 0.3, |
| | | targetId: targetId, |
| | | }, |
| | | titleWrapper: { |
| | | className: 'title-wrapper', |
| | |
| | | OverPack: { |
| | | className: 'home-page-wrapper content13-wrapper content132-wrapper', |
| | | playScale: 0.3, |
| | | targetId: targetId, |
| | | }, |
| | | titleWrapper: { |
| | | className: 'title-wrapper', |