From 8f8530ec5b08463914f3b9d37627ae6c395dd0b6 Mon Sep 17 00:00:00 2001 From: yangfan Date: Mon, 22 Aug 2022 23:50:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=9F=E5=BC=83=E6=97=A7GridContainer?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: yangfan Change-Id: I81766dc4266a15acc890a4335734e0219447bb27 --- api/@internal/component/ets/common.d.ts | 1 + api/@internal/component/ets/grid_container.d.ts | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/api/@internal/component/ets/common.d.ts b/api/@internal/component/ets/common.d.ts index 84168d25b1..b24804f718 100644 --- a/api/@internal/component/ets/common.d.ts +++ b/api/@internal/component/ets/common.d.ts @@ -1696,6 +1696,7 @@ declare class CommonMethod { /** * Sets the number of occupied columns and offset columns for a specific device width type. * @since 7 + * @deprecated since 9 */ useSizeType(value: { xs?: number | { span: number; offset: number }; diff --git a/api/@internal/component/ets/grid_container.d.ts b/api/@internal/component/ets/grid_container.d.ts index 28203fa47f..5c1cf27b75 100644 --- a/api/@internal/component/ets/grid_container.d.ts +++ b/api/@internal/component/ets/grid_container.d.ts @@ -16,6 +16,7 @@ /** * Defines the size type. * @since 7 + * @deprecated since 9 */ declare enum SizeType { /** @@ -52,29 +53,34 @@ declare enum SizeType { /** * Defines the options of GridContainer. * @since 7 + * @deprecated since 9 */ declare interface GridContainerOptions { /** * Sets the total number of columns in the current layout. * @since 7 + * @deprecated since 9 */ columns?: number | "auto"; /** * Select the device width type. * @since 7 + * @deprecated since 9 */ sizeType?: SizeType; /** * Grid layout column spacing. * @since 7 + * @deprecated since 9 */ gutter?: number | string; /** * Spacing on both sides of the grid layout. * @since 7 + * @deprecated since 9 */ margin?: number | string; } @@ -82,11 +88,13 @@ declare interface GridContainerOptions { /** * Defines the GridContainer component. * @since 7 + * @deprecated since 9 */ interface GridContainerInterface { /** * Defines the constructor of GridContainer. * @since 7 + * @deprecated since 9 */ (value?: GridContainerOptions): GridContainerAttribute; } @@ -94,6 +102,7 @@ interface GridContainerInterface { /** * Defines the grid container attribute from inheritance Column * @since 7 + * @deprecated since 9 */ declare class GridContainerAttribute extends ColumnAttribute {} -- Gitee