Skip to content

Commit 6e2e268

Browse files
committed
add mirco for mobile
1 parent 046440d commit 6e2e268

17 files changed

+726
-913
lines changed

mobile-ui/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"dependencies": {
66
"@babel/standalone": "^7.25.6",
77
"@codingapi/flow-mobile": "^0.0.2",
8-
"@codingapi/form-mobile": "^0.0.2",
8+
"@codingapi/form-mobile": "^0.0.3",
99
"@codingapi/ui-framework": "^0.0.12",
1010
"@logicflow/core": "^2.0.10",
1111
"@logicflow/extension": "^2.0.14",

mobile-ui/public/captcha.jpeg

548 Bytes
Loading

mobile-ui/src/config/route.tsx

+10-15
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,20 @@ import HomePage from "@/pages/home";
55
import {Route} from "react-router";
66
import {RouteObject} from "react-router/dist/lib/context";
77
import React from "react";
8-
import EducationIndex from "@/pages/person/education";
9-
import EducationForm from "@/pages/person/education/form";
10-
import Test from "@/pages/test";
118
import LeaveListPage from "@/pages/levave";
129
import LeaveCreatePage from "@/pages/levave/create";
1310
import FlowListPage from "@/pages/flow";
1411
import FlowDetailPage from "@/pages/flow/detail";
1512
import LeaveDetailPage from "@/pages/levave/detail";
13+
import FormPage from "@/pages/form";
14+
import MircoPage from "@/pages/mirco";
1615

1716

1817
export const routes: RouteObject[] = [
1918
{
2019
path: "/login",
2120
element: <Login/>,
2221
},
23-
{
24-
path: "/test",
25-
element: <Test/>,
26-
},
2722
{
2823
path: '/',
2924
element: <Layout/>,
@@ -32,6 +27,14 @@ export const routes: RouteObject[] = [
3227
path: "/",
3328
element: <HomePage/>,
3429
},
30+
{
31+
path: "/form",
32+
element: <FormPage/>,
33+
},
34+
{
35+
path: "/mirco",
36+
element: <MircoPage/>,
37+
},
3538
{
3639
path: "/leave/index",
3740
element: <LeaveListPage/>,
@@ -52,14 +55,6 @@ export const routes: RouteObject[] = [
5255
path: "/flow/detail",
5356
element: <FlowDetailPage/>,
5457
},
55-
{
56-
path: "/person/education/index",
57-
element: <EducationIndex/>,
58-
},
59-
{
60-
path: "/person/education/form",
61-
element: <EducationForm/>,
62-
},
6358
{
6459
path: '/*',
6560
element: <NotFound/>,
+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import React from "react";
2+
import {HeaderProps} from "@/gateway";
3+
4+
5+
const HeaderDefault: React.FC<HeaderProps> = (props) => {
6+
return (
7+
<div>
8+
<h1>{props.title}</h1>
9+
<button onClick={props.onClick}>Click Me</button>
10+
<div>
11+
<span>PS:local default component</span>
12+
</div>
13+
</div>
14+
)
15+
}
16+
17+
export default HeaderDefault;

mobile-ui/src/gateway/index.tsx

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
export interface HeaderProps{
3+
title: string;
4+
onClick: () => void;
5+
}
6+

0 commit comments

Comments
 (0)