From 0f9b00b525100343408b7e3a628e29c5ac6d316f Mon Sep 17 00:00:00 2001 From: jiaming743 <743192023@qq.com> Date: Thu, 29 Aug 2019 17:47:14 +0800 Subject: [PATCH] Adaptive display unit --- src/components/capsuleChart/src/main.vue | 25 +++++++++++------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/src/components/capsuleChart/src/main.vue b/src/components/capsuleChart/src/main.vue index f8eaf56..e30bcc0 100644 --- a/src/components/capsuleChart/src/main.vue +++ b/src/components/capsuleChart/src/main.vue @@ -11,18 +11,16 @@ class="capsule-item" v-for="(capsule, index) in capsuleLength" :key="index" - :style="`width: calc(100% - ${mergedConfig.unit ? 30 : 0}px)`" >