From 18c684ce1e2a5045890fe083d0e7353a6daaffd4 Mon Sep 17 00:00:00 2001 From: zengyue Date: Thu, 28 Dec 2023 16:55:49 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BF=AE=E6=94=B9=20areaView=20?= =?UTF-8?q?=E7=9A=84points=20=E7=9A=84=E9=A1=BA=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/f2/src/components/area/withArea.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/f2/src/components/area/withArea.tsx b/packages/f2/src/components/area/withArea.tsx index a2ec6b77b..69d815d75 100644 --- a/packages/f2/src/components/area/withArea.tsx +++ b/packages/f2/src/components/area/withArea.tsx @@ -47,8 +47,8 @@ export default (View) => { bottomPoints.reverse(); child.points = points.concat(bottomPoints); } else { - points.push({ x: points[points.length - 1].x, y: baseY }); - points.push({ x: points[0].x, y: baseY }); + points.unshift({ x: points[0].x, y: baseY }); + points.unshift({ x: points[points.length - 1].x, y: baseY }); } } }