优化文档展示细节,优化开放文档样式

This commit is contained in:
暮光:城中城
2023-03-02 23:34:59 +08:00
parent a819a8df59
commit 674de356e7
4 changed files with 77 additions and 69 deletions

View File

@@ -9,24 +9,32 @@
<el-button :icon="ElIconSearch" v-on:click="searchByKeywords"></el-button> <el-button :icon="ElIconSearch" v-on:click="searchByKeywords"></el-button>
</template> </template>
</el-input> </el-input>
<div class="wiki-page-tree-box">
<el-tree <el-tree
:props="defaultProps"
:data="wikiPageList"
@node-click="handleNodeClick"
ref="wikiPageTreeRef" ref="wikiPageTreeRef"
:filter-node-method="filterPageNode" :current-node-key="nowPageId"
highlight-current :data="wikiPageList"
:expand-on-click-node="true"
:default-expanded-keys="wikiPageExpandedKeys" :default-expanded-keys="wikiPageExpandedKeys"
:expand-on-click-node="true"
:filter-node-method="filterPageNode"
:props="defaultProps"
draggable
highlight-current
node-key="id" node-key="id"
style="background-color: #fafafa; padding-bottom: 30px"> style="background-color: #fafafa"
@node-click="handleNodeClick">
<template v-slot="{ node, data }"> <template v-slot="{ node, data }">
<span style="font-size: 14px"> <div class="page-tree-node">
<el-icon><el-icon-document/></el-icon>&nbsp; <el-tooltip :content="node.label" placement="top-start" :show-after="1000">
<span>{{ node.label }}</span> <span class="label">
<el-icon><el-icon-document/></el-icon>
<span class="text">{{ node.label }}</span>
</span> </span>
</el-tooltip>
</div>
</template> </template>
</el-tree> </el-tree>
</div>
<!--请保留申明--> <!--请保留申明-->
<div class="build-info">本文档使用<a target="_blank" href="https://gitee.com/zyplayer/zyplayer-doc">zyplayer-doc</a>构建</div> <div class="build-info">本文档使用<a target="_blank" href="https://gitee.com/zyplayer/zyplayer-doc">zyplayer-doc</a>构建</div>
</div> </div>

View File

@@ -708,7 +708,7 @@ const initQueryParam = (to) => {
} }
.page-show-vue .wiki-title { .page-show-vue .wiki-title {
font-size: 20px; font-size: 2em;
text-align: center; text-align: center;
font-weight: bold; font-weight: bold;
} }

View File

@@ -1,5 +1,5 @@
<template> <template>
<div class="page-share-view-vue"> <div class="mobile-share-view-vue">
<van-nav-bar :title="wikiPage.name" class="header"> <van-nav-bar :title="wikiPage.name" class="header">
<template v-slot:left> <template v-slot:left>
<van-icon name="wap-nav" size="20" @click="popupShowChange"></van-icon> <van-icon name="wap-nav" size="20" @click="popupShowChange"></van-icon>
@@ -132,45 +132,46 @@ const previewPageImage = () => {
<style> <style>
@import '../../../../assets/lib/wangEditor.css'; @import '../../../../assets/lib/wangEditor.css';
.page-share-view-vue { .mobile-share-view-vue {
} }
.page-share-view-vue .wiki-title { .mobile-share-view-vue .wiki-title {
font-size: 20px; font-size: 2em;
text-align: center; text-align: center;
font-weight: bold;
} }
.page-share-view-vue .wiki-author { .mobile-share-view-vue .wiki-author {
font-size: 14px; font-size: 14px;
color: #888; color: #888;
height: 40px; height: 40px;
line-height: 40px; line-height: 40px;
} }
.page-share-view-vue .wiki-page-content img { .mobile-share-view-vue .wiki-page-content img {
cursor: pointer; cursor: pointer;
max-width: 100%; max-width: 100%;
} }
.page-share-view-vue .wiki-page-content img:hover { .mobile-share-view-vue .wiki-page-content img:hover {
box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.3); box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.3);
} }
.page-share-view-vue .upload-page-file .el-upload-list { .mobile-share-view-vue .upload-page-file .el-upload-list {
display: none; display: none;
} }
.page-share-view-vue .is-link { .mobile-share-view-vue .is-link {
color: #1e88e5; color: #1e88e5;
cursor: pointer; cursor: pointer;
} }
.page-share-view-vue .header { .mobile-share-view-vue .header {
width: 100%; width: 100%;
height: 46px; height: 46px;
} }
.page-share-view-vue .main { .mobile-share-view-vue .main {
position: absolute; position: absolute;
top: 46px; top: 46px;
bottom: 0; bottom: 0;
@@ -180,7 +181,7 @@ const previewPageImage = () => {
padding: 10px; padding: 10px;
} }
.page-share-view-vue .footer { .mobile-share-view-vue .footer {
width: 100%; width: 100%;
height: 26px; height: 26px;
position: fixed; position: fixed;

View File

@@ -1,10 +1,6 @@
<template> <template>
<div class="page-share-view-vue"> <div class="page-share-view-vue">
<el-row type="border-card"> <el-row type="border-card">
<el-row>
<el-col :xs="0" :sm="4" :md="4" :lg="6" :xl="6" v-if="navigationList.length > 0">
<Navigation :heading="navigationList"></Navigation>
</el-col>
<el-col :xs="24" :sm="navigationList.length > 0 ? 20 : 24" :md="navigationList.length > 0 ? 20 : 24" :lg="navigationList.length > 0 ? 18 : 24" :xl="navigationList.length > 0 ? 18 : 24"> <el-col :xs="24" :sm="navigationList.length > 0 ? 20 : 24" :md="navigationList.length > 0 ? 20 : 24" :lg="navigationList.length > 0 ? 18 : 24" :xl="navigationList.length > 0 ? 18 : 24">
<div style="max-width: 1000px; padding-left: 10px; margin: 0 auto"> <div style="max-width: 1000px; padding-left: 10px; margin: 0 auto">
<div class="wiki-title" ref="wikiTitleRef">{{ wikiPage.name }}</div> <div class="wiki-title" ref="wikiTitleRef">{{ wikiPage.name }}</div>
@@ -32,7 +28,9 @@
</div> </div>
</div> </div>
</el-col> </el-col>
</el-row> <el-col :xs="0" :sm="4" :md="4" :lg="6" :xl="6" v-if="navigationList.length > 0">
<Navigation :heading="navigationList"></Navigation>
</el-col>
</el-row> </el-row>
<div ref="imagePreviewRef"> <div ref="imagePreviewRef">
<el-image-viewer v-if="showImagePreview" <el-image-viewer v-if="showImagePreview"
@@ -168,8 +166,9 @@ const initImageViewerMask = () => {
@import '../../../../assets/lib/wangEditor.css'; @import '../../../../assets/lib/wangEditor.css';
.page-share-view-vue .wiki-title { .page-share-view-vue .wiki-title {
font-size: 20px; font-size: 2em;
text-align: center; text-align: center;
font-weight: bold;
} }
.page-share-view-vue .wiki-author { .page-share-view-vue .wiki-author {