diff --git a/api/@internal/component/ets/enums.d.ts b/api/@internal/component/ets/enums.d.ts index 518e2efabf457a584b22d6b2321ea1a507f7b164..49b18c3d1e7c4fe11f02a1d801117d448cb76040 100644 --- a/api/@internal/component/ets/enums.d.ts +++ b/api/@internal/component/ets/enums.d.ts @@ -1415,3 +1415,33 @@ declare enum Placement { */ BottomRight, } + +/** + * LayoutOrientation enumeration description + * @since 9 + */ +declare enum LayoutOrientation { + /** + * The main axis is consistent with the row direction as the layout mode. + * @since 9 + */ + Row, + + /** + * The main axis is consistent with the column direction as the layout mode. + * @since 9 + */ + Column, + + /** + * The layout is in the opposite direction to the Row direction. + * @since 9 + */ + RowReverse, + + /** + * Layout in the opposite direction to the column. + * @since 9 + */ + ColumnReverse, +} diff --git a/api/@internal/component/ets/grid.d.ts b/api/@internal/component/ets/grid.d.ts index e58a4765bcee9799274ca04d52c879227b7de0d0..41bf6ed59cc6d68ec7e5889fc6ae65b179a49341 100644 --- a/api/@internal/component/ets/grid.d.ts +++ b/api/@internal/component/ets/grid.d.ts @@ -28,26 +28,31 @@ interface GridInterface { /** * The enum of property layoutDirection * @since 8 + * @deprecated since 9 */ declare enum GridDirection { /** * The row direction. * @since 8 + * @deprecated since 9 */ Row, /** * The column direction. * @since 8 + * @deprecated since 9 */ Column, /** * The row reverse direction. * @since 8 + * @deprecated since 9 */ RowReverse, /** * The column reverse direction. * @since 8 + * @deprecated since 9 */ ColumnReverse, } @@ -142,17 +147,30 @@ declare class GridAttribute extends CommonMethod { cellLength(value: number): GridAttribute; /** - * control GridDirection of the grid. + * control the layout orientation of the grid. * @since 8 */ - layoutDirection(value: GridDirection): GridAttribute; + layoutDirection(value: LayoutOrientation | GridDirection): GridAttribute; /** * control if the grid supports animation. * @since 8 + * @deprecated since 9 */ supportAnimation(value: boolean): GridAttribute; + /** + * control if the grid supports drag animation. + * @since 9 + */ + dragAnimation(value: boolean): GridAttribute; + + /** + * control if the grid supports edge effection. + * @since 9 + */ + edgeEffection(value: EdgeEffect): GridAttribute; + /** * After a listener is bound, the component can be dragged. After the drag occurs, a callback is triggered. * (To be triggered, press and hold for 170 milliseconds (ms)) @@ -189,4 +207,4 @@ declare class GridAttribute extends CommonMethod { } declare const Grid: GridInterface; -declare const GridInstance: GridAttribute; +declare const GridInstance: GridAttribute; \ No newline at end of file