From f296dea796240bfd9b785650adc70fd0cc03a0e1 Mon Sep 17 00:00:00 2001 From: cipchk Date: Thu, 11 Jan 2024 17:26:00 +0800 Subject: [PATCH] feat(abc:page-header): support standalone --- .../abc/onboarding/onboarding.component.ts | 3 ++- packages/abc/page-header/demo/image.md | 4 ++-- packages/abc/page-header/demo/simple.md | 4 ++-- packages/abc/page-header/demo/standard.md | 4 ++-- packages/abc/page-header/demo/structure.md | 4 ++-- packages/abc/page-header/index.en-US.md | 2 +- packages/abc/page-header/index.zh-CN.md | 2 +- .../page-header/page-header.component.html | 2 +- .../abc/page-header/page-header.component.ts | 19 +++++++++++++++++-- .../abc/page-header/page-header.module.ts | 4 ++-- 10 files changed, 32 insertions(+), 16 deletions(-) diff --git a/packages/abc/onboarding/onboarding.component.ts b/packages/abc/onboarding/onboarding.component.ts index f6eff2d17..60b442553 100644 --- a/packages/abc/onboarding/onboarding.component.ts +++ b/packages/abc/onboarding/onboarding.component.ts @@ -16,6 +16,7 @@ import { } from '@angular/core'; import { NzButtonComponent } from 'ng-zorro-antd/button'; +import { NzNoAnimationDirective } from 'ng-zorro-antd/core/no-animation'; import { NzStringTemplateOutletDirective } from 'ng-zorro-antd/core/outlet'; import type { NzSafeAny } from 'ng-zorro-antd/core/types'; import { NzPopoverDirective } from 'ng-zorro-antd/popover'; @@ -44,7 +45,7 @@ interface OnboardingLightData { changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, standalone: true, - imports: [NzPopoverDirective, NzStringTemplateOutletDirective, NzButtonComponent] + imports: [NzPopoverDirective, NzStringTemplateOutletDirective, NzButtonComponent, NzNoAnimationDirective] }) export class OnboardingComponent implements OnDestroy, AfterViewInit { private time: NzSafeAny; diff --git a/packages/abc/page-header/demo/image.md b/packages/abc/page-header/demo/image.md index 804d62086..2474e8999 100644 --- a/packages/abc/page-header/demo/image.md +++ b/packages/abc/page-header/demo/image.md @@ -11,7 +11,7 @@ bg: f2f4f5 ```ts import { Component } from '@angular/core'; -import { PageHeaderModule } from '@delon/abc/page-header'; +import { PageHeaderComponent } from '@delon/abc/page-header'; import { NzBreadCrumbModule } from 'ng-zorro-antd/breadcrumb'; @Component({ @@ -50,7 +50,7 @@ import { NzBreadCrumbModule } from 'ng-zorro-antd/breadcrumb'; `, standalone: true, - imports: [PageHeaderModule, NzBreadCrumbModule] + imports: [PageHeaderComponent, NzBreadCrumbModule] }) export class DemoComponent {} ``` diff --git a/packages/abc/page-header/demo/simple.md b/packages/abc/page-header/demo/simple.md index f8363ed61..9a2915f5e 100644 --- a/packages/abc/page-header/demo/simple.md +++ b/packages/abc/page-header/demo/simple.md @@ -9,7 +9,7 @@ bg: f2f4f5 ```ts import { Component } from '@angular/core'; -import { PageHeaderModule } from '@delon/abc/page-header'; +import { PageHeaderComponent } from '@delon/abc/page-header'; import { NzBreadCrumbModule } from 'ng-zorro-antd/breadcrumb'; @Component({ @@ -26,7 +26,7 @@ import { NzBreadCrumbModule } from 'ng-zorro-antd/breadcrumb'; `, standalone: true, - imports: [PageHeaderModule, NzBreadCrumbModule] + imports: [PageHeaderComponent, NzBreadCrumbModule] }) export class DemoComponent {} ``` diff --git a/packages/abc/page-header/demo/standard.md b/packages/abc/page-header/demo/standard.md index dff67f6a6..012862eb5 100644 --- a/packages/abc/page-header/demo/standard.md +++ b/packages/abc/page-header/demo/standard.md @@ -11,7 +11,7 @@ bg: f2f4f5 ```ts import { Component, inject } from '@angular/core'; -import { PageHeaderModule } from '@delon/abc/page-header'; +import { PageHeaderComponent } from '@delon/abc/page-header'; import { SVModule } from '@delon/abc/sv'; import { NzBreadCrumbModule } from 'ng-zorro-antd/breadcrumb'; import { NzButtonModule } from 'ng-zorro-antd/button'; @@ -90,7 +90,7 @@ import { NzTabsModule } from 'ng-zorro-antd/tabs'; `, standalone: true, imports: [ - PageHeaderModule, + PageHeaderComponent, NzBreadCrumbModule, NzButtonModule, NzDropDownModule, diff --git a/packages/abc/page-header/demo/structure.md b/packages/abc/page-header/demo/structure.md index cc889b3ca..617ebd752 100644 --- a/packages/abc/page-header/demo/structure.md +++ b/packages/abc/page-header/demo/structure.md @@ -11,7 +11,7 @@ bg: f2f4f5 ```ts import { Component, ViewEncapsulation } from '@angular/core'; -import { PageHeaderModule } from '@delon/abc/page-header'; +import { PageHeaderComponent } from '@delon/abc/page-header'; import { NzTabsModule } from 'ng-zorro-antd/tabs'; @Component({ @@ -62,7 +62,7 @@ import { NzTabsModule } from 'ng-zorro-antd/tabs'; ], encapsulation: ViewEncapsulation.Emulated, standalone: true, - imports: [PageHeaderModule, NzTabsModule] + imports: [PageHeaderComponent, NzTabsModule] }) export class DemoComponent {} ``` diff --git a/packages/abc/page-header/index.en-US.md b/packages/abc/page-header/index.en-US.md index 84bfa62d3..79eba83b0 100644 --- a/packages/abc/page-header/index.en-US.md +++ b/packages/abc/page-header/index.en-US.md @@ -10,7 +10,7 @@ The page header is used to declare the subject of the page and contains the most ## API -### page-header +### page-header:standalone | Property | Description | Type | Default | Global Config | |----------|-------------|------|---------|---------------| diff --git a/packages/abc/page-header/index.zh-CN.md b/packages/abc/page-header/index.zh-CN.md index 47097d187..95bef90e6 100644 --- a/packages/abc/page-header/index.zh-CN.md +++ b/packages/abc/page-header/index.zh-CN.md @@ -10,7 +10,7 @@ module: import { PageHeaderModule } from '@delon/abc/page-header'; ## API -### page-header +### page-header:standalone | 成员 | 说明 | 类型 | 默认值 | 全局配置 | |----|----|----|-----|------| diff --git a/packages/abc/page-header/page-header.component.html b/packages/abc/page-header/page-header.component.html index f92a86931..75d9f2e86 100644 --- a/packages/abc/page-header/page-header.component.html +++ b/packages/abc/page-header/page-header.component.html @@ -7,7 +7,7 @@ }