diff --git a/arkui-plugins/ui-plugins/utils.ts b/arkui-plugins/ui-plugins/utils.ts index 5eb026379600a7bd3e54b5a41f32073aa7be23d4..5e541ac7fce9671293451058c575fca22971677f 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;