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 b1fb6231
authored
Jun 27, 2025
by
Utopia
Committed by
GitHub
Jun 27, 2025
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: 为 auth layout 添加 slot: logo, 提升组件的灵活性和可复用性 (#6442)
1 parent
de14908f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
12 deletions
packages/effects/layouts/src/authentication/authentication.vue
packages/effects/layouts/src/authentication/authentication.vue
View file @
b1fb623
...
...
@@ -62,21 +62,23 @@ const { authPanelCenter, authPanelLeft, authPanelRight, isDark } =
</
template
>
</AuthenticationFormView>
<!-- 头部 Logo 和应用名称 -->
<div
v-if=
"logo || appName"
class=
"absolute left-0 top-0 z-10 flex flex-1"
@
click=
"clickLogo"
>
<slot
name=
"logo"
>
<!-- 头部 Logo 和应用名称 -->
<div
class=
"text-foreground lg:text-foreground ml-4 mt-4 flex flex-1 items-center sm:left-6 sm:top-6"
v-if=
"logo || appName"
class=
"absolute left-0 top-0 z-10 flex flex-1"
@
click=
"clickLogo"
>
<img
v-if=
"logo"
:alt=
"appName"
:src=
"logo"
class=
"mr-2"
width=
"42"
/>
<p
v-if=
"appName"
class=
"m-0 text-xl font-medium"
>
{{ appName }}
</p>
<div
class=
"text-foreground lg:text-foreground ml-4 mt-4 flex flex-1 items-center sm:left-6 sm:top-6"
>
<img
v-if=
"logo"
:alt=
"appName"
:src=
"logo"
class=
"mr-2"
width=
"42"
/>
<p
v-if=
"appName"
class=
"m-0 text-xl font-medium"
>
{{ appName }}
</p>
</div>
</div>
</
div
>
</
slot
>
<!-- 系统介绍 -->
<div
v-if=
"!authPanelCenter"
class=
"relative hidden w-0 flex-1 lg:block"
>
...
...
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