create-antd-layout 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/templates/antd-layout-vite-simple/package.json +1 -1
- package/templates/antd-layout-vite-simple/src/layouts/index.tsx +1 -1
- package/templates/antd-layout-vite-simple/src/pages/welcome.tsx +5 -1
- package/templates/antd-layout-vite-simple/src/routes.ts +4 -4
- /package/templates/antd-layout-vite-simple/src/pages/{workend → transaction}/order.tsx +0 -0
- /package/templates/antd-layout-vite-simple/src/pages/{workend → transaction}/product.tsx +0 -0
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@ const menuData:MenuData = {
|
|
|
15
15
|
icon:<DashboardOutlined />,
|
|
16
16
|
children:[
|
|
17
17
|
{name:"welcome",path:"welcome",label:"Welcome",icon:<SmileOutlined />},
|
|
18
|
-
{name:"
|
|
18
|
+
{name:"transaction",path:"transaction",label:"Transaction",icon:<BlockOutlined />,children:[
|
|
19
19
|
{name:"order",path:"order",label:"Order",icon:<CarryOutOutlined />},
|
|
20
20
|
{name:"order",path:"product",label:"Product",icon:<ProductOutlined />},
|
|
21
21
|
]},
|
|
@@ -5,7 +5,6 @@ const boxStyles:React.CSSProperties = {
|
|
|
5
5
|
flexFlow:"column",
|
|
6
6
|
justifyContent:"center",
|
|
7
7
|
alignItems:"center",
|
|
8
|
-
minHeight:"100%",
|
|
9
8
|
textAlign:"center",
|
|
10
9
|
padding:"1rem",
|
|
11
10
|
flex:1
|
|
@@ -14,6 +13,11 @@ const titleStyles:React.CSSProperties = {
|
|
|
14
13
|
margin:"2px",
|
|
15
14
|
padding:"2px"
|
|
16
15
|
}
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* This is just a casual demo
|
|
19
|
+
* @returns
|
|
20
|
+
*/
|
|
17
21
|
export default function(){
|
|
18
22
|
return(
|
|
19
23
|
<div style={boxStyles}>
|
|
@@ -5,8 +5,8 @@ const DashboardLayout = LazyPage(()=>import("@/layouts"))
|
|
|
5
5
|
const LoginPage = LazyPage(()=>import("@/pages/login"))
|
|
6
6
|
const ConfigPage = LazyPage(()=>import("@/pages/system/config"))
|
|
7
7
|
const LogsPage = LazyPage(()=>import("@/pages/system/logs"))
|
|
8
|
-
const OrderPage = LazyPage(()=>import("@/pages/
|
|
9
|
-
const ProductPage = LazyPage(()=>import("@/pages/
|
|
8
|
+
const OrderPage = LazyPage(()=>import("@/pages/transaction/order"))
|
|
9
|
+
const ProductPage = LazyPage(()=>import("@/pages/transaction/product"))
|
|
10
10
|
const WelcomePage = LazyPage(()=>import("@/pages/welcome"))
|
|
11
11
|
|
|
12
12
|
/**
|
|
@@ -25,8 +25,8 @@ const routers = createBrowserRouter(
|
|
|
25
25
|
{path:"config",Component:ConfigPage},
|
|
26
26
|
{path:"logs",Component:LogsPage}
|
|
27
27
|
]},
|
|
28
|
-
{path:"
|
|
29
|
-
{index:true,loader:()=>redirect("/
|
|
28
|
+
{path:"transaction",children:[
|
|
29
|
+
{index:true,loader:()=>redirect("/transaction/order")},
|
|
30
30
|
{path:"order",Component:OrderPage},
|
|
31
31
|
{path:"product",Component:ProductPage}
|
|
32
32
|
]}
|
|
File without changes
|
|
File without changes
|