diff --git a/src/components/core/Markdown/index.vue b/src/components/core/Markdown/index.vue index 7055836e..a746507c 100644 --- a/src/components/core/Markdown/index.vue +++ b/src/components/core/Markdown/index.vue @@ -93,14 +93,30 @@ export default { } $baidupanHeight: 40px; .baidupan { - height: $baidupanHeight; overflow: hidden; margin-bottom: 16px; - .l { - float: left; - } - .r { + .container { + height: $baidupanHeight + 10px; + border-radius: 4px; + border: 1px solid #dfe2e5; + padding: 5px; + padding-right: 15px; float: left; + .icon { + float: left; + height: $baidupanHeight; + text-align: center; + width: 50px; + img { + width: 40px; + margin-top: 4px; + } + } + .url { + float: left; + height: $baidupanHeight; + line-height: $baidupanHeight; + } } } diff --git a/src/components/core/Markdown/plugin/baidupan.js b/src/components/core/Markdown/plugin/baidupan.js index a9774e86..c436f9ea 100644 --- a/src/components/core/Markdown/plugin/baidupan.js +++ b/src/components/core/Markdown/plugin/baidupan.js @@ -4,13 +4,15 @@ export default (quote) => { const bdShareUrlPwd = /^链接: https:\/\/pan\.baidu\.com\/s\/[a-z0-9]+ 密码: [a-z0-9]{4}$/i if (bdShareUrl.test(_quote)) { return `
-
+