From d27552f2d477391b0036ad355910974b26e4b538 Mon Sep 17 00:00:00 2001 From: wangxingkang Date: Tue, 21 May 2024 23:40:07 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=99=BB=E5=BD=95=E8=A1=A8=E5=8D=95=20?= =?UTF-8?q?UI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Auth}/index.module.less | 0 src/layouts/Auth/index.tsx | 25 ++++++++++++++++--- .../login/components/LoginPage/index.tsx | 15 ----------- .../authentication/login/components/index.ts | 0 src/pages/authentication/login/index.tsx | 21 +++++++++++++--- vite.config.ts | 3 +++ 6 files changed, 42 insertions(+), 22 deletions(-) rename src/{pages/authentication/login/components/LoginPage => layouts/Auth}/index.module.less (100%) delete mode 100644 src/pages/authentication/login/components/LoginPage/index.tsx create mode 100644 src/pages/authentication/login/components/index.ts diff --git a/src/pages/authentication/login/components/LoginPage/index.module.less b/src/layouts/Auth/index.module.less similarity index 100% rename from src/pages/authentication/login/components/LoginPage/index.module.less rename to src/layouts/Auth/index.module.less diff --git a/src/layouts/Auth/index.tsx b/src/layouts/Auth/index.tsx index b83ebd4..f152818 100644 --- a/src/layouts/Auth/index.tsx +++ b/src/layouts/Auth/index.tsx @@ -1,9 +1,28 @@ import { Outlet } from 'react-router-dom'; +import classnames from '@pansy/classnames' +import styles from './index.module.less' + export const AuthLayout = () => { return ( - <> - - +
+
+ +
+
+
+ 123 +
+
+
+ +
+
+
+
+
) } diff --git a/src/pages/authentication/login/components/LoginPage/index.tsx b/src/pages/authentication/login/components/LoginPage/index.tsx deleted file mode 100644 index 9ced361..0000000 --- a/src/pages/authentication/login/components/LoginPage/index.tsx +++ /dev/null @@ -1,15 +0,0 @@ -import React from 'react' -import classnames from '@pansy/classnames' -import styles from './index.module.less' - -interface LoginPageProps { - children?: React.ReactNode -} - -export const LoginPage = (props: LoginPageProps) => { - return ( -
- {props.children} -
- ) -} diff --git a/src/pages/authentication/login/components/index.ts b/src/pages/authentication/login/components/index.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/pages/authentication/login/index.tsx b/src/pages/authentication/login/index.tsx index a0a7fea..f186fe3 100644 --- a/src/pages/authentication/login/index.tsx +++ b/src/pages/authentication/login/index.tsx @@ -1,10 +1,23 @@ -import { LoginPage } from './components/LoginPage' +import { Form, Input, Button } from '@arco-design/web-react' const Login = () => { return ( - - - + <> +

+ 登录 +

+
+ + + + + + + + + +
+ ) } diff --git a/vite.config.ts b/vite.config.ts index b646453..69a56d9 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -52,5 +52,8 @@ export default defineConfig(({ command }) => { } } }, + server: { + port: 8888, + } } })