UNPKG

ngx-pluto

Version:
23 lines (22 loc) 872 B
import { AfterContentInit, QueryList, EventEmitter, OnChanges, SimpleChanges, OnDestroy } from '@angular/core'; import { NpTab } from './tab.component'; /** * @ignore */ export declare class NpTabGroup implements AfterContentInit, OnChanges, OnDestroy { selectedIndex: number; type: 'default' | 'chrome-like'; selectedIndexChange: EventEmitter<number>; tabs: QueryList<NpTab>; constructor(); ngOnChanges(changes: SimpleChanges): void; ngAfterContentInit(): void; /** * * @param tab 当前选中的tab * @param index 当前选中的tab的index,注:index目前只有在单击tab标签页的时候需要传入,其他情况下不需要 */ selectTab(tab: NpTab, index?: number): void; isShowDivider(tabs: QueryList<NpTab>, tab: NpTab, index: number): boolean; ngOnDestroy(): void; }