🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@yqg/create-max-app

Package Overview
Dependencies
Maintainers
20
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@yqg/create-max-app - npm Package Compare versions

Comparing version
3.0.2-beta.0
to
3.0.2
+44
templates/root/react-pc/src/pages/index.tsx
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');
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' }} />
<Typography.Title level={2}>欢迎使用本系统</Typography.Title>
<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>
</div>
};
export default Home;
+1
-1
{
"name": "@yqg/create-max-app",
"version": "3.0.2-beta.0",
"version": "3.0.2",
"description": "create-max-app",

@@ -5,0 +5,0 @@ "license": "MIT",

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