技术文档更改

This commit is contained in:
guoyue 2022-08-03 13:36:43 +08:00
parent dee93f83b9
commit bba86294df
3 changed files with 157 additions and 142 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

View File

@ -1,32 +1,20 @@
<template> <template>
<div class="list-box"> <div class="list-box">
<div <div class="list-item" v-for="(item, i) in newDataList" :key="i" @click.stop="showChildren(item)">
class="list-item"
v-for="(item, i) in newDataList"
:key="i"
@click.stop="showChildren(item)"
>
<a-tooltip placement="top" :title="item.title" arrow-point-at-center> <a-tooltip placement="top" :title="item.title" arrow-point-at-center>
<div <div :class="[
:class="[
newClickData.title === item.title ? 'select' : '', newClickData.title === item.title ? 'select' : '',
level === 1 ? 'parent' : '', level === 1 ? 'parent' : '',
judgeLeaf(item) ? 'leaf' : '', judgeLeaf(item) ? 'leaf' : '',
]" ]" class="list-text">
class="list-text"
>
{{ item.title }} {{ item.title }}
<DownOutlined v-show="!item.show && !judgeLeaf(item)" /> <DownOutlined v-show="!item.show && !judgeLeaf(item)" />
<UpOutlined v-show="item.show && !judgeLeaf(item)" /> <UpOutlined v-show="item.show && !judgeLeaf(item)" />
</div> </div>
</a-tooltip> </a-tooltip>
<div style="margin-left: 10px" v-if="!judgeLeaf(item) && item.show"> <div style="margin-left: 10px" v-if="!judgeLeaf(item) && item.show">
<abilityDocTree <abilityDocTree :dataList="item.children" @tree-click="handleTreeItem" :clickData="newClickData"
:dataList="item.children" :level="newLevel + 1"></abilityDocTree>
@tree-click="handleTreeItem"
:clickData="newClickData"
:level="newLevel + 1"
></abilityDocTree>
</div> </div>
</div> </div>
</div> </div>

View File

@ -3,13 +3,18 @@
<div class="menu-container"> <div class="menu-container">
<div id="container" class="content-menu"> <div id="container" class="content-menu">
<div class="left"> <div class="left">
<div class="first-title-text" v-for="(data, i) in titleList" :key="i" @click="changeName(data)" <div class="first-title-text doc" :style="{ color: '技术文档' === titleData.name ? '#0058e1' : '' }"
:style="{ color: data.name === titleData.name ? '#0058e1' : '' }"> @click="changeName({ name: '技术文档' })">
<div class="img" :class="data.className"></div> 技术文档
{{ data.name }}
</div> </div>
<abilityDocTree :dataList="treeArray" @treeClick="treeClick" :clickData="clickData"></abilityDocTree> <abilityDocTree style="max-height:400px;overflow-y:auto" :dataList="treeArray" @treeClick="treeClick" :clickData="clickData"></abilityDocTree>
</div> </div>
<div class="first-title-text new-guide-box" :style="{ color: '新手指引' === titleData.name ? '#0058e1' : '' }"
@click="changeName({ name: '新手指引' })">
<div class="guide-text">新手指引</div>
</div>
<!-- 技术文档 --> <!-- 技术文档 -->
<div class="right" v-if="titleData.name !== '新手指引'"> <div class="right" v-if="titleData.name !== '新手指引'">
<div style="height: 100%"> <div style="height: 100%">
@ -146,6 +151,10 @@ onMounted(() => {
} }
} }
.doc {
font-weight: bold;
}
.menu-container { .menu-container {
width: 100%; width: 100%;
padding-top: 0.74rem; padding-top: 0.74rem;
@ -163,22 +172,45 @@ onMounted(() => {
.left { .left {
width: 200px; width: 200px;
padding: 20px; padding-left: 10px;
margin-right: 20px; padding-top: 10px;
background: rgba(244, 245, 248, 1); background: #f4f5f8;
overflow-y: scroll;
position: absolute; position: absolute;
top: 200px; top: 300px;
left: 85px; left: 85px;
max-height: 400px;
}
.new-guide-box {
position: absolute;
top: 300px;
right: 205px;
width: 74px;
height: 136px;
background: url('~@/assets/menu/new-bg.png') no-repeat;
background-size: 100% 100%;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
padding-bottom: 0;
}
.guide-text {
width: 25px;
text-align: center;
word-wrap: break-word;
font-size: 20px;
color: #0058e1;
} }
.right { .right {
width: 1400px; width: 1300px;
height: calc(100% - 20px); height: calc(100% - 20px);
position: absolute; position: absolute;
top: 10px;
left: 300px;
min-height: 600px; min-height: 600px;
left: 50%;
transform: translateX(-50%);
} }
.sidebar { .sidebar {
@ -196,11 +228,6 @@ onMounted(() => {
margin-right: 8px; margin-right: 8px;
} }
.doc {
background: url('~@/assets/capabilityCloud/doc.png') no-repeat;
background-size: 100%;
}
.newGuide { .newGuide {
background: url('~@/assets/capabilityCloud/newGuide.png') no-repeat; background: url('~@/assets/capabilityCloud/newGuide.png') no-repeat;
background-size: 100%; background-size: 100%;