From d2b64d890aabc35e6ff7570a5f5d4a666103645e Mon Sep 17 00:00:00 2001 From: ZiuChen <457353192@qq.com> Date: Fri, 16 Sep 2022 12:51:52 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E5=8D=A1=E7=89=87?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=20=E9=87=8D=E8=A6=81=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=B0=86=E5=BC=B9=E5=87=BA=E6=8F=90=E7=A4=BA?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/cpns/ClipCard.vue | 59 ++++++++++++++++++++++ src/data/notify.json | 5 ++ src/style/cpns/clip-card.less | 81 ++++++++++++++++++++++++++++++ src/style/cpns/clip-full-data.less | 2 +- src/style/index.less | 1 + src/views/Main.vue | 7 +++ src/views/Notify.vue | 28 +++++++++++ 7 files changed, 182 insertions(+), 1 deletion(-) create mode 100644 src/cpns/ClipCard.vue create mode 100644 src/data/notify.json create mode 100644 src/style/cpns/clip-card.less create mode 100644 src/views/Notify.vue diff --git a/src/cpns/ClipCard.vue b/src/cpns/ClipCard.vue new file mode 100644 index 0000000..f705b27 --- /dev/null +++ b/src/cpns/ClipCard.vue @@ -0,0 +1,59 @@ + + + + + diff --git a/src/data/notify.json b/src/data/notify.json new file mode 100644 index 0000000..a80a00c --- /dev/null +++ b/src/data/notify.json @@ -0,0 +1,5 @@ +{ + "title": "重要版本更新提示", + "content": "1. 如果你是第一次使用此插件, 请务必设置跟随主程序启动选项, 否则可能导致剪贴板记录丢失\n2. 插件内的收藏栏将在最近一个版本中移除, 届时点击收藏按钮将跳转到备忘快贴, 请尽快将已有数据保存, 使用备忘快贴代替\n3. 插件使用过程中遇到任何问题, 请到论坛发布页回帖或加入QQ群反馈", + "version": 1 +} diff --git a/src/style/cpns/clip-card.less b/src/style/cpns/clip-card.less new file mode 100644 index 0000000..2c750f1 --- /dev/null +++ b/src/style/cpns/clip-card.less @@ -0,0 +1,81 @@ +.clip-card { + position: absolute; + top: 10%; + left: 10%; + width: 80%; + height: 80%; + z-index: 999999999; + background-color: @bg-color; + border-radius: 10px; + box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5); + &-header { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 50px; + border-radius: 5px 5px 0px 0px; + background-color: @primary-color; + color: @bg-color; + display: flex; + align-items: center; + justify-content: space-between; + .clip-card-header-title { + margin-left: 25px; + font-size: 17px; + font-weight: 600; + } + .clip-card-header-operate { + display: flex; + align-items: center; + cursor: pointer; + margin: 20px; + .clip-card-header-operate-item { + margin-left: 10px; + cursor: pointer; + &:first-child { + margin-left: 0; + } + } + } + } + &-content { + position: absolute; + top: 50px; + left: 0; + overflow: auto; + padding: 30px; + color: @text-color; + .clip-card-content-item { + font-size: 15px; + margin-bottom: 10px; + &:last-child { + margin-bottom: 0; + } + } + } + &-footer { + position: absolute; + bottom: 0; + left: 0; + width: 100%; + height: 50px; + background-color: @primary-color; + color: @text-color; + display: flex; + align-items: center; + justify-content: space-between; + border-radius: 0px 0px 5px 5px; + .clip-card-footer-operate { + display: flex; + align-items: center; + .clip-card-footer-operate-item { + margin-left: 10px; + cursor: pointer; + &:first-child { + margin-left: 0; + } + } + } + } +} diff --git a/src/style/cpns/clip-full-data.less b/src/style/cpns/clip-full-data.less index 3c2cbf8..2adc4b1 100644 --- a/src/style/cpns/clip-full-data.less +++ b/src/style/cpns/clip-full-data.less @@ -53,7 +53,7 @@ } } .clip-overlay { - z-index: 999999999; + z-index: 9999999; position: fixed; top: 0; height: 100%; diff --git a/src/style/index.less b/src/style/index.less index adb2559..47802ad 100644 --- a/src/style/index.less +++ b/src/style/index.less @@ -1,5 +1,6 @@ .import() { /* 导入全部涉及到变量的样式文件 */ + @import (multiple) './cpns/clip-card.less'; @import (multiple) './cpns/clip-float-btn.less'; @import (multiple) './cpns/clip-full-data.less'; @import (multiple) './cpns/clip-item-list.less'; diff --git a/src/views/Main.vue b/src/views/Main.vue index f5d6094..4097a08 100644 --- a/src/views/Main.vue +++ b/src/views/Main.vue @@ -1,5 +1,6 @@