From 52f825c87f7f185a2fa2cd3aaee9cc6e84fe4bd1 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Wed, 31 Mar 2021 17:19:40 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E6=94=B9chart=E6=AF=94?= =?UTF-8?q?=E8=BE=83=E7=9A=84=E5=8A=A8=E7=94=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/common/multipleTime.vue | 124 +++++++++--------- 1 file changed, 65 insertions(+), 59 deletions(-) diff --git a/nezha-fronted/src/components/common/multipleTime.vue b/nezha-fronted/src/components/common/multipleTime.vue index a5c6784ad..c318462b9 100644 --- a/nezha-fronted/src/components/common/multipleTime.vue +++ b/nezha-fronted/src/components/common/multipleTime.vue @@ -60,7 +60,13 @@ } .compare-box{ line-height: 50px; - margin-right: 20px; + } + .compare-box .nz-icon-compare{ + border-right: none; + } + .calendar{ + width: 125px; + overflow: hidden; } .nz-icon-compare{ background: #FFFFFF; @@ -69,19 +75,17 @@ padding: 6px 8px; } .multiple-time-datepicker-enter-active { - transform-origin: 100% 50%; animation: bounce-in .6s; } .multiple-time-datepicker-leave-active { - transform-origin: 100% 50%; animation: bounce-in .6s reverse; } @keyframes bounce-in { 0% { - transform: scaleX(0); + width: 0; } 100% { - transform: scale(1); + width: 125px; } } @@ -109,59 +113,59 @@
-
- - - - - - - - + + +
@@ -428,10 +432,12 @@ export default { this.showDropdown = !this.showDropdown if (!this.showDropdown) { this.searchTime = [] - this.showTime = this.nowTimeType = { - id: 12, - text: this.$t('dashboard.panel.noDate') - } + setTimeout(() => { + this.showTime = this.nowTimeType = { + id: 12, + text: this.$t('dashboard.panel.noDate') + } + }, 600) this.$emit('change', this.searchTime) } else { this.searchTime = []