From 16d5c2df9b52bd27d5cf04ecf2ab2a1811b5b07a Mon Sep 17 00:00:00 2001 From: vthinkxie Date: Tue, 25 Jun 2019 11:22:38 +0800 Subject: [PATCH] fix(module:dropdown): fix dropdown change after checked bug --- components/avatar/demo/dynamic.ts | 3 +-- components/breadcrumb/demo/basic.ts | 3 +-- components/breadcrumb/demo/dropdown.ts | 9 ++++----- components/breadcrumb/demo/router.ts | 3 +-- components/breadcrumb/demo/withIcon.ts | 3 +-- components/collapse/demo/accordion.ts | 3 +-- components/collapse/demo/basic.ts | 3 +-- components/collapse/demo/borderless.ts | 3 +-- components/collapse/demo/custom.ts | 3 +-- components/collapse/demo/extra.ts | 3 +-- components/collapse/demo/mix.ts | 3 +-- components/collapse/demo/noarrow.ts | 3 +-- components/comment/demo/editor.ts | 3 +-- components/comment/demo/list.ts | 3 +-- components/comment/demo/nested.ts | 3 +-- components/drawer/nz-drawer.spec.ts | 3 +-- components/dropdown/demo/overlay-visible.ts | 3 +-- components/dropdown/demo/sub-menu.ts | 3 +-- components/dropdown/nz-dropdown.directive.ts | 2 +- components/dropdown/nz-dropdown.spec.ts | 9 +++------ components/empty/demo/basic.ts | 3 +-- components/empty/demo/customize.ts | 3 +-- components/form/doc/index.en-US.md | 1 - components/form/doc/index.zh-CN.md | 1 - components/grid/demo/flex-align.ts | 3 +-- components/grid/demo/flex-order.ts | 3 +-- components/grid/demo/offset.ts | 3 +-- components/grid/demo/responsive-more.ts | 3 +-- components/grid/demo/responsive.ts | 3 +-- components/grid/demo/sort.ts | 3 +-- components/input/demo/textarea.ts | 4 +--- components/menu/demo/recursive.ts | 3 +-- components/menu/demo/sider-current.ts | 3 +-- components/menu/nz-menu.spec.ts | 6 ++---- components/message/demo/close.ts | 3 +-- components/message/demo/duration.ts | 3 +-- components/message/demo/info.ts | 3 +-- components/message/demo/loading.ts | 3 +-- components/modal/demo/async.ts | 3 +-- components/modal/demo/basic.ts | 3 +-- components/modal/demo/confirm-promise.ts | 3 +-- components/modal/demo/footer.ts | 3 +-- components/modal/demo/locale.ts | 3 +-- components/modal/demo/manual.ts | 3 +-- components/modal/nz-modal.spec.ts | 6 ++---- components/notification/demo/basic.ts | 3 +-- components/notification/demo/custom-icon.ts | 3 +-- components/notification/demo/custom-style.ts | 3 +-- components/notification/demo/duration.ts | 3 +-- components/notification/demo/placement.ts | 3 +-- components/notification/demo/update.ts | 3 +-- components/notification/demo/with-btn.ts | 3 +-- components/pagination/demo/basic.ts | 3 +-- components/pagination/demo/changer.ts | 3 +-- components/pagination/demo/controlled.ts | 3 +-- components/pagination/demo/itemRender.ts | 3 +-- components/pagination/demo/jump.ts | 3 +-- components/pagination/demo/mini.ts | 3 +-- components/pagination/demo/more.ts | 3 +-- components/pagination/demo/simple.ts | 3 +-- components/pagination/demo/total.ts | 3 +-- components/rate/demo/disabled.ts | 3 +-- components/table/demo/expand.ts | 3 +-- components/tabs/demo/card.ts | 3 +-- components/tabs/demo/custom-add-trigger.ts | 3 +-- components/tabs/demo/position.ts | 3 +-- components/tabs/demo/size.ts | 3 +-- components/tabs/demo/slide.ts | 3 +-- components/tag/demo/basic.ts | 3 +-- components/tag/demo/hot-tags.ts | 3 +-- components/timeline/demo/color.ts | 3 +-- 71 files changed, 76 insertions(+), 151 deletions(-) diff --git a/components/avatar/demo/dynamic.ts b/components/avatar/demo/dynamic.ts index 5cbc8683732..e252fb5bb2f 100644 --- a/components/avatar/demo/dynamic.ts +++ b/components/avatar/demo/dynamic.ts @@ -15,8 +15,7 @@ const colorList = ['#f56a00', '#7265e6', '#ffbf00', '#00a2ae']; - `, - styles: [] + ` }) export class NzDemoAvatarDynamicComponent { text: string = userList[3]; diff --git a/components/breadcrumb/demo/basic.ts b/components/breadcrumb/demo/basic.ts index 957b5056a0f..a2418e3d29a 100644 --- a/components/breadcrumb/demo/basic.ts +++ b/components/breadcrumb/demo/basic.ts @@ -14,7 +14,6 @@ import { Component } from '@angular/core'; An Application - `, - styles: [] + ` }) export class NzDemoBreadcrumbBasicComponent {} diff --git a/components/breadcrumb/demo/dropdown.ts b/components/breadcrumb/demo/dropdown.ts index ea8a5dd5f8d..e2d20a572df 100644 --- a/components/breadcrumb/demo/dropdown.ts +++ b/components/breadcrumb/demo/dropdown.ts @@ -19,12 +19,11 @@ import { Component } from '@angular/core'; - `, - styles: [] + ` }) export class NzDemoBreadcrumbDropdownComponent {} diff --git a/components/breadcrumb/demo/router.ts b/components/breadcrumb/demo/router.ts index 8ec50d56a58..7bb1220d016 100644 --- a/components/breadcrumb/demo/router.ts +++ b/components/breadcrumb/demo/router.ts @@ -11,7 +11,6 @@ import { Component } from '@angular/core'; Breadcrumb - `, - styles: [] + ` }) export class NzDemoBreadcrumbRouterComponent {} diff --git a/components/breadcrumb/demo/withIcon.ts b/components/breadcrumb/demo/withIcon.ts index 582bffeeae4..81db4c9d656 100644 --- a/components/breadcrumb/demo/withIcon.ts +++ b/components/breadcrumb/demo/withIcon.ts @@ -14,7 +14,6 @@ import { Component } from '@angular/core'; Application - `, - styles: [] + ` }) export class NzDemoBreadcrumbWithIconComponent {} diff --git a/components/collapse/demo/accordion.ts b/components/collapse/demo/accordion.ts index 5689dd99cc6..85997659966 100644 --- a/components/collapse/demo/accordion.ts +++ b/components/collapse/demo/accordion.ts @@ -8,8 +8,7 @@ import { Component } from '@angular/core';

