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

68 lines
1.7 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">
<li class="flex">
<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">-</span>
</li>
<li class="flex">
<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 {
border-radius: 4px;
.el-dialog__header {
background: var(--app-header-bg-color);
margin-right: 0;
height: 45px;
border-radius: 4px 4px 0 0;
}
.about-title {
font-size: 24px;
}
.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%;
2023-12-18 06:42:13 +00:00
width: 35px;
height: 35px;
2023-12-18 03:11:13 +00:00
}
.about-ui {
width: 200px;
margin: 0 auto;
line-height: 30px;
span {
width: 80px;
}
}
}
</style>