Skip to content

Commit

Permalink
docs: use secondary entry in the demos (#3980)
Browse files Browse the repository at this point in the history
* docs: use secondary entry in the demos

* test: fix test
  • Loading branch information
hsuanxyz authored and vthinkxie committed Aug 13, 2019
1 parent c21d948 commit 4d27fb6
Show file tree
Hide file tree
Showing 56 changed files with 70 additions and 63 deletions.
2 changes: 1 addition & 1 deletion components/date-picker/demo/basic.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Component } from '@angular/core';
import getISOWeek from 'date-fns/get_iso_week';
import { en_US, zh_CN, NzI18nService } from 'ng-zorro-antd';
import { en_US, zh_CN, NzI18nService } from 'ng-zorro-antd/i18n';

@Component({
selector: 'nz-demo-date-picker-basic',
Expand Down
3 changes: 3 additions & 0 deletions components/date-picker/nz-range-picker.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -701,8 +701,11 @@ describe('NzRangePickerComponent', () => {
rightInput.dispatchEvent(new KeyboardEvent('keyup', { key: 'Enter' }));
fixture.detectChanges();
tick(500);
// @ts-ignore
const result = nzOnChange.calls.allArgs()[0][0];
// @ts-ignore
expect(result[0].getDate()).toBe(6);
// @ts-ignore
expect(result[1].getDate()).toBe(10);
}));
}); // /specified date picker testing
Expand Down
2 changes: 1 addition & 1 deletion components/drawer/demo/service.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* entryComponents: NzDrawerCustomComponent */

import { Component, Input, TemplateRef, ViewChild } from '@angular/core';
import { NzDrawerRef, NzDrawerService } from 'ng-zorro-antd';
import { NzDrawerRef, NzDrawerService } from 'ng-zorro-antd/drawer';

