From b460410b683f40e508e638e0e724d923906997d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=87=E5=A4=A9?= Date: Sat, 27 Jan 2018 00:47:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96tips=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/js/datepicker/index.js | 2 +- src/js/datepicker/style.scss | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/datepicker/index.js b/src/js/datepicker/index.js index 4ba4d45..517893c 100644 --- a/src/js/datepicker/index.js +++ b/src/js/datepicker/index.js @@ -315,11 +315,11 @@ export default Anot.component('datepicker', { skip: ['max', 'min', 'last', 'timer'], watch: { tips: function(val) { - clearTimeout(this.timer) if (!val) { return } this.timer = setTimeout(() => { + clearTimeout(this.timer) this.tips = '' }, 1500) }, diff --git a/src/js/datepicker/style.scss b/src/js/datepicker/style.scss index 0323f48..53863d9 100644 --- a/src/js/datepicker/style.scss +++ b/src/js/datepicker/style.scss @@ -101,7 +101,7 @@ .cancel {background:nth($cp, 1);} } - dd.tips { position:absolute; z-index:65535; left:25%; top:40%; width:50%; height:30px; line-height:30px; background:rgba(0, 0, 0, 0.7); color:#fff; font-size:12px; text-align:center; } + dd.tips { position:absolute; z-index:65535; left:25%; top:40%; width:50%; height:30px; line-height:28px; background:#fffbed;color:nth($co, 3);border:1px solid nth($co, 1);border-radius:5px; font-size:12px; text-align:center; } } }