Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
monorepo
/
venus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 32051e9c
authored
Oct 18, 2025
by
zoumingjun
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 优化左侧和右侧认证面板动画效果
1 parent
2b007958
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
9 deletions
packages/@core/base/design/src/css/ui.css
packages/effects/layouts/src/authentication/authentication.vue
packages/effects/layouts/src/authentication/form.vue
packages/@core/base/design/src/css/ui.css
View file @
32051e9
.side-content
{
.side-content
{
animation-duration
:
0.
2
s
;
animation-duration
:
0.
3
s
;
animation-timing-function
:
cubic-bezier
(
0.16
,
1
,
0.3
,
1
);
animation-timing-function
:
cubic-bezier
(
0.16
,
1
,
0.3
,
1
);
}
}
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
@keyframes
slide-down
{
@keyframes
slide-down
{
from
{
from
{
opacity
:
0
;
opacity
:
0
;
transform
:
translateY
(
-1
0px
);
transform
:
translateY
(
5
0px
);
}
}
to
{
to
{
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
@keyframes
slide-left
{
@keyframes
slide-left
{
from
{
from
{
opacity
:
0
;
opacity
:
0
;
transform
:
translateX
(
-
1
0px
);
transform
:
translateX
(
-
5
0px
);
}
}
to
{
to
{
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
@keyframes
slide-right
{
@keyframes
slide-right
{
from
{
from
{
opacity
:
0
;
opacity
:
0
;
transform
:
translateX
(
-1
0px
);
transform
:
translateX
(
5
0px
);
}
}
to
{
to
{
...
@@ -73,7 +73,7 @@
...
@@ -73,7 +73,7 @@
@keyframes
slide-up
{
@keyframes
slide-up
{
from
{
from
{
opacity
:
0
;
opacity
:
0
;
transform
:
translateY
(
1
0px
);
transform
:
translateY
(
-5
0px
);
}
}
to
{
to
{
...
...
packages/effects/layouts/src/authentication/authentication.vue
View file @
32051e9
...
@@ -50,7 +50,7 @@ const { authPanelCenter, authPanelLeft, authPanelRight, isDark } =
...
@@ -50,7 +50,7 @@ const { authPanelCenter, authPanelLeft, authPanelRight, isDark } =
<AuthenticationFormView
<AuthenticationFormView
v-if=
"authPanelLeft"
v-if=
"authPanelLeft"
class=
"min-h-full w-2/5 flex-1"
class=
"min-h-full w-2/5 flex-1"
transition-name=
"slide-
left"
data-side=
"
left"
>
>
<
template
v-if=
"copyright"
#
copyright
>
<
template
v-if=
"copyright"
#
copyright
>
<slot
name=
"copyright"
>
<slot
name=
"copyright"
>
...
@@ -86,7 +86,14 @@ const { authPanelCenter, authPanelLeft, authPanelRight, isDark } =
...
@@ -86,7 +86,14 @@ const { authPanelCenter, authPanelLeft, authPanelRight, isDark } =
class=
"bg-background-deep absolute inset-0 h-full w-full dark:bg-[#070709]"
class=
"bg-background-deep absolute inset-0 h-full w-full dark:bg-[#070709]"
>
>
<div
class=
"login-background absolute left-0 top-0 size-full"
></div>
<div
class=
"login-background absolute left-0 top-0 size-full"
></div>
<div
class=
"flex-col-center -enter-x mr-20 h-full"
>
<div
:key=
"authPanelLeft ? 'left' : authPanelRight ? 'right' : 'center'"
class=
"flex-col-center mr-20 h-full"
:class=
"{
'enter-x': authPanelLeft,
'-enter-x': authPanelRight,
}"
>
<
template
v-if=
"sloganImage"
>
<
template
v-if=
"sloganImage"
>
<img
<img
:alt=
"appName"
:alt=
"appName"
...
@@ -110,6 +117,7 @@ const { authPanelCenter, authPanelLeft, authPanelRight, isDark } =
...
@@ -110,6 +117,7 @@ const { authPanelCenter, authPanelLeft, authPanelRight, isDark } =
<div
class=
"login-background absolute left-0 top-0 size-full"
></div>
<div
class=
"login-background absolute left-0 top-0 size-full"
></div>
<AuthenticationFormView
<AuthenticationFormView
class=
"md:bg-background shadow-primary/5 shadow-float w-full rounded-3xl pb-20 md:w-2/3 lg:w-1/2 xl:w-[36%]"
class=
"md:bg-background shadow-primary/5 shadow-float w-full rounded-3xl pb-20 md:w-2/3 lg:w-1/2 xl:w-[36%]"
data-side=
"bottom"
>
>
<
template
v-if=
"copyright"
#
copyright
>
<
template
v-if=
"copyright"
#
copyright
>
<slot
name=
"copyright"
>
<slot
name=
"copyright"
>
...
@@ -125,7 +133,8 @@ const { authPanelCenter, authPanelLeft, authPanelRight, isDark } =
...
@@ -125,7 +133,8 @@ const { authPanelCenter, authPanelLeft, authPanelRight, isDark } =
<!-- 右侧认证面板 -->
<!-- 右侧认证面板 -->
<AuthenticationFormView
<AuthenticationFormView
v-if=
"authPanelRight"
v-if=
"authPanelRight"
class=
"min-h-full w-[34%] flex-1"
class=
"min-h-full w-2/5 flex-1"
data-side=
"right"
>
>
<
template
v-if=
"copyright"
#
copyright
>
<
template
v-if=
"copyright"
#
copyright
>
<slot
name=
"copyright"
>
<slot
name=
"copyright"
>
...
...
packages/effects/layouts/src/authentication/form.vue
View file @
32051e9
...
@@ -2,6 +2,10 @@
...
@@ -2,6 +2,10 @@
defineOptions
({
defineOptions
({
name
:
'AuthenticationFormView'
,
name
:
'AuthenticationFormView'
,
});
});
defineProps
<
{
dataSide
?:
'bottom'
|
'left'
|
'right'
|
'top'
;
}
>
();
</
script
>
</
script
>
<
template
>
<
template
>
...
@@ -16,7 +20,8 @@ defineOptions({
...
@@ -16,7 +20,8 @@ defineOptions({
<component
<component
:is=
"Component"
:is=
"Component"
:key=
"route.fullPath"
:key=
"route.fullPath"
class=
"enter-x mt-6 w-full sm:mx-auto md:max-w-md"
class=
"side-content mt-6 w-full sm:mx-auto md:max-w-md"
:data-side=
"dataSide"
/>
/>
</KeepAlive>
</KeepAlive>
</Transition>
</Transition>
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment