From 2031a460f6c0827fe80f8c625dd98333d1631d2f Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 08 五月 2020 22:10:48 +0800 Subject: [PATCH] 2020-05-08 --- src/tabviews/zshare/normalTable/index.jsx | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/src/tabviews/zshare/normalTable/index.jsx b/src/tabviews/zshare/normalTable/index.jsx index 8cc455f..b6bf7ec 100644 --- a/src/tabviews/zshare/normalTable/index.jsx +++ b/src/tabviews/zshare/normalTable/index.jsx @@ -179,6 +179,10 @@ } } } + + if (item.format === 'percent') { + content = content * 100 + } content = content.toFixed(item.decimal || 0) @@ -291,6 +295,10 @@ } if (content !== '') { + if (item.format === 'percent') { + content = content * 100 + } + content = content.toFixed(col.decimal || 0) if (col.format === 'thdSeparator') { -- Gitblit v1.8.0