From 81722fef6994ef03e7e2c4dff1572130e777682b Mon Sep 17 00:00:00 2001
From: dap <15891557205@163.com>
Date: Wed, 11 Sep 2024 13:54:27 +0800
Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BD=BF=E7=94=A8useForm=E9=87=8D?=
=?UTF-8?q?=E6=9E=84=E7=99=BB=E5=BD=95(=E6=9C=AA=E5=AE=8C=E6=88=90)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/views/_core/authentication/login.vue | 152 ++++++--
packages/@core/ui-kit/form-ui/src/config.ts | 2 +
.../ui-kit/shadcn-ui/src/components/index.ts | 1 +
.../src/components/input-captcha/index.ts | 1 +
.../input-captcha/input-captcha.vue | 58 +++
.../common-ui/src/ui/authentication/login.vue | 70 +---
pnpm-lock.yaml | 340 ++++--------------
7 files changed, 259 insertions(+), 365 deletions(-)
create mode 100644 packages/@core/ui-kit/shadcn-ui/src/components/input-captcha/index.ts
create mode 100644 packages/@core/ui-kit/shadcn-ui/src/components/input-captcha/input-captcha.vue
diff --git a/apps/web-antd/src/views/_core/authentication/login.vue b/apps/web-antd/src/views/_core/authentication/login.vue
index 6b994539..ac928b39 100644
--- a/apps/web-antd/src/views/_core/authentication/login.vue
+++ b/apps/web-antd/src/views/_core/authentication/login.vue
@@ -1,70 +1,83 @@
+
+
diff --git a/packages/@core/ui-kit/form-ui/src/config.ts b/packages/@core/ui-kit/form-ui/src/config.ts
index 0ab8ce34..3e85148d 100644
--- a/packages/@core/ui-kit/form-ui/src/config.ts
+++ b/packages/@core/ui-kit/form-ui/src/config.ts
@@ -7,6 +7,7 @@ import {
VbenButton,
VbenCheckbox,
Input as VbenInput,
+ VbenInputCaptcha,
VbenInputPassword,
VbenPinInput,
VbenSelect,
@@ -21,6 +22,7 @@ export const COMPONENT_MAP: Record = {
DefaultSubmitActionButton: h(VbenButton, { size: 'sm', variant: 'default' }),
VbenCheckbox,
VbenInput,
+ VbenInputCaptcha,
VbenInputPassword,
VbenPinInput,
VbenSelect,
diff --git a/packages/@core/ui-kit/shadcn-ui/src/components/index.ts b/packages/@core/ui-kit/shadcn-ui/src/components/index.ts
index 83ca3239..a821f7b6 100644
--- a/packages/@core/ui-kit/shadcn-ui/src/components/index.ts
+++ b/packages/@core/ui-kit/shadcn-ui/src/components/index.ts
@@ -10,6 +10,7 @@ export * from './expandable-arrow';
export * from './full-screen';
export * from './hover-card';
export * from './icon';
+export * from './input-captcha';
export * from './input-password';
export * from './link';
export * from './logo';
diff --git a/packages/@core/ui-kit/shadcn-ui/src/components/input-captcha/index.ts b/packages/@core/ui-kit/shadcn-ui/src/components/input-captcha/index.ts
new file mode 100644
index 00000000..49ec05f4
--- /dev/null
+++ b/packages/@core/ui-kit/shadcn-ui/src/components/input-captcha/index.ts
@@ -0,0 +1 @@
+export { default as VbenInputCaptcha } from './input-captcha.vue';
diff --git a/packages/@core/ui-kit/shadcn-ui/src/components/input-captcha/input-captcha.vue b/packages/@core/ui-kit/shadcn-ui/src/components/input-captcha/input-captcha.vue
new file mode 100644
index 00000000..6f8e4595
--- /dev/null
+++ b/packages/@core/ui-kit/shadcn-ui/src/components/input-captcha/input-captcha.vue
@@ -0,0 +1,58 @@
+
+
+
+
+
+
+
+
+
![]()
+
+
+
+
diff --git a/packages/effects/common-ui/src/ui/authentication/login.vue b/packages/effects/common-ui/src/ui/authentication/login.vue
index fe405e80..a2e4dab9 100644
--- a/packages/effects/common-ui/src/ui/authentication/login.vue
+++ b/packages/effects/common-ui/src/ui/authentication/login.vue
@@ -1,7 +1,11 @@