This repository has been archived on 2023-08-30. You can view files and clone it, but cannot push or open issues/pull-requests.
bytedo
/
wcui
Archived
1
0
Fork 0

优化tips样式

old
宇天 2018-01-27 00:47:57 +08:00
parent 0b91299374
commit b460410b68
2 changed files with 2 additions and 2 deletions

View File

@ -315,11 +315,11 @@ export default Anot.component('datepicker', {
skip: ['max', 'min', 'last', 'timer'], skip: ['max', 'min', 'last', 'timer'],
watch: { watch: {
tips: function(val) { tips: function(val) {
clearTimeout(this.timer)
if (!val) { if (!val) {
return return
} }
this.timer = setTimeout(() => { this.timer = setTimeout(() => {
clearTimeout(this.timer)
this.tips = '' this.tips = ''
}, 1500) }, 1500)
}, },

View File

@ -101,7 +101,7 @@
.cancel {background:nth($cp, 1);} .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; }
} }
} }