Commit b1fb6231 by Utopia Committed by GitHub

feat: 为 auth layout 添加 slot: logo, 提升组件的灵活性和可复用性 (#6442)

1 parent de14908f
...@@ -62,6 +62,7 @@ const { authPanelCenter, authPanelLeft, authPanelRight, isDark } = ...@@ -62,6 +62,7 @@ const { authPanelCenter, authPanelLeft, authPanelRight, isDark } =
</template> </template>
</AuthenticationFormView> </AuthenticationFormView>
<slot name="logo">
<!-- 头部 Logo 和应用名称 --> <!-- 头部 Logo 和应用名称 -->
<div <div
v-if="logo || appName" v-if="logo || appName"
...@@ -77,6 +78,7 @@ const { authPanelCenter, authPanelLeft, authPanelRight, isDark } = ...@@ -77,6 +78,7 @@ const { authPanelCenter, authPanelLeft, authPanelRight, isDark } =
</p> </p>
</div> </div>
</div> </div>
</slot>
<!-- 系统介绍 --> <!-- 系统介绍 -->
<div v-if="!authPanelCenter" class="relative hidden w-0 flex-1 lg:block"> <div v-if="!authPanelCenter" class="relative hidden w-0 flex-1 lg:block">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!