From 4e765f10a9f9c4251ff1515b2c9ee39665cd7758 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E6=B2=90=E5=8D=8E?= <97930508+LiMuhua@users.noreply.github.com> Date: Tue, 23 Aug 2022 22:55:53 +0800 Subject: [PATCH] =?UTF-8?q?doc:=20GridItem=20=E7=9A=84=20h=20=E5=B1=9E?= =?UTF-8?q?=E6=80=A7=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 描述了实际显示高度和其它属性配置之间的关系 指出 高度系数 h 在使用小数倍数时会出现的问题,并更改其值描述 --- website/docs/zh/guide/properties.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/website/docs/zh/guide/properties.md b/website/docs/zh/guide/properties.md index beda637e..0ed09e45 100644 --- a/website/docs/zh/guide/properties.md +++ b/website/docs/zh/guide/properties.md @@ -186,7 +186,10 @@ * type: `Number` * required: `true` -标识栅格元素的初始高度,值为`rowHeight`的倍数。 +标识栅格元素的初始高度,值为`rowHeight`的自然倍数。 +不要使用小数,能正常初始化但同列的其它元素会在拖动时因垂直位移计算不准确而产生错位。 +实际显示高度(showHeight)和`h`、`rowHeight`、`margin`的关系表现为: +showHeight = (margin[1] + rowHeight) * h - margin[1]; (margin[1] 表示垂直边距) ### minW