@yqg/create-max-app
Advanced tools
| import { Result } from 'antd'; | ||
| export const LoadingComponent = () => ""; | ||
| export const NotFoundComponent = () => <Result status='404' title='404' />; | ||
| export const ErrorComponent = () => ( | ||
| <Result status='error' title='Rendering error' /> | ||
| ); |
+2
-0
@@ -164,2 +164,3 @@ "use strict"; | ||
| const layoutVersion = await getNpmLatestVersion('@yqg/plugin-layout-react-pc'); | ||
| const renderedReactVersion = await getNpmLatestVersion('@yqg/plugin-rendered-react'); | ||
| const reactGenerator = new max_utils_1.BaseGenerator({ | ||
@@ -171,2 +172,3 @@ path: path_1.default.join(__dirname, '..', 'templates', 'root', 'react-pc'), | ||
| layoutVersion, | ||
| renderedReactVersion, | ||
| maxVersion, | ||
@@ -173,0 +175,0 @@ projectName: name, |
+1
-1
| { | ||
| "name": "@yqg/create-max-app", | ||
| "version": "3.0.2", | ||
| "version": "3.0.3", | ||
| "description": "create-max-app", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -1,44 +0,46 @@ | ||
| import {useModel} from '@yqg/max'; | ||
| import { SmileOutlined } from '@ant-design/icons'; | ||
| import { useModel } from '@yqg/max'; | ||
| import { Button, Card, Space, Typography } from 'antd'; | ||
| import { SmileOutlined } from '@ant-design/icons'; | ||
| const Home = () => { | ||
| const initalVal = useModel("@@initialState"); | ||
| const detailLabelModel = useModel('detail-label'); | ||
| const initalVal = useModel('@@initialState'); | ||
| const detailLabelModel = useModel('detail-label'); | ||
| console.log("detailLabelModel:", detailLabelModel); | ||
| console.log("initalVal:", initalVal); | ||
| return <div style={{ padding: '48px', textAlign: 'center' }}> | ||
| <Space direction="vertical" size="large"> | ||
| <SmileOutlined style={{ fontSize: '48px', color: '#1890ff' }} /> | ||
| console.log('detailLabelModel:', detailLabelModel); | ||
| console.log('initalVal:', initalVal); | ||
| <Typography.Title level={2}>欢迎使用本系统</Typography.Title> | ||
| return ( | ||
| <div style={{ padding: '48px', textAlign: 'center' }}> | ||
| <Space direction="vertical" size="large"> | ||
| <SmileOutlined style={{ fontSize: '48px', color: '#1890ff' }} /> | ||
| <Card style={{ width: '600px', margin: '0 auto' }}> | ||
| <Typography.Paragraph> | ||
| 这是一个基于 React18 + TypeScript + Ant Design Pro开发的系统。 | ||
| 您可以开始探索以下功能: | ||
| </Typography.Paragraph> | ||
| <Typography.Title level={2}>欢迎使用本系统</Typography.Title> | ||
| <Space> | ||
| <Button | ||
| type="primary" | ||
| target="_blank" | ||
| href="https://max.fintopia.tech/" | ||
| > | ||
| 开始使用 | ||
| </Button> | ||
| <Button | ||
| href="https://procomponents.ant.design/components/layout?tab=api" | ||
| target="_blank" | ||
| > | ||
| 查看文档 | ||
| </Button> | ||
| <Card style={{ width: '600px', margin: '0 auto' }}> | ||
| <Typography.Paragraph> | ||
| 这是一个基于 React18 + TypeScript + Ant Design Pro开发的系统。 | ||
| 您可以开始探索以下功能: | ||
| </Typography.Paragraph> | ||
| <Space> | ||
| <Button | ||
| type="primary" | ||
| target="_blank" | ||
| href="https://max.fintopia.tech/" | ||
| > | ||
| 开始使用 | ||
| </Button> | ||
| <Button | ||
| href="https://procomponents.ant.design/components/layout?tab=api" | ||
| target="_blank" | ||
| > | ||
| 查看文档 | ||
| </Button> | ||
| </Space> | ||
| </Card> | ||
| </Space> | ||
| </Card> | ||
| </Space> | ||
| </div> | ||
| </div> | ||
| ); | ||
| }; | ||
| export default Home; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
28069
3.47%56
1.82%475
2.15%