diff --git a/public/favicon.ico b/public/favicon.ico
index 6b365ef..df83505 100644
Binary files a/public/favicon.ico and b/public/favicon.ico differ
diff --git a/public/logo.png b/public/logo.png
index 88283c7..44be9a8 100644
Binary files a/public/logo.png and b/public/logo.png differ
diff --git a/src/assets/imgs/logo.png b/src/assets/imgs/logo.png
new file mode 100644
index 0000000..44be9a8
Binary files /dev/null and b/src/assets/imgs/logo.png differ
diff --git a/src/assets/svgs/login-dark-bg.svg b/src/assets/svgs/login-dark-bg.svg
index 6739cf6..0e51d01 100644
--- a/src/assets/svgs/login-dark-bg.svg
+++ b/src/assets/svgs/login-dark-bg.svg
@@ -2,714 +2,714 @@
diff --git a/src/assets/svgs/login-light-bg.svg b/src/assets/svgs/login-light-bg.svg
index 82ebb49..5876b09 100644
--- a/src/assets/svgs/login-light-bg.svg
+++ b/src/assets/svgs/login-light-bg.svg
@@ -2,737 +2,736 @@
diff --git a/src/components/Form/src/Form.vue b/src/components/Form/src/Form.vue
index c8e5052..1187f4c 100644
--- a/src/components/Form/src/Form.vue
+++ b/src/components/Form/src/Form.vue
@@ -114,20 +114,26 @@ export default defineComponent({
return (
{() => {
- const Com = componentMap[item.component as string] as ReturnType
- return (
-
- {{ ...slotsMap }}
-
- )
+ return (
+
+ {{ ...slotsMap }}
+
+ )
+ }
}}
)
diff --git a/src/components/InputPassword/src/InputPassword.vue b/src/components/InputPassword/src/InputPassword.vue
index cde9149..b05f286 100644
--- a/src/components/InputPassword/src/InputPassword.vue
+++ b/src/components/InputPassword/src/InputPassword.vue
@@ -56,7 +56,7 @@ const getIconName = computed(() =>
-
+
import { LoginForm } from './components'
-import { ElCard } from 'element-plus'
+// import { ElCard } from 'element-plus'
// import { ThemeSwitch } from '@/components/ThemeSwitch'
// import { LocaleDropdown } from '@/components/LocaleDropdown'
// import { SizeDropdown } from '@/components/SizeDropdown'
import { useDesign } from '@/hooks/web/useDesign'
-// import { useI18n } from '@/hooks/web/useI18n'
+import { useI18n } from '@/hooks/web/useI18n'
-// const { t } = useI18n()
+const { t } = useI18n()
const { getPrefixCls } = useDesign()
@@ -15,22 +15,26 @@ const prefixCls = getPrefixCls('login')
-
-
-
-

+
+
+
+
+

+
ButterflyAdmin
+
+
+

+
{{ t('login.message1') }}
+
{{ t('login.message2') }}
+
-
@@ -40,25 +44,27 @@ const prefixCls = getPrefixCls('login')
@prefix-cls: ~'@{namespace}-login';
.@{prefix-cls} {
- &::before {
- position: absolute;
- top: 0;
- left: 0;
- z-index: -1;
- width: 100%;
- height: 100%;
- background-image: url('@/assets/svgs/login-light-bg.svg');
- background-position: center;
- background-repeat: no-repeat;
- content: '';
- }
-}
-
-.dark {
- .@{prefix-cls} {
+ &__left {
&::before {
+ position: absolute;
+ top: 0;
+ left: 0;
+ z-index: -1;
+ width: 100%;
+ height: 100%;
background-image: url('@/assets/svgs/login-dark-bg.svg');
+ background-position: center;
+ background-repeat: no-repeat;
+ content: '';
}
+
+ &--message {
+ transform: translate(-50%, -50%);
+ }
+ }
+
+ &__form {
+ transform: translate(-50%, -50%);
}
}
diff --git a/src/views/Login/components/LoginForm.vue b/src/views/Login/components/LoginForm.vue
index e632421..6101367 100644
--- a/src/views/Login/components/LoginForm.vue
+++ b/src/views/Login/components/LoginForm.vue
@@ -1,18 +1,42 @@
-
+