From 09854b2f5a322a77e59c2f18b65da6e521a601cc Mon Sep 17 00:00:00 2001 From: zhaoxinyu Date: Fri, 30 Dec 2022 16:58:57 +0800 Subject: [PATCH] add menu d.ts path Signed-off-by: zhaoxinyu Change-Id: I5324f7010569093805b6858f412bc1bc27d5488d --- api/@internal/component/ets/index-full.d.ts | 3 +++ api/@internal/component/ets/menu_item.d.ts | 4 ++-- build-tools/collect_application_api/tsconfig.json | 12 ++++++++++++ 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/api/@internal/component/ets/index-full.d.ts b/api/@internal/component/ets/index-full.d.ts index fe915f8660..d8d4e84059 100644 --- a/api/@internal/component/ets/index-full.d.ts +++ b/api/@internal/component/ets/index-full.d.ts @@ -54,6 +54,9 @@ /// /// /// +/// +/// +/// /// /// /// diff --git a/api/@internal/component/ets/menu_item.d.ts b/api/@internal/component/ets/menu_item.d.ts index f241ce1bc5..7bcf4f78b8 100644 --- a/api/@internal/component/ets/menu_item.d.ts +++ b/api/@internal/component/ets/menu_item.d.ts @@ -70,13 +70,13 @@ * Whether the relevant check icon is displayed when a menu item is selected. * @since 9 */ - selectIcon(value: boolean); + selectIcon(value: boolean): MenuItemAttribute; /** * Triggers a callback when a menu item is selected or unchecked. * @param callback */ - onChange(callback: (selected: boolean) => void); + onChange(callback: (selected: boolean) => void): MenuItemAttribute; } declare const MenuItem: MenuItemInterface; diff --git a/build-tools/collect_application_api/tsconfig.json b/build-tools/collect_application_api/tsconfig.json index 214f5851ed..4c80832a70 100644 --- a/build-tools/collect_application_api/tsconfig.json +++ b/build-tools/collect_application_api/tsconfig.json @@ -45,6 +45,8 @@ "LoadingProgress", "Marquee", "Menu", + "MenuItem", + "MenuItemGroup", "Navigation", "Navigator", "Option", @@ -291,6 +293,16 @@ "type": "MenuAttribute", "instance": "MenuInstance" }, + { + "name": "MenuItem", + "type": "MenuItemAttribute", + "instance": "MenuItemInstance" + }, + { + "name": "MenuItemGroup", + "type": "MenuItemGroupAttribute", + "instance": "MenuItemGroupInstance" + }, { "name": "Navigation", "type": "NavigationAttribute", -- Gitee