diff --git a/api/@internal/component/ets/enums.d.ts b/api/@internal/component/ets/enums.d.ts index 518e2efabf457a584b22d6b2321ea1a507f7b164..189dda9e8eaf443e4c90e660e2ef8596e5e749b1 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 e58a4765bcee9799274ca04d52c879227b7de0d0..dc50810a246fa7971f9d5ced74238cc3547aad6d 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.