From fa7f82b03394bbf2beadf580729437abe8a090eb Mon Sep 17 00:00:00 2001 From: Linzp Date: Mon, 27 Oct 2025 17:16:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=A0=BC=E5=BC=8F=E5=8C=96?= =?UTF-8?q?=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 7c9e096..3549410 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@kne/column-split", - "version": "1.0.0", + "version": "1.0.1", "description": "通过拖动分隔条分配元素占比", "syntax": { "esmodules": true diff --git a/src/index.js b/src/index.js index 5eba095..de7baaf 100644 --- a/src/index.js +++ b/src/index.js @@ -35,7 +35,7 @@ const ColumnSplit = ({ columns = [], className, readOnly, disabled, ...props }) {} ); //修正value最后一个值; - value[last.name] = 1 - otherValue; + value[last.name] = Math.round(100 * (1 - otherValue)) / 100; onChange(value); }} >