UnisKB/ui/src/layout/components/top-bar/avatar/AboutDialog.vue

78 lines
1.9 KiB
Vue
Raw Normal View History

2023-12-18 03:11:13 +00:00
<template>
<el-dialog v-model="aboutDialogVisible" class="about-dialog">
<template #header="{ titleId, titleClass }">
<div class="flex-center">
<div class="logo mr-4"></div>
<div class="app-logo-font about-title" :id="titleId" :class="titleClass">
{{ defaultTitle }}
</div>
</div>
</template>
<ul class="about-ui">
2024-02-23 10:33:21 +00:00
<li class="flex mb-16">
2023-12-18 03:11:13 +00:00
<span class="label text-right">授权数量</span><span class="text-center">-</span>
</li>
2024-02-23 10:33:21 +00:00
<li class="flex mb-16">
2023-12-18 03:11:13 +00:00
<span class="label text-right">过期时间</span><span class="text-center">-</span>
</li>
2024-02-23 10:33:21 +00:00
<li class="flex mb-16">
2023-12-18 03:11:13 +00:00
<span class="label text-right">版本</span><span class="text-center">-</span>
</li>
<li class="flex">
<span class="label text-right">版本号</span
><span class="text-center">{{ PackageJSON.version }}</span>
</li>
</ul>
</el-dialog>
</template>
<script setup lang="ts">
import { ref } from 'vue'
import PackageJSON from '../../../../../package.json'
const defaultTitle = import.meta.env.VITE_APP_TITLE
const aboutDialogVisible = ref(false)
const open = () => {
aboutDialogVisible.value = true
}
defineExpose({ open })
</script>
<style lang="scss" scope>
.about-dialog {
2024-02-23 10:28:21 +00:00
padding: 0;
2023-12-18 03:11:13 +00:00
border-radius: 4px;
2024-02-23 10:28:21 +00:00
width: 600px;
2023-12-18 03:11:13 +00:00
.el-dialog__header {
background: var(--app-header-bg-color);
margin-right: 0;
2024-02-23 10:28:21 +00:00
height: 140px;
2023-12-18 03:11:13 +00:00
border-radius: 4px 4px 0 0;
2024-02-23 10:28:21 +00:00
box-sizing: border-box;
}
.el-dialog__title {
line-height: 140px;
2023-12-18 03:11:13 +00:00
}
.about-title {
2024-02-23 10:28:21 +00:00
font-size: 40px;
2023-12-18 03:11:13 +00:00
}
.logo {
2023-12-18 06:42:13 +00:00
background-image: url('@/assets/logo.png');
2023-12-18 03:11:13 +00:00
background-size: 100% 100%;
2024-02-23 10:28:21 +00:00
width: 59px;
height: 59px;
2023-12-18 03:11:13 +00:00
}
.about-ui {
2024-02-23 10:28:21 +00:00
padding: 24px;
width: 360px;
2023-12-18 03:11:13 +00:00
margin: 0 auto;
2024-02-23 10:28:21 +00:00
font-weight: 400;
2024-02-23 10:33:21 +00:00
font-size: 16px;
2024-02-23 10:28:21 +00:00
.label {
width: 180px;
text-align: left;
color: var(--app-text-color-secondary);
2023-12-18 03:11:13 +00:00
}
}
}
</style>