@Component({
selector: 'nz-demo-drawer-service',
Expand Down
8 changes: 4 additions & 4 deletions components/drawer/nz-drawer.spec.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { ESCAPE } from '@angular/cdk/keycodes';
import { OverlayContainer } from '@angular/cdk/overlay';
import { Component, Input, TemplateRef, ViewChild } from '@angular/core';

import { async, fakeAsync, inject, tick, ComponentFixture, TestBed } from '@angular/core/testing';

import { OverlayContainer } from '@angular/cdk/overlay';
import { BrowserDynamicTestingModule } from '@angular/platform-browser-dynamic/testing';
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
import { dispatchKeyboardEvent } from 'ng-zorro-antd';

import { dispatchKeyboardEvent } from 'ng-zorro-antd/core';

import { NzDrawerRef } from './nz-drawer-ref';
import { NzDrawerComponent } from './nz-drawer.component';
import { NzDrawerModule } from './nz-drawer.module';
Expand Down
2 changes: 1 addition & 1 deletion components/dropdown/demo/context-menu.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Component } from '@angular/core';
import { NzContextMenuService, NzDropdownMenuComponent } from 'ng-zorro-antd';
import { NzContextMenuService, NzDropdownMenuComponent } from 'ng-zorro-antd/dropdown';

@Component({
selector: 'nz-demo-dropdown-context-menu',
Expand Down
2 changes: 1 addition & 1 deletion components/empty/demo/config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Component, TemplateRef, ViewChild } from '@angular/core';
import { NzEmptyService } from 'ng-zorro-antd';
import { NzEmptyService } from 'ng-zorro-antd/empty';

@Component({
selector: 'nz-demo-empty-config',
Expand Down
2 changes: 1 addition & 1 deletion components/icon/demo/iconfont.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Component } from '@angular/core';
import { NzIconService } from 'ng-zorro-antd';
import { NzIconService } from 'ng-zorro-antd/icon';

@Component({
selector: 'nz-demo-icon-iconfont',
Expand Down
2 changes: 1 addition & 1 deletion components/icon/demo/namespace.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Component } from '@angular/core';
import { NzIconService } from 'ng-zorro-antd';
import { NzIconService } from 'ng-zorro-antd/icon';

const ngZorroIconLiteral =
'<svg viewBox="0 0 106 120" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <defs>\n <linearGradient x1="68.1279872%" y1="-35.6905737%" x2="30.4400914%" y2="114.942679%" id="linearGradient-1">\n <stop stop-color="#FA8E7D" offset="0%"></stop>\n <stop stop-color="#F74A5C" offset="51.2635191%"></stop>\n <stop stop-color="#F51D2C" offset="100%"></stop>\n </linearGradient>\n <linearGradient x1="68.1279872%" y1="-35.6905737%" x2="74.5363914%" y2="162.511755%" id="linearGradient-2">\n <stop stop-color="#FA8E7D" offset="0%"></stop>\n <stop stop-color="#F74A5C" offset="51.2635191%"></stop>\n <stop stop-color="#F51D2C" offset="100%"></stop>\n </linearGradient>\n <linearGradient x1="69.644116%" y1="0%" x2="69.644116%" y2="100%" id="linearGradient-3">\n <stop stop-color="#29CDFF" offset="0%"></stop>\n <stop stop-color="#148EFF" offset="37.8600687%"></stop>\n <stop stop-color="#0A60FF" offset="100%"></stop>\n </linearGradient>\n <linearGradient x1="-19.8191553%" y1="-36.7931464%" x2="138.57919%" y2="157.637507%" id="linearGradient-4">\n <stop stop-color="#29CDFF" offset="0%"></stop>\n <stop stop-color="#0F78FF" offset="100%"></stop>\n </linearGradient>\n </defs>\n <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <g id="Angular" transform="translate(-11.000000, -4.000000)">\n <g id="Group-9" transform="translate(11.000000, 4.000000)">\n <path d="M65.63,72.2 L53.23,53.2 L46,63.69 L53.37,63.69 C56.4075661,63.69 58.87,66.1524339 58.87,69.19 C58.87,72.2275661 56.4075661,74.69 53.37,74.69 L35.49,74.69 C33.4448986,74.6890667 31.569189,73.5534846 30.620326,71.7418281 C29.671463,69.9301715 29.8061511,67.7416349 30.97,66.06 L48.84,40.26 C49.879226,38.7527636 51.6013948,37.8627393 53.4320154,37.8868264 C55.2626361,37.9109135 56.960791,38.8459421 57.96,40.38 L74.84,66.18 C75.9449505,67.8698206 76.0352122,70.0292067 75.0751376,71.8053446 C74.115063,73.5814826 72.2590116,74.6888076 70.24,74.69 C68.3799194,74.6978131 66.6433454,73.7598372 65.63,72.2 Z" id="Path" fill="url(#linearGradient-1)"></path>\n <path d="M70.28,25 C69.0616939,25.0004053 67.8648105,24.6796268 66.81,24.07 L52.87,16.07 L39,24 C36.8331842,25.2504298 34.1638674,25.249892 31.9975556,23.9985892 C29.8312438,22.7472865 28.4970513,20.4353214 28.4975555,17.933589 C28.4980597,15.4318566 29.833184,13.1204295 32,11.87 L49.34,1.87 C51.5058075,0.619570435 54.1741925,0.619570435 56.34,1.87 L73.76,11.87 C76.574107,13.4207731 77.9710889,16.688234 77.147902,19.7941088 C76.324715,22.8999837 73.492775,25.0466031 70.28,25 Z" id="Path" fill="url(#linearGradient-2)"></path>\n <path d="M52.86,119.92 C51.6310454,119.919338 50.4239235,119.595139 49.36,118.98 L3.93,92.75 C1.76486614,91.4999595 0.43077789,89.190081 0.43,86.69 L0.43,34.23 C0.43077789,31.729919 1.76486614,29.4200405 3.93,28.17 L15.16,21.69 C17.3290879,20.369153 20.0434251,20.3267208 22.2527396,21.5791219 C24.4620541,22.831523 25.8197544,25.182284 25.8004986,27.7218131 C25.7812428,30.2613423 24.3880518,32.5912449 22.16,33.81 L14.43,38.27 L14.43,82.65 L52.86,104.83 L89.7896161,83.5159515 C90.7180357,82.9801111 91.29,81.9896088 91.29,80.9176536 L91.29,40.0028421 C91.29,38.9306213 90.7177545,37.9399157 89.7889721,37.4041727 L83.61,33.84 C81.4431842,32.5895704 80.1080601,30.2781434 80.1075559,27.7764111 C80.1070518,25.2746788 81.4412443,22.9627138 83.6075559,21.7114111 C85.7738676,20.4601083 88.4431842,20.4595704 90.61,21.71 L101.79,28.17 C103.955134,29.4200405 105.289222,31.729919 105.29,34.23 L105.29,86.69 C105.289222,89.190081 103.955134,91.4999595 101.79,92.75 L56.36,119 C55.2952279,119.610805 54.087499,119.928265 52.86,119.92 Z" id="Path" fill="url(#linearGradient-3)" fill-rule="nonzero"></path>\n <path d="M78.06,106.45 C66.89,113 52.87,104.83 52.87,104.83 L15.9403839,83.5159515 C15.0119643,82.9801111 14.44,81.9896088 14.44,80.9176536 L14.44,40.0026171 C14.44,38.9305169 15.0121179,37.9399035 15.9407356,37.4041163 L22.17,33.81 C24.3980518,32.5912449 25.7912428,30.2613423 25.8104986,27.7218131 C25.8297544,25.182284 24.4720541,22.831523 22.2627396,21.5791219 C20.0534251,20.3267208 17.3390879,20.369153 15.17,21.69 L3.94,28.17 C1.77486614,29.4200405 0.44077789,31.729919 0.44,34.23 L0.44,86.69 C0.44077789,89.190081 1.77486614,91.4999595 3.94,92.75 L49.36,119 C51.5258075,120.25043 54.1941925,120.25043 56.36,119 L78.06,106.47 L78.06,106.45 Z" id="Path" fill="url(#linearGradient-4)" fill-rule="nonzero"></path>\n </g>\n </g>\n </g>\n</svg>';
Expand Down
2 changes: 1 addition & 1 deletion components/list/demo/loadmore.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// tslint:disable:no-any
import { HttpClient } from '@angular/common/http';
import { Component, OnInit } from '@angular/core';
import { NzMessageService } from 'ng-zorro-antd';
import { NzMessageService } from 'ng-zorro-antd/message';

const count = 5;
const fakeDataUrl = 'https://randomuser.me/api/?results=5&inc=name,gender,email,nat&noinfo';
Expand Down
2 changes: 1 addition & 1 deletion components/list/demo/simple.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Component } from '@angular/core';
import { NzMessageService } from 'ng-zorro-antd';
import { NzMessageService } from 'ng-zorro-antd/message';

@Component({
selector: 'nz-demo-list-simple',
Expand Down
2 changes: 1 addition & 1 deletion components/mention/demo/async.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Component, ViewEncapsulation } from '@angular/core';
import { MentionOnSearchTypes } from 'ng-zorro-antd';
import { MentionOnSearchTypes } from 'ng-zorro-antd/mention';

@Component({
selector: 'nz-demo-mention-async',
Expand Down
2 changes: 1 addition & 1 deletion components/mention/demo/multiple-trigger.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Component, ViewEncapsulation } from '@angular/core';
import { MentionOnSearchTypes } from 'ng-zorro-antd';
import { MentionOnSearchTypes } from 'ng-zorro-antd/mention';

@Component({
selector: 'nz-demo-mention-multiple-trigger',
Expand Down
2 changes: 1 addition & 1 deletion components/message/demo/close.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Component } from '@angular/core';
import { NzMessageService } from 'ng-zorro-antd';
import { NzMessageService } from 'ng-zorro-antd/message';
import { concatMap } from 'rxjs/operators';

@Component({
Expand Down
2 changes: 1 addition & 1 deletion components/message/demo/duration.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Component } from '@angular/core';
import { NzMessageService } from 'ng-zorro-antd';
import { NzMessageService } from 'ng-zorro-antd/message';

@Component({
selector: 'nz-demo-message-duration',
Expand Down
2 changes: 1 addition & 1 deletion components/message/demo/info.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Component } from '@angular/core';
import { NzMessageService } from 'ng-zorro-antd';
import { NzMessageService } from 'ng-zorro-antd/message';

@Component({
selector: 'nz-demo-message-info',
Expand Down
2 changes: 1 addition & 1 deletion components/message/demo/loading.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Component } from '@angular/core';
import { NzMessageService } from 'ng-zorro-antd';
import { NzMessageService } from 'ng-zorro-antd/message';

@Component({
selector: 'nz-demo-message-loading',
Expand Down
2 changes: 1 addition & 1 deletion components/message/demo/other.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Component } from '@angular/core';
import { NzMessageService } from 'ng-zorro-antd';
import { NzMessageService } from 'ng-zorro-antd/message';

@Component({
selector: 'nz-demo-message-other',
Expand Down
2 changes: 1 addition & 1 deletion components/modal/demo/confirm-promise.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Component } from '@angular/core';
import { NzModalRef, NzModalService } from 'ng-zorro-antd';
import { NzModalRef, NzModalService } from 'ng-zorro-antd/modal';

@Component({
selector: 'nz-demo-modal-confirm-promise',
Expand Down
2 changes: 1 addition & 1 deletion components/modal/demo/confirm.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Component } from '@angular/core';
import { NzModalService } from 'ng-zorro-antd';
import { NzModalService } from 'ng-zorro-antd/modal';

@Component({
selector: 'nz-demo-modal-confirm',
Expand Down
11 changes: 5 additions & 6 deletions components/modal/demo/footer2.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
/* entryComponents: NzModalCustomFooterComponent */

import { Component } from '@angular/core';
import { NzModalService, NzModalRef } from 'ng-zorro-antd';
import { NzModalService, NzModalRef } from 'ng-zorro-antd/modal';

@Component({
selector: 'nz-demo-modal-footer2',
template: `
<button nz-button nzType="primary" (click)="showModal1()">
<span>In Template</span>
</button>
<br>
<br>
<br />
<br />
<button nz-button nzType="primary" (click)="showModal2()">
<span>In Component</span>
</button>
Expand All @@ -35,7 +35,7 @@ export class NzDemoModalFooter2Component {
isVisible = false;
isConfirmLoading = false;

constructor(private modalService: NzModalService) { }
constructor(private modalService: NzModalService) {}

showModal1(): void {
this.isVisible = true;
Expand Down Expand Up @@ -78,8 +78,7 @@ export class NzDemoModalFooter2Component {
`
})
export class NzModalCustomFooterComponent {

constructor(private modal: NzModalRef) { }
constructor(private modal: NzModalRef) {}

destroyModal(): void {
this.modal.destroy();
Expand Down
2 changes: 1 addition & 1 deletion components/modal/demo/info.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Component } from '@angular/core';
import { NzModalService } from 'ng-zorro-antd';
import { NzModalService } from 'ng-zorro-antd/modal';

@Component({
selector: 'nz-demo-modal-info',
Expand Down
2 changes: 1 addition & 1 deletion components/modal/demo/locale.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Component } from '@angular/core';
import { NzModalService } from 'ng-zorro-antd';
import { NzModalService } from 'ng-zorro-antd/modal';

@Component({
selector: 'nz-demo-modal-locale',
Expand Down
2 changes: 1 addition & 1 deletion components/modal/demo/manual.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Component } from '@angular/core';
import { NzModalService } from 'ng-zorro-antd';
import { NzModalService } from 'ng-zorro-antd/modal';

@Component({
selector: 'nz-demo-modal-manual',
Expand Down
2 changes: 1 addition & 1 deletion components/modal/demo/service.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* entryComponents: NzModalCustomComponent */

import { Component, Input, TemplateRef } from '@angular/core';
import { NzModalRef, NzModalService } from 'ng-zorro-antd';
import { NzModalRef, NzModalService } from 'ng-zorro-antd/modal';

@Component({
selector: 'nz-demo-modal-service',
Expand Down
2 changes: 1 addition & 1 deletion components/notification/demo/basic.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Component } from '@angular/core';
import { NzNotificationService } from 'ng-zorro-antd';
import { NzNotificationService } from 'ng-zorro-antd/notification';

@Component({
selector: 'nz-demo-notification-basic',
Expand Down
2 changes: 1 addition & 1 deletion components/notification/demo/custom-icon.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Component, TemplateRef } from '@angular/core';
import { NzNotificationService } from 'ng-zorro-antd';
import { NzNotificationService } from 'ng-zorro-antd/notification';

@Component({
selector: 'nz-demo-notification-custom-icon',
Expand Down
2 changes: 1 addition & 1 deletion components/notification/demo/custom-style.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Component } from '@angular/core';
import { NzNotificationService } from 'ng-zorro-antd';
import { NzNotificationService } from 'ng-zorro-antd/notification';

@Component({
selector: 'nz-demo-notification-custom-style',
Expand Down
2 changes: 1 addition & 1 deletion components/notification/demo/duration.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Component } from '@angular/core';
import { NzNotificationService } from 'ng-zorro-antd';
import { NzNotificationService } from 'ng-zorro-antd/notification';

@Component({
selector: 'nz-demo-notification-duration',
Expand Down
2 changes: 1 addition & 1 deletion components/notification/demo/placement.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Component } from '@angular/core';
import { NzNotificationService } from 'ng-zorro-antd';
import { NzNotificationService } from 'ng-zorro-antd/notification';

@Component({
selector: 'nz-demo-notification-placement',
Expand Down
2 changes: 1 addition & 1 deletion components/notification/demo/template.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Component, TemplateRef, ViewChild } from '@angular/core';
import { NzNotificationService } from 'ng-zorro-antd';
import { NzNotificationService } from 'ng-zorro-antd/notification';

@Component({
selector: 'nz-demo-notification-template',
Expand Down
2 changes: 1 addition & 1 deletion components/notification/demo/update.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Component } from '@angular/core';
import { NzNotificationService } from 'ng-zorro-antd';
import { NzNotificationService } from 'ng-zorro-antd/notification';

@Component({
selector: 'nz-demo-notification-update',
Expand Down
2 changes: 1 addition & 1 deletion components/notification/demo/with-btn.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Component, TemplateRef } from '@angular/core';
import { NzNotificationService } from 'ng-zorro-antd';
import { NzNotificationService } from 'ng-zorro-antd/notification';

@Component({
selector: 'nz-demo-notification-with-btn',
Expand Down
2 changes: 1 addition & 1 deletion components/notification/demo/with-icon.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Component } from '@angular/core';
import { NzNotificationService } from 'ng-zorro-antd';
import { NzNotificationService } from 'ng-zorro-antd/notification';

@Component({
selector: 'nz-demo-notification-with-icon',
Expand Down
2 changes: 1 addition & 1 deletion components/popconfirm/demo/dynamic-trigger.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Component } from '@angular/core';
import { NzMessageService } from 'ng-zorro-antd';
import { NzMessageService } from 'ng-zorro-antd/message';

@Component({
selector: 'nz-demo-popconfirm-dynamic-trigger',
Expand Down
2 changes: 1 addition & 1 deletion components/popconfirm/demo/locale.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Component } from '@angular/core';
import { NzMessageService } from 'ng-zorro-antd';
import { NzMessageService } from 'ng-zorro-antd/message';

@Component({
selector: 'nz-demo-popconfirm-locale',
Expand Down
2 changes: 1 addition & 1 deletion components/popconfirm/demo/placement.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Component } from '@angular/core';
import { NzMessageService } from 'ng-zorro-antd';
import { NzMessageService } from 'ng-zorro-antd/message';

@Component({
selector: 'nz-demo-popconfirm-placement',
Expand Down
2 changes: 1 addition & 1 deletion components/table/demo/edit-cell.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Component, ElementRef, HostListener, OnInit, ViewChild } from '@angular/core';
import { NzInputDirective } from 'ng-zorro-antd';
import { NzInputDirective } from 'ng-zorro-antd/input';

@Component({
selector: 'nz-demo-table-edit-cell',
Expand Down
2 changes: 1 addition & 1 deletion components/table/demo/virtual.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { AfterViewInit, Component, OnDestroy, OnInit, ViewChild } from '@angular/core';
import { NzTableComponent } from 'ng-zorro-antd';
import { NzTableComponent } from 'ng-zorro-antd/table';
import { Subject } from 'rxjs';
import { takeUntil } from 'rxjs/operators';

Expand Down
2 changes: 1 addition & 1 deletion components/transfer/demo/advanced.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Component, OnInit } from '@angular/core';
import { NzMessageService } from 'ng-zorro-antd';
import { NzMessageService } from 'ng-zorro-antd/message';

@Component({
selector: 'nz-demo-transfer-advanced',
Expand Down
2 changes: 1 addition & 1 deletion components/transfer/demo/can-move.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Component, OnInit } from '@angular/core';
import { TransferCanMove, TransferItem } from 'ng-zorro-antd';
import { TransferCanMove, TransferItem } from 'ng-zorro-antd/transfer';
import { of, Observable } from 'rxjs';
import { delay } from 'rxjs/operators';

Expand Down
2 changes: 1 addition & 1 deletion components/transfer/demo/custom-item.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Component, OnInit } from '@angular/core';
import { NzMessageService } from 'ng-zorro-antd';
import { NzMessageService } from 'ng-zorro-antd/message';

@Component({
selector: 'nz-demo-transfer-custom-item',
Expand Down
2 changes: 1 addition & 1 deletion components/tree-select/demo/async.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Component, OnInit } from '@angular/core';
import { NzFormatEmitEvent } from 'ng-zorro-antd';
import { NzFormatEmitEvent } from 'ng-zorro-antd/core';

@Component({
selector: 'nz-demo-tree-select-async',
Expand Down
2 changes: 1 addition & 1 deletion components/tree/demo/basic-controlled.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Component, OnInit } from '@angular/core';
import { NzFormatEmitEvent } from 'ng-zorro-antd';
import { NzFormatEmitEvent } from 'ng-zorro-antd/core';

@Component({
selector: 'nz-demo-tree-basic-controlled',
Expand Down
3 changes: 2 additions & 1 deletion components/tree/demo/basic.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { AfterViewInit, Component, OnInit, ViewChild } from '@angular/core';
import { NzFormatEmitEvent, NzTreeComponent, NzTreeNodeOptions } from 'ng-zorro-antd';
import { NzFormatEmitEvent, NzTreeNodeOptions } from 'ng-zorro-antd/core';
import { NzTreeComponent } from 'ng-zorro-antd/tree';

@Component({
selector: 'nz-demo-tree-basic',
Expand Down
3 changes: 2 additions & 1 deletion components/tree/demo/directory.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Component } from '@angular/core';
import { NzContextMenuService, NzDropdownMenuComponent, NzFormatEmitEvent, NzTreeNode } from 'ng-zorro-antd';
import { NzContextMenuService, NzDropdownMenuComponent } from 'ng-zorro-antd/dropdown';
import { NzFormatEmitEvent, NzTreeNode } from 'ng-zorro-antd/core';

@Component({
selector: 'nz-demo-tree-directory',
Expand Down
2 changes: 1 addition & 1 deletion components/tree/demo/draggable-confirm.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Component, OnInit } from '@angular/core';
import { NzFormatBeforeDropEvent } from 'ng-zorro-antd';
import { NzFormatBeforeDropEvent } from 'ng-zorro-antd/core';
import { of, Observable } from 'rxjs';
import { delay } from 'rxjs/operators';

Expand Down
2 changes: 1 addition & 1 deletion components/tree/demo/draggable.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Component, OnInit } from '@angular/core';
import { NzFormatEmitEvent } from 'ng-zorro-antd';
import { NzFormatEmitEvent } from 'ng-zorro-antd/core';

@Component({
selector: 'nz-demo-tree-draggable',
Expand Down
2 changes: 1 addition & 1 deletion components/tree/demo/dynamic.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Component, OnInit } from '@angular/core';
import { NzFormatEmitEvent, NzTreeNodeOptions } from 'ng-zorro-antd';
import { NzFormatEmitEvent, NzTreeNodeOptions } from 'ng-zorro-antd/core';

@Component({
selector: 'nz-demo-tree-dynamic',
Expand Down
2 changes: 1 addition & 1 deletion components/tree/demo/line.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Component, OnInit } from '@angular/core';
import { NzFormatEmitEvent } from 'ng-zorro-antd';
import { NzFormatEmitEvent } from 'ng-zorro-antd/core';

@Component({
selector: 'nz-demo-tree-line',
Expand Down
Loading

0 comments on commit 4d27fb6

Please sign in to comment.