From 8f0affe6923e3343c08b7d0e5498081854537272 Mon Sep 17 00:00:00 2001 From: jiaming <743192023@qq.com> Date: Wed, 12 Dec 2018 18:46:49 +0800 Subject: [PATCH] optmization --- src/components/capsuleChart/index.vue | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/components/capsuleChart/index.vue b/src/components/capsuleChart/index.vue index ab9726a..d687c8b 100644 --- a/src/components/capsuleChart/index.vue +++ b/src/components/capsuleChart/index.vue @@ -15,11 +15,15 @@
-
{{ unit }}
+
{{ unit }}
单位
+ +
+ +
@@ -56,7 +60,7 @@ export default { const maxValue = Math.max(...capsuleData) - this.capsuleData = capsuleData.map(v => v / maxValue) + this.capsuleData = capsuleData.map(v => maxValue ? v / maxValue : 0) const oneSixth = maxValue / 5 @@ -134,5 +138,13 @@ export default { flex-direction: row; justify-content: space-between; } + + .for-solt { + position: absolute; + width: 100%; + height: 100%; + top: 0px; + left: 0px; + } }