From 56cf1b98d331c88eb6b0de8d03a85ce06f19f901 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期六, 22 一月 2022 00:23:01 +0800
Subject: [PATCH] 2022-01-22

---
 src/tabviews/custom/components/card/cardcellList/index.jsx |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/tabviews/custom/components/card/cardcellList/index.jsx b/src/tabviews/custom/components/card/cardcellList/index.jsx
index 5608b31..c564e14 100644
--- a/src/tabviews/custom/components/card/cardcellList/index.jsx
+++ b/src/tabviews/custom/components/card/cardcellList/index.jsx
@@ -335,8 +335,8 @@
           val = Math.abs(val)
         }
 
-        if (card.col && card.col.type === 'number') {
-          let decimal = card.col.decimal || 0
+        if (typeof(card.decimal) === 'number') {
+          let decimal = card.decimal
 
           if (card.format === 'percent') {
             decimal = decimal - 2

--
Gitblit v1.8.0