From 770a34432c065ffc8c6b5e250a9c40a3d2ae9cd8 Mon Sep 17 00:00:00 2001 From: yan-shuifeng Date: Mon, 21 Feb 2022 10:41:38 +0800 Subject: [PATCH] add apis for listItem and bindPopup Signed-off-by: yan-shuifeng Change-Id: I1566880e05dfa44b041908305875ca6b0b700300 --- api/@internal/component/ets/common.d.ts | 14 ++++++++++++++ api/@internal/component/ets/list_item.d.ts | 12 +++++++++--- 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/api/@internal/component/ets/common.d.ts b/api/@internal/component/ets/common.d.ts index 77f868468c..879ff7ef5d 100644 --- a/api/@internal/component/ets/common.d.ts +++ b/api/@internal/component/ets/common.d.ts @@ -677,6 +677,13 @@ interface PopupOption { * @since 7 */ onStateChange?: (event: { isVisible: boolean }) => void; + + /** + * Defines whether popup use gaussian blur. + * The defalut value is false. + * @since 8 + */ + useBlur?: boolean; } interface CustomPopupOption { @@ -721,6 +728,13 @@ interface CustomPopupOption { * @since 8 */ onStateChange?: (event: { isVisible: boolean }) => void; + + /** + * Defines whether popup use gaussian blur. + * The defalut value is false. + * @since 8 + */ + useBlur?: boolean; } /** diff --git a/api/@internal/component/ets/list_item.d.ts b/api/@internal/component/ets/list_item.d.ts index 5aca6bdc29..701c32930a 100644 --- a/api/@internal/component/ets/list_item.d.ts +++ b/api/@internal/component/ets/list_item.d.ts @@ -64,8 +64,15 @@ declare enum EditMode { } /** - * @since 7 + * Defines the select style of list item. + * @since 8 */ +interface ListItemSelectStyle { + /** + * Defines the select icon src. + */ + icon: ResourceStr | PixelMap; +} /** * Values in the list @@ -117,7 +124,7 @@ declare class ListItemAttribute extends CommonMethod { * Called when judging whether it is selectable. * @since 8 */ - selectable(value: boolean): ListItemAttribute; + selectable(value: boolean, style?: ListItemSelectStyle): ListItemAttribute; /** * Called when the listItem is selected. @@ -131,4 +138,3 @@ declare class ListItemAttribute extends CommonMethod { */ declare const ListItemInstance: ListItemAttribute; declare const ListItem: ListItemInterface; - -- Gitee