import { Component, OnInit, Input, Output, OnDestroy, EventEmitter } from '@angular/core'; @Component({ selector: 'cm-switch-doc', templateUrl: './switch-doc.component.html', styleUrls: ['./switch-doc.component.css'] }) export class SwitchDocComponent implements OnInit, OnDestroy { apiPath = './docs/components/switch-doc/switch.api.json'; doc_1 = { title: "基本", intro: `最简单的用法。`, htmlPath: './docs/components/switch-doc/switch-doc-1/switch-doc-1.component.html', tsPath: './docs/components/switch-doc/switch-doc-1/switch-doc-1.component.ts' } doc_2 = { title: "不可用", intro: `nz-switch失效状态`, htmlPath: './docs/components/switch-doc/switch-doc-2/switch-doc-2.component.html', tsPath: './docs/components/switch-doc/switch-doc-2/switch-doc-2.component.ts' } doc_3 = { title: "文字和图标", intro: `带有文字和图标`, htmlPath: './docs/components/switch-doc/switch-doc-3/switch-doc-3.component.html', tsPath: './docs/components/switch-doc/switch-doc-3/switch-doc-3.component.ts' } doc_4 = { title: "大小", intro: `[nzSize]="'small'"表示小号开关`, htmlPath: './docs/components/switch-doc/switch-doc-4/switch-doc-4.component.html', tsPath: './docs/components/switch-doc/switch-doc-4/switch-doc-4.component.ts' } constructor() {} ngOnInit() { } ngOnDestroy() { } }