From 7631012a733b03c0a322b2afce55516f134f65a7 Mon Sep 17 00:00:00 2001 From: Yao yuchi Date: Thu, 21 Apr 2022 14:05:19 +0800 Subject: [PATCH] =?UTF-8?q?grid=20d.ts=20layout=20direction=20=E5=B1=9E?= =?UTF-8?q?=E6=80=A7=E8=BD=AC=E7=A7=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Yao yuchi --- api/@internal/component/ets/enums.d.ts | 27 ++++++++++++++++++++++ api/@internal/component/ets/grid.d.ts | 31 ++------------------------ 2 files changed, 29 insertions(+), 29 deletions(-) diff --git a/api/@internal/component/ets/enums.d.ts b/api/@internal/component/ets/enums.d.ts index 518e2efabf..189dda9e8e 100644 --- a/api/@internal/component/ets/enums.d.ts +++ b/api/@internal/component/ets/enums.d.ts @@ -1415,3 +1415,30 @@ declare enum Placement { */ BottomRight, } + +/** + * The enum of property layoutDirection + * @since 8 + */ + declare enum LayoutDirection { + /** + * The row direction. + * @since 8 + */ + Row, + /** + * The column direction. + * @since 8 + */ + Column, + /** + * The row reverse direction. + * @since 8 + */ + RowReverse, + /** + * The column reverse direction. + * @since 8 + */ + ColumnReverse, +} \ No newline at end of file diff --git a/api/@internal/component/ets/grid.d.ts b/api/@internal/component/ets/grid.d.ts index e58a4765bc..dc50810a24 100644 --- a/api/@internal/component/ets/grid.d.ts +++ b/api/@internal/component/ets/grid.d.ts @@ -25,33 +25,6 @@ interface GridInterface { (scroller?: Scroller): GridAttribute; } -/** - * The enum of property layoutDirection - * @since 8 - */ -declare enum GridDirection { - /** - * The row direction. - * @since 8 - */ - Row, - /** - * The column direction. - * @since 8 - */ - Column, - /** - * The row reverse direction. - * @since 8 - */ - RowReverse, - /** - * The column reverse direction. - * @since 8 - */ - ColumnReverse, -} - /** * Defines the grid attibute functions. * @since 7 @@ -142,10 +115,10 @@ declare class GridAttribute extends CommonMethod { cellLength(value: number): GridAttribute; /** - * control GridDirection of the grid. + * control LayoutDirection of the grid. * @since 8 */ - layoutDirection(value: GridDirection): GridAttribute; + layoutDirection(value: LayoutDirection): GridAttribute; /** * control if the grid supports animation. -- Gitee