From 3bdc31e0012bdf6046d1d3987f86bc466642e3b1 Mon Sep 17 00:00:00 2001 From: Cuecuexiaoyu Date: Wed, 16 Jul 2025 19:30:56 +0800 Subject: [PATCH] add BaseCustomDialog transform Signed-off-by: Cuecuexiaoyu Change-Id: I91765e0bcc67c4cd98088fcbd4d527744bbc79b0 --- arkui-plugins/ui-plugins/utils.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/arkui-plugins/ui-plugins/utils.ts b/arkui-plugins/ui-plugins/utils.ts index 5eb026379..5e541ac7f 100644 --- a/arkui-plugins/ui-plugins/utils.ts +++ b/arkui-plugins/ui-plugins/utils.ts @@ -212,7 +212,8 @@ export function collectCustomComponentScopeInfo( if ( isCustomComponentClassDecl && definition.ident.name !== CustomComponentNames.COMPONENT_CLASS_NAME && - definition.ident.name !== CustomComponentNames.COMPONENT_V2_CLASS_NAME + definition.ident.name !== CustomComponentNames.COMPONENT_V2_CLASS_NAME && + definition.ident.name !== CustomComponentNames.BASE_CUSTOM_DIALOG_NAME ) { return undefined; } @@ -275,7 +276,9 @@ export function isCustomComponentClass(node: arkts.ClassDeclaration, scopeInfo: const name: string = node.definition.ident.name; if (scopeInfo.isDecl) { return ( - name === CustomComponentNames.COMPONENT_CLASS_NAME || name === CustomComponentNames.COMPONENT_V2_CLASS_NAME + name === CustomComponentNames.COMPONENT_CLASS_NAME || + name === CustomComponentNames.COMPONENT_V2_CLASS_NAME || + name === CustomComponentNames.BASE_CUSTOM_DIALOG_NAME ); } return name === scopeInfo.name; -- Gitee