{{ panel.name }} content

- `, - styles: [] + ` }) export class NzDemoCollapseAccordionComponent { panels = [ diff --git a/components/collapse/demo/basic.ts b/components/collapse/demo/basic.ts index 090a1a9c3cf..56663d70f4b 100644 --- a/components/collapse/demo/basic.ts +++ b/components/collapse/demo/basic.ts @@ -16,8 +16,7 @@ import { Component } from '@angular/core';

- `, - styles: [] + ` }) export class NzDemoCollapseBasicComponent { panels = [ diff --git a/components/collapse/demo/borderless.ts b/components/collapse/demo/borderless.ts index bc223becfe7..6bd2b3602e2 100644 --- a/components/collapse/demo/borderless.ts +++ b/components/collapse/demo/borderless.ts @@ -8,8 +8,7 @@ import { Component } from '@angular/core';

{{ panel.name }} content

- `, - styles: [] + ` }) export class NzDemoCollapseBorderlessComponent { panels = [ diff --git a/components/collapse/demo/custom.ts b/components/collapse/demo/custom.ts index bddd3df7187..d38409abb54 100644 --- a/components/collapse/demo/custom.ts +++ b/components/collapse/demo/custom.ts @@ -19,8 +19,7 @@ import { Component } from '@angular/core'; - `, - styles: [] + ` }) export class NzDemoCollapseCustomComponent { panels = [ diff --git a/components/collapse/demo/extra.ts b/components/collapse/demo/extra.ts index f0b27ace0a5..b1c24482d15 100644 --- a/components/collapse/demo/extra.ts +++ b/components/collapse/demo/extra.ts @@ -20,8 +20,7 @@ import { Component } from '@angular/core'; - `, - styles: [] + ` }) export class NzDemoCollapseExtraComponent { panels = [ diff --git a/components/collapse/demo/mix.ts b/components/collapse/demo/mix.ts index f90f7d64878..98b9283df50 100644 --- a/components/collapse/demo/mix.ts +++ b/components/collapse/demo/mix.ts @@ -22,8 +22,7 @@ import { Component } from '@angular/core'; - `, - styles: [] + ` }) export class NzDemoCollapseMixComponent { panels = [ diff --git a/components/collapse/demo/noarrow.ts b/components/collapse/demo/noarrow.ts index d9c9befc2c9..e375e9dece2 100644 --- a/components/collapse/demo/noarrow.ts +++ b/components/collapse/demo/noarrow.ts @@ -17,8 +17,7 @@ import { Component } from '@angular/core';

- `, - styles: [] + ` }) export class NzDemoCollapseNoarrowComponent { panels = [ diff --git a/components/comment/demo/editor.ts b/components/comment/demo/editor.ts index 40520e56caf..90f2c3e5354 100644 --- a/components/comment/demo/editor.ts +++ b/components/comment/demo/editor.ts @@ -27,8 +27,7 @@ import { distanceInWords } from 'date-fns'; - `, - styles: [] + ` }) export class NzDemoCommentEditorComponent { data: any[] = []; diff --git a/components/comment/demo/list.ts b/components/comment/demo/list.ts index 95606ab7cd6..ee4a4ca1bc2 100644 --- a/components/comment/demo/list.ts +++ b/components/comment/demo/list.ts @@ -15,8 +15,7 @@ import { addDays, distanceInWords } from 'date-fns'; - `, - styles: [] + ` }) export class NzDemoCommentListComponent { data = [ diff --git a/components/comment/demo/nested.ts b/components/comment/demo/nested.ts index 161164b8efc..3b2222ef597 100644 --- a/components/comment/demo/nested.ts +++ b/components/comment/demo/nested.ts @@ -20,8 +20,7 @@ import { Component } from '@angular/core'; - `, - styles: [] + ` }) export class NzDemoCommentNestedComponent { data = { diff --git a/components/drawer/nz-drawer.spec.ts b/components/drawer/nz-drawer.spec.ts index 8df137d46f2..f5429f5805f 100644 --- a/components/drawer/nz-drawer.spec.ts +++ b/components/drawer/nz-drawer.spec.ts @@ -511,8 +511,7 @@ describe('NzDrawerService', () => {

Some contents...

Some contents...

- `, - styles: [] + ` }) class NzTestDrawerComponent { visible = false; diff --git a/components/dropdown/demo/overlay-visible.ts b/components/dropdown/demo/overlay-visible.ts index a9e3211273a..d923d53d5f7 100644 --- a/components/dropdown/demo/overlay-visible.ts +++ b/components/dropdown/demo/overlay-visible.ts @@ -14,8 +14,7 @@ import { Component } from '@angular/core';
  • Clicking me will close the menu
  • - `, - styles: [] + ` }) export class NzDemoDropdownOverlayVisibleComponent { visible = false; diff --git a/components/dropdown/demo/sub-menu.ts b/components/dropdown/demo/sub-menu.ts index 1c8b49b46ef..18af469304a 100644 --- a/components/dropdown/demo/sub-menu.ts +++ b/components/dropdown/demo/sub-menu.ts @@ -25,8 +25,7 @@ import { Component } from '@angular/core'; - `, - styles: [] + ` }) export class NzDemoDropdownSubMenuComponent { change(value: boolean): void { diff --git a/components/dropdown/nz-dropdown.directive.ts b/components/dropdown/nz-dropdown.directive.ts index 03b6873e4b0..97d8176530d 100644 --- a/components/dropdown/nz-dropdown.directive.ts +++ b/components/dropdown/nz-dropdown.directive.ts @@ -145,10 +145,10 @@ export class NzDropDownDirective implements AfterViewInit, OnDestroy, OnChanges if (!this.dropdownOpen) { const overlayRef = this.createOverlay(); const overlayConfig = overlayRef.getConfig(); + this.nzDropdownMenu.setValue('open', true); this.setPosition(overlayConfig.positionStrategy as FlexibleConnectedPositionStrategy); overlayRef.attach(this.getPortal()); this.dropdownOpen = true; - this.nzDropdownMenu.setValue('open', true); } } diff --git a/components/dropdown/nz-dropdown.spec.ts b/components/dropdown/nz-dropdown.spec.ts index dea976d17c4..abf127f5c38 100644 --- a/components/dropdown/nz-dropdown.spec.ts +++ b/components/dropdown/nz-dropdown.spec.ts @@ -453,8 +453,7 @@ describe('dropdown-deprecated', () => { - `, - styles: [] + ` }) export class NzTestDropdownComponent { @ViewChild(NzDropDownComponent, { static: false }) nzDropDownComponent: NzDropDownComponent; @@ -498,8 +497,7 @@ export class NzTestDropdownComponent { Expand - `, - styles: [] + ` }) export class NzTestDropdownButtonComponent { @ViewChild(NzDropDownButtonComponent, { static: false }) nzDropDownButtonComponent: NzDropDownButtonComponent; @@ -530,8 +528,7 @@ export class NzTestDropdownButtonComponent { - `, - styles: [] + ` }) export class NzTestDropdownWithButtonComponent {} diff --git a/components/empty/demo/basic.ts b/components/empty/demo/basic.ts index 57097a42a27..04eb8562c4c 100644 --- a/components/empty/demo/basic.ts +++ b/components/empty/demo/basic.ts @@ -4,7 +4,6 @@ import { Component } from '@angular/core'; selector: 'nz-demo-empty-basic', template: ` - `, - styles: [] + ` }) export class NzDemoEmptyBasicComponent {} diff --git a/components/empty/demo/customize.ts b/components/empty/demo/customize.ts index ac0808003dd..41a30563e8f 100644 --- a/components/empty/demo/customize.ts +++ b/components/empty/demo/customize.ts @@ -17,8 +17,7 @@ import { Component } from '@angular/core'; - `, - styles: [] + ` }) export class NzDemoEmptyCustomizeComponent { onClick(): void { diff --git a/components/form/doc/index.en-US.md b/components/form/doc/index.en-US.md index bad3ebcda57..0a5ba6a5776 100644 --- a/components/form/doc/index.en-US.md +++ b/components/form/doc/index.en-US.md @@ -82,7 +82,6 @@ The label of the form item, optional. | `[nzRequired]`| add required style to current item | `boolean` | `false` | | `[nzNoColon]`| whether to not display `:` after label text. | `boolean` | `false` | | `[nzFor]`| The `for` property of `label` | `string` | - | -| `[nzColon]` | Used with `label`, whether to display `:` after label text. | `boolean` | `true` | ### nz-form-control > Note:Due to the lack of partial Observable in [Angular Form](https://github.com/angular/angular/issues/10887), you have to notify `nz-form-control` to update its status with `updateValueAndValidity` when you update form status using methods like `markAsDirty`. diff --git a/components/form/doc/index.zh-CN.md b/components/form/doc/index.zh-CN.md index 3feeabd3e2b..76b7511b8d1 100644 --- a/components/form/doc/index.zh-CN.md +++ b/components/form/doc/index.zh-CN.md @@ -80,7 +80,6 @@ import { NzFormModule } from 'ng-zorro-antd/form'; | `[nzRequired]`| 当前项是否为必填,仅影响样式 | `boolean` | `false` | | `[nzNoColon]`| 是否不显示 label 后面的冒号 | `boolean` | `false` | | `[nzFor]`| label 标签的 for 属性 | `string` | - | -| `[nzColon]` | 配合 label 属性使用,表示是否显示 label 后面的冒号 | `boolean` | `true` | ### nz-form-control diff --git a/components/grid/demo/flex-align.ts b/components/grid/demo/flex-align.ts index 770588182bb..98e4f3ee084 100755 --- a/components/grid/demo/flex-align.ts +++ b/components/grid/demo/flex-align.ts @@ -26,7 +26,6 @@ import { Component } from '@angular/core';

    col-4

    - `, - styles: [] + ` }) export class NzDemoGridFlexAlignComponent {} diff --git a/components/grid/demo/flex-order.ts b/components/grid/demo/flex-order.ts index 9fc33fe45ba..a1c03b06242 100755 --- a/components/grid/demo/flex-order.ts +++ b/components/grid/demo/flex-order.ts @@ -8,8 +8,7 @@ import { Component, OnInit } from '@angular/core'; {{ i + 1 }} col-order-{{ order }} - `, - styles: [] + ` }) export class NzDemoGridFlexOrderComponent implements OnInit { orderList = [1, 2, 3, 4]; diff --git a/components/grid/demo/offset.ts b/components/grid/demo/offset.ts index b3b4747396a..46d1ddbfe28 100755 --- a/components/grid/demo/offset.ts +++ b/components/grid/demo/offset.ts @@ -24,7 +24,6 @@ import { Component } from '@angular/core'; col-12 col-offset-6 - `, - styles: [] + ` }) export class NzDemoGridOffsetComponent {} diff --git a/components/grid/demo/responsive-more.ts b/components/grid/demo/responsive-more.ts index a0654c7b74a..1efe2c71d81 100755 --- a/components/grid/demo/responsive-more.ts +++ b/components/grid/demo/responsive-more.ts @@ -14,7 +14,6 @@ import { Component } from '@angular/core'; Col - `, - styles: [] + ` }) export class NzDemoGridResponsiveMoreComponent {} diff --git a/components/grid/demo/responsive.ts b/components/grid/demo/responsive.ts index 3cdf68cd0d3..723e266df1a 100755 --- a/components/grid/demo/responsive.ts +++ b/components/grid/demo/responsive.ts @@ -14,7 +14,6 @@ import { Component } from '@angular/core'; Col - `, - styles: [] + ` }) export class NzDemoGridResponsiveComponent {} diff --git a/components/grid/demo/sort.ts b/components/grid/demo/sort.ts index 00686b45752..696f294a03c 100755 --- a/components/grid/demo/sort.ts +++ b/components/grid/demo/sort.ts @@ -11,7 +11,6 @@ import { Component } from '@angular/core'; col-6 col-pull-18 - `, - styles: [] + ` }) export class NzDemoGridSortComponent {} diff --git a/components/input/demo/textarea.ts b/components/input/demo/textarea.ts index b1312c003d2..947000a3f52 100644 --- a/components/input/demo/textarea.ts +++ b/components/input/demo/textarea.ts @@ -4,9 +4,7 @@ import { Component } from '@angular/core'; selector: 'nz-demo-input-textarea', template: ` - `, - - styles: [] + ` }) export class NzDemoInputTextareaComponent { inputValue: string; diff --git a/components/menu/demo/recursive.ts b/components/menu/demo/recursive.ts index 39bef2cc1ab..90b8b12260d 100644 --- a/components/menu/demo/recursive.ts +++ b/components/menu/demo/recursive.ts @@ -33,8 +33,7 @@ import { Component } from '@angular/core'; - `, - styles: [] + ` }) export class NzDemoMenuRecursiveComponent { mode = false; diff --git a/components/menu/demo/sider-current.ts b/components/menu/demo/sider-current.ts index cf36261222a..f53d5edac0a 100644 --- a/components/menu/demo/sider-current.ts +++ b/components/menu/demo/sider-current.ts @@ -58,8 +58,7 @@ import { Component } from '@angular/core'; - `, - styles: [] + ` }) export class NzDemoMenuSiderCurrentComponent { openMap: { [name: string]: boolean } = { diff --git a/components/menu/nz-menu.spec.ts b/components/menu/nz-menu.spec.ts index 5416ed176d7..c2441aa8d3f 100644 --- a/components/menu/nz-menu.spec.ts +++ b/components/menu/nz-menu.spec.ts @@ -565,8 +565,7 @@ export class NzTestMenuHorizontalComponent { - `, - styles: [] + ` }) export class NzTestMenuInlineComponent { disabled = false; @@ -592,8 +591,7 @@ export class NzTestMenuInlineComponent { - `, - styles: [] + ` }) export class NzDemoMenuNgForComponent { menus = [ diff --git a/components/message/demo/close.ts b/components/message/demo/close.ts index 0a6e99ead31..5f8b429ae9a 100644 --- a/components/message/demo/close.ts +++ b/components/message/demo/close.ts @@ -6,8 +6,7 @@ import { concatMap } from 'rxjs/operators'; selector: 'nz-demo-message-close', template: ` - `, - styles: [] + ` }) export class NzDemoMessageCloseComponent { constructor(private message: NzMessageService) {} diff --git a/components/message/demo/duration.ts b/components/message/demo/duration.ts index 38e9efa94c5..d3da5124667 100644 --- a/components/message/demo/duration.ts +++ b/components/message/demo/duration.ts @@ -5,8 +5,7 @@ import { NzMessageService } from 'ng-zorro-antd'; selector: 'nz-demo-message-duration', template: ` - `, - styles: [] + ` }) export class NzDemoMessageDurationComponent { createBasicMessage(): void { diff --git a/components/message/demo/info.ts b/components/message/demo/info.ts index 2ff24a21eb8..16edfe6d538 100644 --- a/components/message/demo/info.ts +++ b/components/message/demo/info.ts @@ -5,8 +5,7 @@ import { NzMessageService } from 'ng-zorro-antd'; selector: 'nz-demo-message-info', template: ` - `, - styles: [] + ` }) export class NzDemoMessageInfoComponent { constructor(private message: NzMessageService) {} diff --git a/components/message/demo/loading.ts b/components/message/demo/loading.ts index c881f8487af..9edebaf95a1 100644 --- a/components/message/demo/loading.ts +++ b/components/message/demo/loading.ts @@ -5,8 +5,7 @@ import { NzMessageService } from 'ng-zorro-antd'; selector: 'nz-demo-message-loading', template: ` - `, - styles: [] + ` }) export class NzDemoMessageLoadingComponent { constructor(private message: NzMessageService) {} diff --git a/components/modal/demo/async.ts b/components/modal/demo/async.ts index 3209aa83ab3..197abf1f67b 100644 --- a/components/modal/demo/async.ts +++ b/components/modal/demo/async.ts @@ -15,8 +15,7 @@ import { Component } from '@angular/core'; >

    Modal Content

    - `, - styles: [] + ` }) export class NzDemoModalAsyncComponent { isVisible = false; diff --git a/components/modal/demo/basic.ts b/components/modal/demo/basic.ts index e0a1be5a128..f2b70fbb630 100644 --- a/components/modal/demo/basic.ts +++ b/components/modal/demo/basic.ts @@ -9,8 +9,7 @@ import { Component } from '@angular/core';

    Content two

    Content three

    - `, - styles: [] + ` }) export class NzDemoModalBasicComponent { isVisible = false; diff --git a/components/modal/demo/confirm-promise.ts b/components/modal/demo/confirm-promise.ts index 00139f67d35..2fcd334658d 100644 --- a/components/modal/demo/confirm-promise.ts +++ b/components/modal/demo/confirm-promise.ts @@ -5,8 +5,7 @@ import { NzModalRef, NzModalService } from 'ng-zorro-antd'; selector: 'nz-demo-modal-confirm-promise', template: ` - `, - styles: [] + ` }) export class NzDemoModalConfirmPromiseComponent { confirmModal: NzModalRef; // For testing by now diff --git a/components/modal/demo/footer.ts b/components/modal/demo/footer.ts index 8ac74362aaa..24a6a2c7b78 100644 --- a/components/modal/demo/footer.ts +++ b/components/modal/demo/footer.ts @@ -31,8 +31,7 @@ import { Component } from '@angular/core'; - `, - styles: [] + ` }) export class NzDemoModalFooterComponent { isVisible = false; diff --git a/components/modal/demo/locale.ts b/components/modal/demo/locale.ts index 58ddbd63a56..eed8ce0a823 100644 --- a/components/modal/demo/locale.ts +++ b/components/modal/demo/locale.ts @@ -21,8 +21,7 @@ import { NzModalService } from 'ng-zorro-antd';
    - `, - styles: [] + ` }) export class NzDemoModalLocaleComponent { isVisible = false; diff --git a/components/modal/demo/manual.ts b/components/modal/demo/manual.ts index f56fad26aef..07b1cb93dc4 100644 --- a/components/modal/demo/manual.ts +++ b/components/modal/demo/manual.ts @@ -5,8 +5,7 @@ import { NzModalService } from 'ng-zorro-antd'; selector: 'nz-demo-modal-manual', template: ` - `, - styles: [] + ` }) export class NzDemoModalManualComponent { constructor(private modalService: NzModalService) {} diff --git a/components/modal/nz-modal.spec.ts b/components/modal/nz-modal.spec.ts index d2952efcaf2..9eeac2d465f 100644 --- a/components/modal/nz-modal.spec.ts +++ b/components/modal/nz-modal.spec.ts @@ -765,8 +765,7 @@ class NzDemoModalWithInputComponent { >

    content

    - `, - styles: [] + ` }) class NzDemoModalAsyncComponent { isVisible = false; @@ -793,8 +792,7 @@ class NzDemoModalAsyncComponent { selector: 'nz-demo-modal-confirm-promise', template: ` - `, - styles: [] + ` }) class NzDemoModalConfirmPromiseComponent { confirmModal: NzModalRef; // For testing by now diff --git a/components/notification/demo/basic.ts b/components/notification/demo/basic.ts index 02c7cc93a63..67cd321ecf6 100644 --- a/components/notification/demo/basic.ts +++ b/components/notification/demo/basic.ts @@ -5,8 +5,7 @@ import { NzNotificationService } from 'ng-zorro-antd'; selector: 'nz-demo-notification-basic', template: ` - `, - styles: [] + ` }) export class NzDemoNotificationBasicComponent { constructor(private notification: NzNotificationService) {} diff --git a/components/notification/demo/custom-icon.ts b/components/notification/demo/custom-icon.ts index 2e4294dfd7f..8b183e65842 100644 --- a/components/notification/demo/custom-icon.ts +++ b/components/notification/demo/custom-icon.ts @@ -21,8 +21,7 @@ import { NzNotificationService } from 'ng-zorro-antd'; - `, - styles: [] + ` }) export class NzDemoNotificationCustomIconComponent { constructor(private notification: NzNotificationService) {} diff --git a/components/notification/demo/custom-style.ts b/components/notification/demo/custom-style.ts index a9e808c4e93..2d83c4ea0af 100644 --- a/components/notification/demo/custom-style.ts +++ b/components/notification/demo/custom-style.ts @@ -5,8 +5,7 @@ import { NzNotificationService } from 'ng-zorro-antd'; selector: 'nz-demo-notification-custom-style', template: ` - `, - styles: [] + ` }) export class NzDemoNotificationCustomStyleComponent { constructor(private notification: NzNotificationService) {} diff --git a/components/notification/demo/duration.ts b/components/notification/demo/duration.ts index 8cae578820e..1a3fea16351 100644 --- a/components/notification/demo/duration.ts +++ b/components/notification/demo/duration.ts @@ -5,8 +5,7 @@ import { NzNotificationService } from 'ng-zorro-antd'; selector: 'nz-demo-notification-duration', template: ` - `, - styles: [] + ` }) export class NzDemoNotificationDurationComponent { createBasicNotification(): void { diff --git a/components/notification/demo/placement.ts b/components/notification/demo/placement.ts index d5d722841cf..974eed27da3 100644 --- a/components/notification/demo/placement.ts +++ b/components/notification/demo/placement.ts @@ -15,8 +15,7 @@ import { NzNotificationService } from 'ng-zorro-antd'; - `, - styles: [] + ` }) export class NzDemoNotificationPlacementComponent { placement = 'topRight'; diff --git a/components/notification/demo/update.ts b/components/notification/demo/update.ts index cfb77dc5913..04b06328a72 100644 --- a/components/notification/demo/update.ts +++ b/components/notification/demo/update.ts @@ -7,8 +7,7 @@ import { NzNotificationService } from 'ng-zorro-antd'; - `, - styles: [] + ` }) export class NzDemoNotificationUpdateComponent { constructor(private notification: NzNotificationService) {} diff --git a/components/notification/demo/with-btn.ts b/components/notification/demo/with-btn.ts index 3959d8a5eac..d9468087b34 100644 --- a/components/notification/demo/with-btn.ts +++ b/components/notification/demo/with-btn.ts @@ -23,8 +23,7 @@ import { NzNotificationService } from 'ng-zorro-antd'; - `, - styles: [] + ` }) export class NzDemoNotificationWithBtnComponent { constructor(private notification: NzNotificationService) {} diff --git a/components/pagination/demo/basic.ts b/components/pagination/demo/basic.ts index 0bd157a9292..8469b742dd6 100644 --- a/components/pagination/demo/basic.ts +++ b/components/pagination/demo/basic.ts @@ -4,7 +4,6 @@ import { Component } from '@angular/core'; selector: 'nz-demo-pagination-basic', template: ` - `, - styles: [] + ` }) export class NzDemoPaginationBasicComponent {} diff --git a/components/pagination/demo/changer.ts b/components/pagination/demo/changer.ts index 4f51b3d285a..db30951babd 100644 --- a/components/pagination/demo/changer.ts +++ b/components/pagination/demo/changer.ts @@ -6,7 +6,6 @@ import { Component } from '@angular/core';
    - `, - styles: [] + ` }) export class NzDemoPaginationChangerComponent {} diff --git a/components/pagination/demo/controlled.ts b/components/pagination/demo/controlled.ts index b92aff46758..e244313f9ca 100644 --- a/components/pagination/demo/controlled.ts +++ b/components/pagination/demo/controlled.ts @@ -4,7 +4,6 @@ import { Component } from '@angular/core'; selector: 'nz-demo-pagination-controlled', template: ` - `, - styles: [] + ` }) export class NzDemoPaginationControlledComponent {} diff --git a/components/pagination/demo/itemRender.ts b/components/pagination/demo/itemRender.ts index be7a84fe4b6..d08d8ed8959 100644 --- a/components/pagination/demo/itemRender.ts +++ b/components/pagination/demo/itemRender.ts @@ -9,7 +9,6 @@ import { Component } from '@angular/core'; Next {{ page }} - `, - styles: [] + ` }) export class NzDemoPaginationItemRenderComponent {} diff --git a/components/pagination/demo/jump.ts b/components/pagination/demo/jump.ts index 055082a183c..bfec3f28c8f 100644 --- a/components/pagination/demo/jump.ts +++ b/components/pagination/demo/jump.ts @@ -6,7 +6,6 @@ import { Component } from '@angular/core';
    - `, - styles: [] + ` }) export class NzDemoPaginationJumpComponent {} diff --git a/components/pagination/demo/mini.ts b/components/pagination/demo/mini.ts index 0a51520eb61..d1d017d0e0f 100644 --- a/components/pagination/demo/mini.ts +++ b/components/pagination/demo/mini.ts @@ -20,8 +20,7 @@ import { Component } from '@angular/core'; [nzShowTotal]="totalTemplate" > Total {{ total }} items - `, - styles: [] + ` }) export class NzDemoPaginationMiniComponent { current = 1; diff --git a/components/pagination/demo/more.ts b/components/pagination/demo/more.ts index d3d1843e933..e1a6a3663b6 100644 --- a/components/pagination/demo/more.ts +++ b/components/pagination/demo/more.ts @@ -4,7 +4,6 @@ import { Component } from '@angular/core'; selector: 'nz-demo-pagination-more', template: ` - `, - styles: [] + ` }) export class NzDemoPaginationMoreComponent {} diff --git a/components/pagination/demo/simple.ts b/components/pagination/demo/simple.ts index e72c83120d9..cebc3199b4e 100644 --- a/components/pagination/demo/simple.ts +++ b/components/pagination/demo/simple.ts @@ -4,7 +4,6 @@ import { Component } from '@angular/core'; selector: 'nz-demo-pagination-simple', template: ` - `, - styles: [] + ` }) export class NzDemoPaginationSimpleComponent {} diff --git a/components/pagination/demo/total.ts b/components/pagination/demo/total.ts index f766fda115d..9b5a244fd84 100644 --- a/components/pagination/demo/total.ts +++ b/components/pagination/demo/total.ts @@ -10,7 +10,6 @@ import { Component } from '@angular/core'; {{ range[0] }}-{{ range[1] }} of {{ total }} items - `, - styles: [] + ` }) export class NzDemoPaginationTotalComponent {} diff --git a/components/rate/demo/disabled.ts b/components/rate/demo/disabled.ts index 13a5f716cf7..adafbd9668e 100644 --- a/components/rate/demo/disabled.ts +++ b/components/rate/demo/disabled.ts @@ -4,7 +4,6 @@ import { Component } from '@angular/core'; selector: 'nz-demo-rate-disabled', template: ` - `, - styles: [] + ` }) export class NzDemoRateDisabledComponent {} diff --git a/components/table/demo/expand.ts b/components/table/demo/expand.ts index cae2e791d9d..0da7055e6b1 100644 --- a/components/table/demo/expand.ts +++ b/components/table/demo/expand.ts @@ -27,8 +27,7 @@ import { Component } from '@angular/core'; - `, - styles: [] + ` }) export class NzDemoTableExpandComponent { mapOfExpandData: { [key: string]: boolean } = {}; diff --git a/components/tabs/demo/card.ts b/components/tabs/demo/card.ts index 9443f0f0de7..f9cb028876f 100644 --- a/components/tabs/demo/card.ts +++ b/components/tabs/demo/card.ts @@ -6,8 +6,7 @@ import { Component } from '@angular/core'; Content of Tab Pane {{ tab }} - `, - styles: [] + ` }) export class NzDemoTabsCardComponent { tabs = [1, 2, 3]; diff --git a/components/tabs/demo/custom-add-trigger.ts b/components/tabs/demo/custom-add-trigger.ts index fedf4b69524..877a455ad04 100644 --- a/components/tabs/demo/custom-add-trigger.ts +++ b/components/tabs/demo/custom-add-trigger.ts @@ -14,8 +14,7 @@ import { Component } from '@angular/core'; Content of {{ tab }} - `, - styles: [] + ` }) export class NzDemoTabsCustomAddTriggerComponent { index = 0; diff --git a/components/tabs/demo/position.ts b/components/tabs/demo/position.ts index c10154cbef6..2f957a6f7e6 100644 --- a/components/tabs/demo/position.ts +++ b/components/tabs/demo/position.ts @@ -12,8 +12,7 @@ import { Component } from '@angular/core'; Content of tab {{ tab }} - `, - styles: [] + ` }) export class NzDemoTabsPositionComponent { position = 'top'; diff --git a/components/tabs/demo/size.ts b/components/tabs/demo/size.ts index 14866d2ec84..8a4bc0e0d22 100644 --- a/components/tabs/demo/size.ts +++ b/components/tabs/demo/size.ts @@ -11,8 +11,7 @@ import { Component } from '@angular/core'; Content of tab {{ tab }} - `, - styles: [] + ` }) export class NzDemoTabsSizeComponent { size = 'small'; diff --git a/components/tabs/demo/slide.ts b/components/tabs/demo/slide.ts index 5d785b88d57..7586c432326 100644 --- a/components/tabs/demo/slide.ts +++ b/components/tabs/demo/slide.ts @@ -24,8 +24,7 @@ import { Component, OnInit } from '@angular/core'; {{ tab.content }} - `, - styles: [] + ` }) export class NzDemoTabsSlideComponent implements OnInit { tabs: any[] = []; diff --git a/components/tag/demo/basic.ts b/components/tag/demo/basic.ts index d8f1eddd3f5..7d23fd7ffb9 100644 --- a/components/tag/demo/basic.ts +++ b/components/tag/demo/basic.ts @@ -9,8 +9,7 @@ import { Component } from '@angular/core'; Tag 2 Prevent Default - `, - styles: [] + ` }) export class NzDemoTagBasicComponent { onClose(): void { diff --git a/components/tag/demo/hot-tags.ts b/components/tag/demo/hot-tags.ts index 9e300d896cd..9e257d178fa 100644 --- a/components/tag/demo/hot-tags.ts +++ b/components/tag/demo/hot-tags.ts @@ -14,8 +14,7 @@ const tagsFromServer = ['Movie', 'Books', 'Music', 'Sports']; > {{ tag }} - `, - styles: [] + ` }) export class NzDemoTagHotTagsComponent { hotTags = tagsFromServer; diff --git a/components/timeline/demo/color.ts b/components/timeline/demo/color.ts index 66b6872513a..34eb9afa0cc 100644 --- a/components/timeline/demo/color.ts +++ b/components/timeline/demo/color.ts @@ -17,7 +17,6 @@ import { Component } from '@angular/core';

    Technical testing 3 2015-09-01

    - `, - styles: [] + ` }) export class NzDemoTimelineColorComponent {}