From 0021da419744ff48eb4f3ac7522198915459439a Mon Sep 17 00:00:00 2001 From: CoderMikeHe <491273090@qq.com> Date: Mon, 3 Jun 2019 18:22:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=99=BB=E9=99=86=E7=95=8C?= =?UTF-8?q?=E9=9D=A2=E7=9A=84=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 4 +- src/assets/css/wechat.css | 59 ++++++++ src/assets/images/input/input_clear.png | Bin 0 -> 573 bytes src/main.js | 37 +++++- src/views/discover/moments/Moments.vue | 53 ++------ src/views/discover/moments/css/moments.css | 34 +++-- src/views/login/CurrentLogin.vue | 148 ++++++++++++--------- src/views/login/Login.vue | 15 +++ 8 files changed, 222 insertions(+), 128 deletions(-) create mode 100644 src/assets/images/input/input_clear.png create mode 100644 src/views/login/Login.vue diff --git a/src/App.vue b/src/App.vue index 49dac0c..11d7cc4 100644 --- a/src/App.vue +++ b/src/App.vue @@ -5,7 +5,9 @@ :enter-active-class="enterAnimate" :leave-active-class="leaveAnimate" > - + + + diff --git a/src/assets/css/wechat.css b/src/assets/css/wechat.css index bcea7e6..6e4e4ce 100644 --- a/src/assets/css/wechat.css +++ b/src/assets/css/wechat.css @@ -96,3 +96,62 @@ } /* --------👆 mh-cell End 👆--------*/ + + +/* --------👇 input Start 👇--------*/ +.mh-input__wrapper { + display: -webkit-box; + display: -webkit-flex; + display: flex; + -webkit-align-items: center; + align-items: center; + -webkit-justify-content: center; + justify-content: center; +} +.mh-input__wrapper .mh-input{ + width: 100%; + border: 0; + outline: 0; + -webkit-appearance: none; + background-color: transparent; + font-size: inherit; + color: inherit; + height: 40px; + line-height: 40px; + -webkit-appearance: searchfield; + box-sizing: border-box; + /* 🔥 CSS设置input的光标颜色 + * - [用css改变input光标的3种方法](https://blog.csdn.net/qq_39234685/article/details/83180468) + */ + caret-color:rgb(10, 193, 42); +} + +.mh-input__wrapper .mh-input::-webkit-outer-spin-button, +.mh-input__wrapper .mh-input::-webkit-inner-spin-button { + -webkit-appearance: none; + margin: 0; +} + +/* - [css居中布局方法](https://www.w3cschool.cn/css/css-center.html) */ +.mh-input__wrapper .mh-input-clear { + width: 30px; + height: 30px; + display: none; + position: relative; +} + +.mh-input__wrapper .mh-input-clear .mh-input-clear__clear { + width: 20px; + height: 20px; + left: 50%; + top: 50%; + transform: translate(-50%, -50%); + -webkit-transform: translate(-50%, -50%); + position: absolute; +} + +/* - [使用CSS3 实现input框旁边的清空input内容按钮的显隐](https://www.cnblogs.com/benbendu/p/7055645.html) */ +.mh-input__wrapper .mh-input:valid + .mh-input-clear { + display: block; +} +/* --------👆 input End 👆--------*/ \ No newline at end of file diff --git a/src/assets/images/input/input_clear.png b/src/assets/images/input/input_clear.png new file mode 100644 index 0000000000000000000000000000000000000000..0e88de72c5ee7788fb6438c5ce291678f94fa034 GIT binary patch literal 573 zcmV-D0>b@?P)z%oBiSRo`AXPLqyw=6p#!KuJJ1sF`IZ|qWFg4y-tOrc zUf3rR=4QT`@0%ZlBR@QHd^iE9Re|Af*j}&Kw*b%qfHnYJSqk3);1d8ALWucjG~(Y; zFA9JS{0IOKQC8JR{xf?$iv3>N+2SG0};)&*4=%_E&%U{cp2b-2ZHUG+eqCkl~O!KcdrB> z%QA`--v$KRMh4%wRZ9Jc`D+0Cs%{j3lrl)c0q5isrlXQ!3Z#^kBJ>E(+Z_k{Axeba zHVmje21K|Gs|FDf^=*gv)-o@hrEh^n4WhcLj_eqo0db?49oj1Jm2(ywAYk{E=XpDN z8L_h_*D(>@Xss8{{ZfVes0Yawn5_hht1ca1MAY?VzV#ox3E41B)ALrVHHp0uSa8Oe zw2`B9pCT*H4rgYsrEB~DlCK^_oCzToji2QWb%N7P6a^;$|5<@=A(lBXGNc$800000 LNkvXXu0mjfXGi&^ literal 0 HcmV?d00001 diff --git a/src/main.js b/src/main.js index aea3cad..625d00a 100644 --- a/src/main.js +++ b/src/main.js @@ -143,7 +143,7 @@ new Vue({ // - [JavaScript数组去重(12种方法,史上最全)](https://segmentfault.com/a/1190000016418021) // 👉行内元素和块状元素 -// - [https://blog.csdn.net/cc18868876837/article/details/78060347](常用的块级元素(block)、行内元素(inline)以及行内块元素(inline-block)的解析) +// - [常用的块级元素(block)、行内元素(inline)以及行内块元素(inline-block)的解析](https://blog.csdn.net/cc18868876837/article/details/78060347) // - [Html中行内元素有哪些?块级元素有哪些?](https://www.cnblogs.com/Jackie0714/p/4923639.html) // - [HTML哪些是块级元素,哪些是行内元素](https://www.cnblogs.com/yxm440/p/7667539.html) @@ -174,6 +174,41 @@ new Vue({ // - [移动端长按事件](https://www.cnblogs.com/imsomnus/p/6429074.html) // - [Js实现移动端长按事件](https://www.jianshu.com/p/11bb9629aa09) +// 👉 Vue事件 +// - [Vue2.0学习笔记:Vue事件修饰符的使用](https://www.cnblogs.com/xuqp/p/9406971.html) + +// 👉 vue路由高级语法糖 +// - [vue路由高级语法糖](https://www.cnblogs.com/lhl66/p/8665042.html) + +// 👉 localStorage & sessionStorage +// - [JS 详解 Cookie、 LocalStorage 与 SessionStorage](https://www.cnblogs.com/minigrasshopper/p/8064367.html) +// - [Window​.session​Storage](https://developer.mozilla.org/zh-CN/docs/Web/API/Window/sessionStorage) +// - [HTML5 sessionStorage会话存储](https://www.cnblogs.com/polk6/p/5512979.html) + +// 👉 浅析CSS——元素重叠及position定位的z-index顺序 +// - [浅析CSS——元素重叠及position定位的z-index顺序](https://www.cnblogs.com/xcsn/p/4664404.html) + +// 👉 Body & Html 高度 +// - [关于html与body的高度问题](https://www.cnblogs.com/xiaoyuersdch/p/9156240.html) +// - [Html设置html与body元素高度问题](https://www.cnblogs.com/qlqwjy/p/7284365.html) +// - [CSS之BODY高度问题](https://www.jianchuankeji.com/blog/archives/462) + +// 👉 文本超过两行展示‘全文’ +// - [Vue 中文本内容超出规定行数后展开收起的处理](https://www.jianshu.com/p/09154ebf5f44) +// - [判断文字数量超过2行 添加展开按钮 未超过两行则不显示按钮 溢出部分显示省略号](https://www.jianshu.com/p/9d76d4a75e6f) +// - [H5超出文字显示“展开全部”按钮](https://segmentfault.com/q/1010000011700305?sort=created) + +// 👉 vue常用事件之v-on:click 以及事件对象,事件冒泡,事件默认行为 +// - [vue常用事件之v-on:click 以及事件对象,事件冒泡,事件默认行为](https://blog.csdn.net/qq_34645412/article/details/79100669) + +// 👉 get​Computed​Style +// - [Window​.get​Computed​Style()](https://developer.mozilla.org/zh-CN/docs/Web/API/Window/getComputedStyle) +// - [JS使用getComputedStyle()方法获取CSS属性值](https://www.cnblogs.com/tongzhou/p/6432807.html) +// - [原生JS getComputedStyle的方法解析](https://www.imooc.com/article/27812) + +// 👉 一字一句的搞懂vue-cli之vue webpack template配置 +// - [一字一句的搞懂vue-cli之vue webpack template配置](https://segmentfault.com/a/1190000012472099) + /// --------🔥 Third Lib 🔥------------- diff --git a/src/views/discover/moments/Moments.vue b/src/views/discover/moments/Moments.vue index d5a15e6..292de90 100644 --- a/src/views/discover/moments/Moments.vue +++ b/src/views/discover/moments/Moments.vue @@ -1,7 +1,7 @@ // 朋友圈