From 54d0452400fe4c34259716bf21ce31dbeccdf715 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=9D=A8?= <1711467488@qq.com> Date: Sat, 24 Feb 2018 19:00:32 +0800 Subject: [PATCH] no message Former-commit-id: 3dcc74018824d2caaf994c62f0b9c72baef018af Former-commit-id: c719ef34b4582e4567850f547a73afe6175e88b8 Former-commit-id: 3895be9bd500ea94bfb72a2764de6f8f9492210d --- src/components/core/Markdown/index.vue | 10 +++++++++- src/components/core/Markdown/plugin/baidupan.js | 13 +++++++++---- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/src/components/core/Markdown/index.vue b/src/components/core/Markdown/index.vue index 167af297..6a967a86 100644 --- a/src/components/core/Markdown/index.vue +++ b/src/components/core/Markdown/index.vue @@ -101,8 +101,10 @@ $baidupanHeight: 30px; border: 1px solid #dfe2e5; padding: 10px; float: left; - user-select: none; cursor: pointer; + &:hover { + border: 1px solid $color-primary; + } .icon { float: left; height: $baidupanHeight; @@ -118,6 +120,12 @@ $baidupanHeight: 30px; height: $baidupanHeight; line-height: $baidupanHeight; } + .pwd { + float: left; + height: $baidupanHeight; + line-height: $baidupanHeight; + margin-left: 10px; + } } } diff --git a/src/components/core/Markdown/plugin/baidupan.js b/src/components/core/Markdown/plugin/baidupan.js index cf613198..0d06e485 100644 --- a/src/components/core/Markdown/plugin/baidupan.js +++ b/src/components/core/Markdown/plugin/baidupan.js @@ -15,13 +15,18 @@ export default (quote) => { const url = _quote.match(/https:\/\/pan\.baidu\.com\/s\/[a-z0-9]+/i) const pwd = _quote.match(/[a-z0-9]{4}$/i) return `
- +
-
${url[0]}
-
${pwd[0]}
-
+
+ ${url[0]} +
+
+ 密码 + ${pwd[0]} +
+
` } else { return false