From e0cac33690a8bfdff2102d03a106c44c36df8ba1 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 18 二月 2022 16:26:28 +0800 Subject: [PATCH] 2022-02-18 --- src/tabviews/custom/components/table/edit-table/normalTable/index.jsx | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/tabviews/custom/components/table/edit-table/normalTable/index.jsx b/src/tabviews/custom/components/table/edit-table/normalTable/index.jsx index 21c8d6d..1464bfa 100644 --- a/src/tabviews/custom/components/table/edit-table/normalTable/index.jsx +++ b/src/tabviews/custom/components/table/edit-table/normalTable/index.jsx @@ -267,6 +267,8 @@ if (col.format === 'percent') { content = content * 100 decimal = decimal > 2 ? decimal - 2 : 0 + } else if (col.format === 'abs') { + content = Math.abs(content) } content = content.toFixed(decimal) -- Gitblit v1.8.0