From 9992ca91830a451b499f8c50fc632d2f7c1cf902 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9A=AE=E5=85=89=EF=BC=9A=E5=9F=8E=E4=B8=AD=E5=9F=8E?= <806783409@qq.com> Date: Thu, 20 May 2021 00:05:30 +0800 Subject: [PATCH] =?UTF-8?q?#I2BC14=20=E7=A7=BB=E5=8A=A8=E7=AB=AF=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E9=80=82=E9=85=8D=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zyplayer-doc-ui/wiki-ui/package-lock.json | 6 +-- .../src/views/page/share/mobile/View.vue | 36 +++++++---------- zyplayer-doc-wiki/README.md | 3 +- .../{app.e11c1f46.css => app.27ee3e9a.css} | 2 +- .../resources/css/chunk-72e49b1a.8ccc36ca.css | 1 + .../resources/css/chunk-72e49b1a.cbbefab6.css | 1 - .../src/main/resources/doc-wiki.html | 2 +- .../src/main/resources/js/app.1b455cff.js | 1 + .../src/main/resources/js/app.243c6f0c.js | 1 - .../resources/js/chunk-1ca8e011.1d3d7c09.js | 1 - .../resources/js/chunk-1ca8e011.ffb2b917.js | 1 + ...c599e612.js => chunk-2d207ece.5c95da41.js} | 0 ...76ac0808.js => chunk-2e5083a6.e012afae.js} | 0 ...9743adbd.js => chunk-32cc5643.8584a7fe.js} | 0 ...a08008b9.js => chunk-34407190.bc72b33f.js} | 0 ...a08fd851.js => chunk-49c0ba36.65535298.js} | 0 ...5bac6e31.js => chunk-53af6df9.fa4d0650.js} | 0 ...66938d5e.js => chunk-55738a8b.d1c1e0b2.js} | 0 ...15513490.js => chunk-578c28a7.233cd2d3.js} | 0 .../resources/js/chunk-72e49b1a.30c9b0b8.js | 1 - .../resources/js/chunk-72e49b1a.8c643601.js | 1 + ...ac526f94.js => chunk-7498915d.be9dd0fc.js} | 0 ...f4f9c660.js => chunk-7ecd39ac.89b4826b.js} | 0 .../resources/js/chunk-vendors.3512c059.js | 40 +++++++++++++++++++ .../resources/js/chunk-vendors.c8f4dbb4.js | 40 ------------------- 25 files changed, 65 insertions(+), 72 deletions(-) rename zyplayer-doc-wiki/src/main/resources/css/{app.e11c1f46.css => app.27ee3e9a.css} (58%) create mode 100644 zyplayer-doc-wiki/src/main/resources/css/chunk-72e49b1a.8ccc36ca.css delete mode 100644 zyplayer-doc-wiki/src/main/resources/css/chunk-72e49b1a.cbbefab6.css create mode 100644 zyplayer-doc-wiki/src/main/resources/js/app.1b455cff.js delete mode 100644 zyplayer-doc-wiki/src/main/resources/js/app.243c6f0c.js delete mode 100644 zyplayer-doc-wiki/src/main/resources/js/chunk-1ca8e011.1d3d7c09.js create mode 100644 zyplayer-doc-wiki/src/main/resources/js/chunk-1ca8e011.ffb2b917.js rename zyplayer-doc-wiki/src/main/resources/js/{chunk-2d207ece.c599e612.js => chunk-2d207ece.5c95da41.js} (100%) rename zyplayer-doc-wiki/src/main/resources/js/{chunk-2e5083a6.76ac0808.js => chunk-2e5083a6.e012afae.js} (100%) rename zyplayer-doc-wiki/src/main/resources/js/{chunk-32cc5643.9743adbd.js => chunk-32cc5643.8584a7fe.js} (100%) rename zyplayer-doc-wiki/src/main/resources/js/{chunk-34407190.a08008b9.js => chunk-34407190.bc72b33f.js} (100%) rename zyplayer-doc-wiki/src/main/resources/js/{chunk-49c0ba36.a08fd851.js => chunk-49c0ba36.65535298.js} (100%) rename zyplayer-doc-wiki/src/main/resources/js/{chunk-53af6df9.5bac6e31.js => chunk-53af6df9.fa4d0650.js} (100%) rename zyplayer-doc-wiki/src/main/resources/js/{chunk-55738a8b.66938d5e.js => chunk-55738a8b.d1c1e0b2.js} (100%) rename zyplayer-doc-wiki/src/main/resources/js/{chunk-578c28a7.15513490.js => chunk-578c28a7.233cd2d3.js} (100%) delete mode 100644 zyplayer-doc-wiki/src/main/resources/js/chunk-72e49b1a.30c9b0b8.js create mode 100644 zyplayer-doc-wiki/src/main/resources/js/chunk-72e49b1a.8c643601.js rename zyplayer-doc-wiki/src/main/resources/js/{chunk-7498915d.ac526f94.js => chunk-7498915d.be9dd0fc.js} (100%) rename zyplayer-doc-wiki/src/main/resources/js/{chunk-7ecd39ac.f4f9c660.js => chunk-7ecd39ac.89b4826b.js} (100%) create mode 100644 zyplayer-doc-wiki/src/main/resources/js/chunk-vendors.3512c059.js delete mode 100644 zyplayer-doc-wiki/src/main/resources/js/chunk-vendors.c8f4dbb4.js diff --git a/zyplayer-doc-ui/wiki-ui/package-lock.json b/zyplayer-doc-ui/wiki-ui/package-lock.json index c678f96b..6746a6d7 100644 --- a/zyplayer-doc-ui/wiki-ui/package-lock.json +++ b/zyplayer-doc-ui/wiki-ui/package-lock.json @@ -2081,7 +2081,7 @@ }, "babel-helper-vue-jsx-merge-props": { "version": "2.0.3", - "resolved": "http://registry.npm.taobao.org/babel-helper-vue-jsx-merge-props/download/babel-helper-vue-jsx-merge-props-2.0.3.tgz", + "resolved": "https://registry.npm.taobao.org/babel-helper-vue-jsx-merge-props/download/babel-helper-vue-jsx-merge-props-2.0.3.tgz", "integrity": "sha1-Iq69OzOQIyjlEyk6jkmSs4T58bY=" }, "babel-loader": { @@ -2120,7 +2120,7 @@ }, "babel-runtime": { "version": "6.26.0", - "resolved": "http://registry.npm.taobao.org/babel-runtime/download/babel-runtime-6.26.0.tgz", + "resolved": "https://registry.npm.taobao.org/babel-runtime/download/babel-runtime-6.26.0.tgz", "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", "requires": { "core-js": "^2.4.0", @@ -7535,7 +7535,7 @@ }, "normalize-wheel": { "version": "1.0.1", - "resolved": "https://registry.npm.taobao.org/normalize-wheel/download/normalize-wheel-1.0.1.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fnormalize-wheel%2Fdownload%2Fnormalize-wheel-1.0.1.tgz", + "resolved": "https://registry.npm.taobao.org/normalize-wheel/download/normalize-wheel-1.0.1.tgz", "integrity": "sha1-rsiGr/2wRQcNhWRH32Ls+GFG7EU=" }, "npm-run-path": { diff --git a/zyplayer-doc-ui/wiki-ui/src/views/page/share/mobile/View.vue b/zyplayer-doc-ui/wiki-ui/src/views/page/share/mobile/View.vue index 01ce459d..c694c5df 100644 --- a/zyplayer-doc-ui/wiki-ui/src/views/page/share/mobile/View.vue +++ b/zyplayer-doc-ui/wiki-ui/src/views/page/share/mobile/View.vue @@ -1,11 +1,10 @@ @@ -40,6 +36,7 @@ import pageApi from '../../../../common/api/page' import {mavonEditor, markdownIt} from 'mavon-editor' import ElImageViewer from 'element-ui/packages/image/src/image-viewer' + import { ImagePreview } from 'vant'; import 'mavon-editor/dist/markdown/github-markdown.min.css' import 'mavon-editor/dist/css/index.css' @@ -54,7 +51,6 @@ pageShowDetail: '', // 大图预览 previewInitialIndex: 0, - showImagePreview: false, showImagePreviewList: [], }; }, @@ -115,9 +111,6 @@ } return size; }, - closeImagePreview() { - this.showImagePreview = false; - }, previewPageImage() { const imgArr = []; const imgSelector = this.$refs.pageContent.querySelectorAll('img'); @@ -126,18 +119,13 @@ item.onclick = () => { this.previewInitialIndex = index; this.showImagePreviewList = imgArr; - this.showImagePreview = true; - setTimeout(() => this.initImageViewerMask(), 0); + ImagePreview({ + images: imgArr, + startPosition: index, + }); } }); }, - initImageViewerMask() { - // 图片预览遮罩点击隐藏预览框 - let imageViewerMask = this.$refs.imagePreview.querySelectorAll('.el-image-viewer__mask'); - imageViewerMask.forEach(item => { - item.onclick = () => this.showImagePreview = false; - }); - }, } } @@ -145,14 +133,18 @@ diff --git a/zyplayer-doc-wiki/README.md b/zyplayer-doc-wiki/README.md index 0ab1ed3c..9f07211d 100644 --- a/zyplayer-doc-wiki/README.md +++ b/zyplayer-doc-wiki/README.md @@ -3,7 +3,8 @@ #### 项目介绍 WIKI文档模块,定位为企业内部使用或个人使用的WIKI文档 +vant前端框架:https://vant-contrib.gitee.io/vant/#/zh-CN/home + 模块的详细使用文档地址,部署必看: http://doc.zyplayer.com/zyplayer-doc-manage/doc-wiki#/page/share/view?pageId=25&space=23f3f59a60824d21af9f7c3bbc9bc3cb - diff --git a/zyplayer-doc-wiki/src/main/resources/css/app.e11c1f46.css b/zyplayer-doc-wiki/src/main/resources/css/app.27ee3e9a.css similarity index 58% rename from zyplayer-doc-wiki/src/main/resources/css/app.e11c1f46.css rename to zyplayer-doc-wiki/src/main/resources/css/app.27ee3e9a.css index a7af4387..4dabfe41 100644 --- a/zyplayer-doc-wiki/src/main/resources/css/app.e11c1f46.css +++ b/zyplayer-doc-wiki/src/main/resources/css/app.27ee3e9a.css @@ -1 +1 @@ -::-webkit-scrollbar{width:6px;height:9px;-webkit-appearance:none}::-webkit-scrollbar-thumb{background:#ddd;border-radius:10px}::-webkit-scrollbar-track-piece{background:#eee}.create-space-vue .empty-news{text-align:center;padding:100px}.create-space-vue .text-link{color:#444}.create-space-vue .line-box{color:#666;border-bottom:1px solid #eee;padding:20px 0}.create-space-vue .line-title{font-size:14px}.create-space-vue .page-preview-title{font-size:18px;margin:10px 0 5px 0;color:#3a8ee6;cursor:pointer}.create-space-vue .page-preview-content{font-size:16px;margin-bottom:5px}.create-space-vue .zan-img{vertical-align:middle;margin-top:-3px}.create-space-vue .view-img{font-size:16px;color:#666}.create-space-vue .page-info-box{text-align:right;margin:20px 0 50px 0}body,html{margin:0;padding:0}#app,.el-container,.el-menu,.global-layout-vue,body,html{height:100%}.el-header{background-color:#1d4e89!important}.header-right-user-name{color:#fff;padding-right:5px}.el-header{color:#333;line-height:40px;text-align:right;height:40px!important}.icon-collapse{float:left;font-size:25px;color:#aaa;margin-top:8px;cursor:pointer}.icon-collapse:hover{color:#eee}.head-icon{margin-right:15px;font-size:16px;cursor:pointer;color:#fff}.header-user-message .page-info-box{text-align:right;margin-top:10px}#app[data-v-d209bcd8],body[data-v-d209bcd8],html[data-v-d209bcd8]{margin:0;padding:0;height:100%}pre[data-v-d209bcd8]{margin:0;white-space:pre-wrap;font-size:14px;font-family:auto}.el-menu[data-v-d209bcd8]{-webkit-box-sizing:border-box;box-sizing:border-box;border-right:0;margin-right:3px}.el-header[data-v-d209bcd8]{background-color:#409eff;color:#333;line-height:40px;text-align:right;height:40px!important}.doc-body-box[data-v-d209bcd8]{overflow-x:hidden;overflow-y:auto;width:100%;padding:10px;border-left:1px solid #f1f1f1;-webkit-box-sizing:border-box;box-sizing:border-box}.el-tree[data-v-d209bcd8]{margin-right:3px}.logo[data-v-d209bcd8]{border-bottom:1px solid #f1f1f1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:5px 10px;width:260px;height:40px;line-height:40px;font-size:25px;color:#666;text-align:center}.icon-collapse[data-v-d209bcd8]{float:left;font-size:25px;color:#aaa;cursor:pointer;position:fixed}.icon-collapse[data-v-d209bcd8]:hover{color:#ccc}.comment-box .head[data-v-d209bcd8]{float:left;background-color:#ccc;border-radius:50%;margin-right:10px;width:45px;height:45px;line-height:45px;text-align:center;color:#fff}.build-info[data-v-d209bcd8]{position:fixed;bottom:0;left:0;background:#fafafa;width:240px;text-align:center;padding:5px 0;color:#aaa;font-size:12px}.build-info a[data-v-d209bcd8]{color:#4183c4;cursor:pointer;text-decoration:none}#app[data-v-12cfde59],body[data-v-12cfde59],html[data-v-12cfde59]{margin:0;padding:0;height:100%}.share-mobile-layout[data-v-12cfde59]{height:100%}.popup-module .header[data-v-12cfde59]{width:100%;height:46px}.popup-module .main[data-v-12cfde59]{position:absolute;top:46px;bottom:0;right:0;left:0;overflow:auto}.popup-module .footer[data-v-12cfde59]{width:100%;height:26px;position:fixed;bottom:0}pre[data-v-12cfde59]{margin:0;white-space:pre-wrap;font-size:14px;font-family:auto}.el-menu[data-v-12cfde59]{-webkit-box-sizing:border-box;box-sizing:border-box;border-right:0;margin-right:3px}.el-header[data-v-12cfde59]{background-color:#409eff;color:#333;line-height:40px;text-align:right;height:40px!important}.doc-body-box[data-v-12cfde59]{overflow-x:hidden;overflow-y:auto;width:100%;padding:10px;border-left:1px solid #f1f1f1;-webkit-box-sizing:border-box;box-sizing:border-box}.el-tree[data-v-12cfde59]{margin-right:3px}.logo[data-v-12cfde59]{border-bottom:1px solid #f1f1f1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:5px 10px;width:260px;height:40px;line-height:40px;font-size:25px;color:#666;text-align:center}.icon-collapse[data-v-12cfde59]{float:left;font-size:25px;color:#aaa;cursor:pointer;position:fixed}.icon-collapse[data-v-12cfde59]:hover{color:#ccc}.comment-box .head[data-v-12cfde59]{float:left;background-color:#ccc;border-radius:50%;margin-right:10px;width:45px;height:45px;line-height:45px;text-align:center;color:#fff}.build-info[data-v-12cfde59]{text-align:center;padding:5px 0;color:#aaa;font-size:12px;margin:10px 0}.build-info a[data-v-12cfde59]{color:#4183c4;cursor:pointer;text-decoration:none} \ No newline at end of file +::-webkit-scrollbar{width:6px;height:9px;-webkit-appearance:none}::-webkit-scrollbar-thumb{background:#ddd;border-radius:10px}::-webkit-scrollbar-track-piece{background:#eee}.create-space-vue .empty-news{text-align:center;padding:100px}.create-space-vue .text-link{color:#444}.create-space-vue .line-box{color:#666;border-bottom:1px solid #eee;padding:20px 0}.create-space-vue .line-title{font-size:14px}.create-space-vue .page-preview-title{font-size:18px;margin:10px 0 5px 0;color:#3a8ee6;cursor:pointer}.create-space-vue .page-preview-content{font-size:16px;margin-bottom:5px}.create-space-vue .zan-img{vertical-align:middle;margin-top:-3px}.create-space-vue .view-img{font-size:16px;color:#666}.create-space-vue .page-info-box{text-align:right;margin:20px 0 50px 0}body,html{margin:0;padding:0}#app,.el-container,.el-menu,.global-layout-vue,body,html{height:100%}.el-header{background-color:#1d4e89!important}.header-right-user-name{color:#fff;padding-right:5px}.el-header{color:#333;line-height:40px;text-align:right;height:40px!important}.icon-collapse{float:left;font-size:25px;color:#aaa;margin-top:8px;cursor:pointer}.icon-collapse:hover{color:#eee}.head-icon{margin-right:15px;font-size:16px;cursor:pointer;color:#fff}.header-user-message .page-info-box{text-align:right;margin-top:10px}#app[data-v-51ce7152],body[data-v-51ce7152],html[data-v-51ce7152]{margin:0;padding:0;height:100%}pre[data-v-51ce7152]{margin:0;white-space:pre-wrap;font-size:14px;font-family:auto}.el-menu[data-v-51ce7152]{-webkit-box-sizing:border-box;box-sizing:border-box;border-right:0;margin-right:3px}.el-header[data-v-51ce7152]{background-color:#409eff;color:#333;line-height:40px;text-align:right;height:40px!important}.doc-body-box[data-v-51ce7152]{overflow-x:hidden;overflow-y:auto;width:100%;padding:10px;border-left:1px solid #f1f1f1;-webkit-box-sizing:border-box;box-sizing:border-box}.el-tree[data-v-51ce7152]{margin-right:3px}.logo[data-v-51ce7152]{border-bottom:1px solid #f1f1f1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:5px 10px;width:260px;height:40px;line-height:40px;font-size:25px;color:#666;text-align:center}.icon-collapse[data-v-51ce7152]{float:left;font-size:25px;color:#aaa;cursor:pointer;position:fixed}.icon-collapse[data-v-51ce7152]:hover{color:#ccc}.comment-box .head[data-v-51ce7152]{float:left;background-color:#ccc;border-radius:50%;margin-right:10px;width:45px;height:45px;line-height:45px;text-align:center;color:#fff}.build-info[data-v-51ce7152]{position:fixed;bottom:0;left:0;background:#fafafa;width:240px;text-align:center;padding:5px 0;color:#aaa;font-size:12px}.build-info a[data-v-51ce7152]{color:#4183c4;cursor:pointer;text-decoration:none}#app[data-v-fa54273c],body[data-v-fa54273c],html[data-v-fa54273c]{margin:0;padding:0;height:100%}.share-mobile-layout[data-v-fa54273c]{height:100%}.popup-module .header[data-v-fa54273c]{width:100%;height:46px}.popup-module .main[data-v-fa54273c]{position:absolute;top:46px;bottom:0;right:0;left:0;overflow:auto}.popup-module .footer[data-v-fa54273c]{width:100%;height:26px;position:fixed;bottom:0}pre[data-v-fa54273c]{margin:0;white-space:pre-wrap;font-size:14px;font-family:auto}.el-menu[data-v-fa54273c]{-webkit-box-sizing:border-box;box-sizing:border-box;border-right:0;margin-right:3px}.el-header[data-v-fa54273c]{background-color:#409eff;color:#333;line-height:40px;text-align:right;height:40px!important}.doc-body-box[data-v-fa54273c]{overflow-x:hidden;overflow-y:auto;width:100%;padding:10px;border-left:1px solid #f1f1f1;-webkit-box-sizing:border-box;box-sizing:border-box}.el-tree[data-v-fa54273c]{margin-right:3px}.logo[data-v-fa54273c]{border-bottom:1px solid #f1f1f1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:5px 10px;width:260px;height:40px;line-height:40px;font-size:25px;color:#666;text-align:center}.icon-collapse[data-v-fa54273c]{float:left;font-size:25px;color:#aaa;cursor:pointer;position:fixed}.icon-collapse[data-v-fa54273c]:hover{color:#ccc}.comment-box .head[data-v-fa54273c]{float:left;background-color:#ccc;border-radius:50%;margin-right:10px;width:45px;height:45px;line-height:45px;text-align:center;color:#fff}.build-info[data-v-fa54273c]{text-align:center;padding:5px 0;color:#aaa;font-size:12px;margin:10px 0}.build-info a[data-v-fa54273c]{color:#4183c4;cursor:pointer;text-decoration:none} \ No newline at end of file diff --git a/zyplayer-doc-wiki/src/main/resources/css/chunk-72e49b1a.8ccc36ca.css b/zyplayer-doc-wiki/src/main/resources/css/chunk-72e49b1a.8ccc36ca.css new file mode 100644 index 00000000..55278f0d --- /dev/null +++ b/zyplayer-doc-wiki/src/main/resources/css/chunk-72e49b1a.8ccc36ca.css @@ -0,0 +1 @@ +.page-share-view-vue .wiki-title{font-size:20px;text-align:center}.page-share-view-vue .wiki-author{font-size:14px;color:#888;height:40px;line-height:40px}.page-share-view-vue .wiki-page-content img{cursor:pointer;max-width:100%}.page-share-view-vue .wiki-page-content img:hover{-webkit-box-shadow:0 2px 6px 0 rgba(0,0,0,.3);box-shadow:0 2px 6px 0 rgba(0,0,0,.3)}.page-share-view-vue .upload-page-file .el-upload-list{display:none}.page-share-view-vue .is-link{color:#1e88e5;cursor:pointer}.page-share-view-vue .header{width:100%;height:46px}.page-share-view-vue .main{position:absolute;top:46px;bottom:0;right:0;left:0;overflow:auto;padding:10px}.page-share-view-vue .footer{width:100%;height:26px;position:fixed;bottom:0} \ No newline at end of file diff --git a/zyplayer-doc-wiki/src/main/resources/css/chunk-72e49b1a.cbbefab6.css b/zyplayer-doc-wiki/src/main/resources/css/chunk-72e49b1a.cbbefab6.css deleted file mode 100644 index b081ac6d..00000000 --- a/zyplayer-doc-wiki/src/main/resources/css/chunk-72e49b1a.cbbefab6.css +++ /dev/null @@ -1 +0,0 @@ -.page-share-view-vue{padding:10px}.page-share-view-vue .wiki-title{font-size:20px;text-align:center}.page-share-view-vue .wiki-author{font-size:14px;color:#888;padding:20px 0;height:40px;line-height:40px}.page-share-view-vue .wiki-page-content img{cursor:pointer;max-width:100%}.page-share-view-vue .wiki-page-content img:hover{-webkit-box-shadow:0 2px 6px 0 rgba(0,0,0,.3);box-shadow:0 2px 6px 0 rgba(0,0,0,.3)}.page-share-view-vue .upload-page-file .el-upload-list{display:none}.page-share-view-vue .is-link{color:#1e88e5;cursor:pointer} \ No newline at end of file diff --git a/zyplayer-doc-wiki/src/main/resources/doc-wiki.html b/zyplayer-doc-wiki/src/main/resources/doc-wiki.html index fe113e50..ddf6b1d9 100644 --- a/zyplayer-doc-wiki/src/main/resources/doc-wiki.html +++ b/zyplayer-doc-wiki/src/main/resources/doc-wiki.html @@ -1 +1 @@ -