feat: 关于

This commit is contained in:
wangdan-fit2cloud 2024-02-23 18:28:21 +08:00
parent d01e1182f0
commit a66606af59
3 changed files with 104 additions and 86 deletions

View File

@ -39,28 +39,38 @@ defineExpose({ open })
</script> </script>
<style lang="scss" scope> <style lang="scss" scope>
.about-dialog { .about-dialog {
padding: 0;
border-radius: 4px; border-radius: 4px;
width: 600px;
.el-dialog__header { .el-dialog__header {
background: var(--app-header-bg-color); background: var(--app-header-bg-color);
margin-right: 0; margin-right: 0;
height: 45px; height: 140px;
border-radius: 4px 4px 0 0; border-radius: 4px 4px 0 0;
box-sizing: border-box;
}
.el-dialog__title {
line-height: 140px;
} }
.about-title { .about-title {
font-size: 24px; font-size: 40px;
} }
.logo { .logo {
background-image: url('@/assets/logo.png'); background-image: url('@/assets/logo.png');
background-size: 100% 100%; background-size: 100% 100%;
width: 35px; width: 59px;
height: 35px; height: 59px;
} }
.about-ui { .about-ui {
width: 200px; padding: 24px;
width: 360px;
margin: 0 auto; margin: 0 auto;
line-height: 30px; line-height: 30px;
span { font-weight: 400;
width: 80px; .label {
width: 180px;
text-align: left;
color: var(--app-text-color-secondary);
} }
} }
} }

View File

@ -5,6 +5,7 @@
--el-box-shadow-light: 0px 2px 4px 0px rgba(31, 35, 41, 0.12); --el-box-shadow-light: 0px 2px 4px 0px rgba(31, 35, 41, 0.12);
--el-border-color: #dee0e3; --el-border-color: #dee0e3;
--el-text-color-regular: #1f2329; --el-text-color-regular: #1f2329;
--el-color-info: #8F959E
} }
.el-button { .el-button {
@ -50,11 +51,16 @@
.el-form-item__label { .el-form-item__label {
font-weight: 400; font-weight: 400;
} }
.el-form-item__error { .el-form-item__error {
position: unset; position: unset;
font-size: 14px; font-size: 14px;
} }
.el-form--label-top .el-form-item .el-form-item__label {
padding-right: 0;
}
.el-dialog { .el-dialog {
--el-dialog-title-font-size: 16px; --el-dialog-title-font-size: 16px;
--el-dialog-padding-primary: 24px; --el-dialog-padding-primary: 24px;
@ -183,9 +189,6 @@
.el-text { .el-text {
font-weight: 400; font-weight: 400;
&.el-text--info {
color: var(--app-text-color-secondary);
}
} }
.el-switch { .el-switch {

View File

@ -102,11 +102,11 @@
<template #label> <template #label>
<div class="flex-between"> <div class="flex-between">
<span>关联知识库</span> <span>关联知识库</span>
<div>
<el-popover :visible="popoverVisible" :width="300" trigger="click"> <el-popover :visible="popoverVisible" :width="300" trigger="click">
<template #reference> <template #reference>
<el-button type="primary" link @click="datasetSettingChange('open')" <el-button type="primary" link @click="datasetSettingChange('open')"
>参数设置</el-button ><el-icon class="mr-4"><Operation /></el-icon></el-button
> >
</template> </template>
<div class="dataset_setting"> <div class="dataset_setting">
@ -180,17 +180,22 @@
> >
</div> </div>
</el-popover> </el-popover>
<el-button type="primary" link @click="openDatasetDialog"
><el-icon class="mr-4"><Plus /></el-icon></el-button
>
</div>
</div> </div>
</template> </template>
<div class="w-full"> <div class="w-full">
<el-text type="info">关联的知识库展示在这里</el-text>
<el-row :gutter="12"> <el-row :gutter="12">
<el-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12" class="mb-8"> <!-- <el-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12" class="mb-8">
<CardAdd <CardAdd
title="关联知识库" title="关联知识库"
@click="openDatasetDialog" @click="openDatasetDialog"
style="min-height: 50px; font-size: 14px" style="min-height: 50px; font-size: 14px"
/> />
</el-col> </el-col> -->
<el-col <el-col
:xs="24" :xs="24"
:sm="24" :sm="24"