From 2bf6de5b81a51a954426e3ffa2d10cd90c42b05a Mon Sep 17 00:00:00 2001 From: huiqiangdev Date: Fri, 20 Jun 2025 17:14:22 +0800 Subject: [PATCH] add lazyVGrid Signed-off-by: huiqiangdev --- .../component/ets/lazy_grid_layout.d.ts | 31 +++++++++++++------ api/@ohos.arkui.component.d.ets | 1 + 2 files changed, 23 insertions(+), 9 deletions(-) diff --git a/api/@internal/component/ets/lazy_grid_layout.d.ts b/api/@internal/component/ets/lazy_grid_layout.d.ts index cea5094456..cd34f5b294 100644 --- a/api/@internal/component/ets/lazy_grid_layout.d.ts +++ b/api/@internal/component/ets/lazy_grid_layout.d.ts @@ -18,6 +18,12 @@ * @kit ArkUI */ + +/*** if arkts 1.2 */ +import { CommonMethod } from './common'; +import { LengthMetrics } from '../Graphics'; +/*** endif */ + /** * Defines the lazy vertical grid layout component. * @@ -25,7 +31,8 @@ * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 18 + * @since arkts {'1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ interface LazyVGridLayoutInterface { /** @@ -35,7 +42,8 @@ interface LazyVGridLayoutInterface { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 18 + * @since arkts {'1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ (): LazyVGridLayoutAttribute; } @@ -47,30 +55,33 @@ interface LazyVGridLayoutInterface { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 18 + * @since arkts {'1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ declare class LazyGridLayoutAttribute extends CommonMethod { /** * The spacing between rows. * - * @param { Length } value + * @param { LengthMetrics } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 18 + * @since arkts {'1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ rowsGap(value: LengthMetrics): T; /** * The spacing between columns. * - * @param { Length } value + * @param { LengthMetrics } value * @returns { T } * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 18 + * @since arkts {'1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ columnsGap(value: LengthMetrics): T; } @@ -82,7 +93,8 @@ declare class LazyGridLayoutAttribute extends CommonMethod { * @syscap SystemCapability.ArkUI.ArkUI.Full * @crossplatform * @atomicservice - * @since 18 + * @since arkts {'1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ declare class LazyVGridLayoutAttribute extends LazyGridLayoutAttribute { /** @@ -93,7 +105,8 @@ declare class LazyVGridLayoutAttribute extends LazyGridLayoutAttribute