import { Component, OnInit, OnDestroy, Input, Output, EventEmitter } from '@angular/core'; @Component({ selector: 'cm-affix-doc', templateUrl: './affix-doc.component.html', styleUrls: ['./affix-doc.component.css'] }) export class AffixDocComponent implements OnInit, OnDestroy { apiPath = './docs/components/affix-doc/affix.api.json'; doc_1 = { title: "基本", intro: `最简单的用法。`, htmlPath: './docs/components/affix-doc/affix-doc-1/affix-doc-1.component.html', tsPath: './docs/components/affix-doc/affix-doc-1/affix-doc-1.component.ts' } doc_2 = { title: "固定状态改变的回调", intro: `可以获得是否固定的状态。`, htmlPath: './docs/components/affix-doc/affix-doc-2/affix-doc-2.component.html', tsPath: './docs/components/affix-doc/affix-doc-2/affix-doc-2.component.ts' } doc_3 = { title: "滚动容器", intro: `用 target 设置 nz-affix 需要监听其滚动事件的元素,默认为 window。`, htmlPath: './docs/components/affix-doc/affix-doc-3/affix-doc-3.component.html', tsPath: './docs/components/affix-doc/affix-doc-3/affix-doc-3.component.ts' } constructor() { } ngOnInit() { } ngOnDestroy() { } }