UnisKB/ui/src/views/theme/LoginPreview.vue

97 lines
2.4 KiB
Vue
Raw Normal View History

2024-07-11 10:13:52 +00:00
<template>
2024-07-12 09:13:11 +00:00
<div class="login-preview mr-16">
<div class="header">
<div class="tag flex-between">
<div class="flex align-center">
2024-07-15 10:08:02 +00:00
<LogoIcon height="24px" class="mr-8" />
<span class="ellipsis">{{ title }}</span>
2024-07-11 10:13:52 +00:00
</div>
2024-07-12 09:13:11 +00:00
<el-icon><Close /></el-icon>
</div>
2024-07-11 10:13:52 +00:00
</div>
2024-07-15 10:08:02 +00:00
<login-layout style="height: 530px" :themeImg="themeImg">
<LoginContainer :subTitle="slogan" class="login-container">
2024-07-12 09:13:11 +00:00
<div class="mask"></div>
<h2 class="mb-24">{{ '普通登录' }}</h2>
<el-form class="login-form">
<div class="mb-24">
<el-form-item>
<el-input size="large" class="input-item" placeholder="请输入用户名"> </el-input>
</el-form-item>
</div>
<div class="mb-24">
<el-form-item>
<el-input
type="password"
size="large"
class="input-item"
placeholder="请输入密码"
show-password
>
</el-input>
</el-form-item>
</div>
</el-form>
<el-button size="large" type="primary" class="w-full">登录</el-button>
<div class="operate-container flex-between mt-12">
<el-button class="forgot-password" link type="primary"> 忘记密码? </el-button>
</div>
</LoginContainer>
</login-layout>
</div>
2024-07-11 10:13:52 +00:00
</template>
2024-07-15 10:08:02 +00:00
<script lang="ts" setup>
const props = defineProps({
themeImg: {
type: String,
default: 'default'
},
slogan: {
type: String,
default: '欢迎使用 MaxKB 智能知识库'
},
title: {
type: String,
default: 'MaxKB'
}
})
</script>
2024-07-11 10:13:52 +00:00
2024-07-12 09:13:11 +00:00
<style lang="scss" scoped>
.login-preview {
background: #ffffff;
border-radius: 4px;
transform-origin: center;
.login-container {
transform: translate(0, 0) scale(0.8);
2024-07-11 10:13:52 +00:00
position: relative;
2024-07-12 09:13:11 +00:00
.mask {
position: absolute;
left: 0;
top: 0;
height: 100%;
width: 100%;
2024-07-11 10:13:52 +00:00
}
2024-07-12 09:13:11 +00:00
}
2024-07-11 10:13:52 +00:00
2024-07-12 09:13:11 +00:00
.header {
background: #eff0f1;
height: 38px;
border-radius: 4px 4px 0 0;
position: relative;
.tag {
width: 180px;
height: 30px;
background: #ffffff;
box-shadow: var(-app-text-color-light-1);
position: absolute;
bottom: 0;
left: 8px;
border-radius: 4px 4px 0 0;
padding: 0 8px;
2024-07-11 10:13:52 +00:00
}
2024-07-12 09:13:11 +00:00
}
2024-07-11 10:13:52 +00:00
}
2024-07-12 09:13:11 +00:00
</style>