File tree Expand file tree Collapse file tree 9 files changed +80
-10
lines changed
Expand file tree Collapse file tree 9 files changed +80
-10
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 44 "private" : true ,
55 "dependencies" : {
66 "@babel/standalone" : " ^7.25.6" ,
7- "@codingapi/flow-mobile" : " ^0.0.3 " ,
8- "@codingapi/form-mobile" : " ^0.0.3 " ,
9- "@codingapi/ui-framework" : " ^0.0.12 " ,
7+ "@codingapi/flow-mobile" : " ^0.0.16 " ,
8+ "@codingapi/form-mobile" : " ^0.0.16 " ,
9+ "@codingapi/ui-framework" : " ^0.0.17 " ,
1010 "@logicflow/core" : " ^2.0.10" ,
1111 "@logicflow/extension" : " ^2.0.14" ,
1212 "@reduxjs/toolkit" : " ^2.2.7" ,
Original file line number Diff line number Diff line change 1- # TODO
2- 1 . 流程图展示
3- 2 . 流程的审批历史记录展示
1+ # Mobile-ui with Antd For Micro Frontends
2+
3+ This is a simple React App with Webpack5 & Typescript.
4+
5+ ## Features
6+ 1 . Support Webpack 5 ModuleFederationPlugin for Micro Frontends
7+ 2 . Support Dynamic zip component loading
8+ 3 . Support Dynamic Routing & Dynamic Menu
9+ 4 . Support Axios for API calls
10+ 5 . Support Antd & Pro-Components UI Library
11+ 6 . Support Redux for State Management
12+ 7 . Support Mock Server for API Mocking
13+ 8 . Support Monaco Editor for Code Editor
14+ 9 . Support Access ControlPanel for Menu & Page Components
15+
16+ ## Running
17+ ``` shell
18+ yarn
19+
20+ yarn start
21+ ```
22+ ## Build
23+ ``` shell
24+ yarn build
25+ ```
26+
27+ ## Deploy
28+ ``` shell
29+ cd scripts
30+ sh package.sh
31+ sh deploy.sh
32+ ```
33+
Original file line number Diff line number Diff line change 1+ /mobile
Original file line number Diff line number Diff line change 1+ serverHost=server
2+ serverAccount=root
3+ serverPort=22
4+ serverPath=/opt/test/
5+
6+
7+ scp -o ConnectTimeout=30 -P $serverPort -r * $serverAccount @$serverHost :$serverPath
8+ ssh -p $serverPort $serverAccount @$serverHost " cd $serverPath && sed -i 's/\r//g' *.sh && sh install.sh"
Original file line number Diff line number Diff line change 1+ version : " 3"
2+
3+ services :
4+ admin-nginx :
5+ image : nginx:latest
6+ volumes :
7+ - " ./admin:/usr/share/nginx/html"
8+ environment :
9+ TZ : " Asia/Shanghai"
10+ restart : always
11+ ports :
12+ - " 13000:80"
Original file line number Diff line number Diff line change 1+ docker-compose build --no-cache
2+ docker-compose up -d
3+ docker ps -a
Original file line number Diff line number Diff line change 1+ rm -rf mobile
2+
3+ cd ..
4+ yarn
5+ yarn run build
6+
7+
8+ cp -r ./dist/ ./scripts/mobile/
Original file line number Diff line number Diff line change @@ -66,7 +66,12 @@ const FooterButtons: React.FC<{ formInstance: FormInstance }> = ({formInstance})
6666
6767 < Button
6868 onClick = { async ( ) => {
69- await formInstance . validate ( ) ;
69+ const result = await formInstance . validate ( ) ;
70+ if ( result ) {
71+ Toast . show ( "验证通过" ) ;
72+ } else {
73+ Toast . show ( "验证失败" ) ;
74+ }
7075 } }
7176 > 验证表单</ Button >
7277
@@ -374,6 +379,9 @@ const FormPage = ()=>{
374379 < Form
375380 layout = { "horizontal" }
376381 form = { rightFormInstance }
382+ onFinish = { async ( values ) => {
383+ Toast . show ( JSON . stringify ( values ) ) ;
384+ } }
377385 footer = { (
378386 < FooterButtons formInstance = { rightFormInstance } />
379387 ) }
@@ -390,6 +398,9 @@ const FormPage = ()=>{
390398 < Form
391399 form = { leftFormInstance }
392400 layout = { "horizontal" }
401+ onFinish = { async ( values ) => {
402+ Toast . show ( JSON . stringify ( values ) ) ;
403+ } }
393404 footer = { (
394405 < FooterButtons
395406 formInstance = { leftFormInstance }
You can’t perform that action at this time.
0 commit comments