From a7ab5f962c5a2576762ad1fa4abdc9095436dc5b Mon Sep 17 00:00:00 2001 From: greenhat616 Date: Tue, 29 Aug 2023 16:49:30 +0800 Subject: [PATCH] fix: email validation issue --- components/auth/Input.vue | 2 +- package.json | 6 + pages/auth/login.vue | 23 +-- pnpm-lock.yaml | 362 +++++++++++++++++++++++--------------- 4 files changed, 244 insertions(+), 149 deletions(-) diff --git a/components/auth/Input.vue b/components/auth/Input.vue index 1f34705..a756bf2 100644 --- a/components/auth/Input.vue +++ b/components/auth/Input.vue @@ -53,7 +53,7 @@ const classNames = computed(() => { } .input { - @apply h-12 w-full bg-transparent outline-none border-0 border-b-1 border-gray-200 pl-10 text-current; + @apply h-12 w-full bg-transparent outline-none border-0 border-b-1 border-gray-200 pl-10 text-current rounded-0; &:focus { + .input-border { diff --git a/package.json b/package.json index c183103..6ccfd4c 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,7 @@ "@pinia/nuxt": "^0.4.11", "@types/md5": "^2.3.2", "@types/node": "^20.5.6", + "@types/validator": "^13.11.1", "@typescript-eslint/eslint-plugin": "^6.4.1", "@typescript-eslint/parser": "^6.4.1", "@unocss/nuxt": "^0.55.3", @@ -75,9 +76,14 @@ "stylelint-scss": "^5.1.0", "typescript": "^5.2.2", "unplugin-icons": "^0.16.5", + "validator": "^13.11.0", "vant": "^4.6.6", "vite": "^4.4.9", "vue-masonry": "^0.16.0", "xss": "^1.0.14" + }, + "dependencies": { + "@types/lodash-es": "^4.17.8", + "lodash-es": "^4.17.21" } } diff --git a/pages/auth/login.vue b/pages/auth/login.vue index f2e5317..ca2f09a 100644 --- a/pages/auth/login.vue +++ b/pages/auth/login.vue @@ -1,4 +1,6 @@