UNPKG

ng-cw-v12

Version:

Angular UI Component Library

40 lines (39 loc) 1.79 kB
import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core'; import { LocalService } from './local.service'; import * as i0 from "@angular/core"; export declare type NcModeType = 'horizontal' | 'vertical'; export declare class TimelineComponent implements OnChanges { private ls; /** 时间轴数据 */ ncDate: any[]; /** 方向 */ ncMode: NcModeType; /** 当前选中index,可双向绑定 */ ncSelected: number; /** 主轴线颜色 */ ncAxisColor: string; /** 时间轴项颜色 */ ncItemColor: string; /** 时间轴项悬停颜色 */ ncItemHoverColor: string; /** 时间轴项选中颜色 */ ncItemSelectedColor: string; /** 刻度颜色 */ ncScaleColor: string; /** 刻度文字颜色 */ ncScaleTextColor: string; /** 选中项改变事件 */ ncSelectedChange: EventEmitter<any>; /** 点击事件 */ ncClick: EventEmitter<any>; scaleArr: Array<any>; dateObjectArr: Array<any>; scaleObjectArr: Array<any>; constructor(ls: LocalService); ngOnChanges(changes: SimpleChanges): void; init(): void; setLeftValue(arr: Array<any>): any[]; itemClick(date: string, index: number): void; static ɵfac: i0.ɵɵFactoryDeclaration<TimelineComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<TimelineComponent, "nc-timeline", never, { "ncDate": "ncDate"; "ncMode": "ncMode"; "ncSelected": "ncSelected"; "ncAxisColor": "ncAxisColor"; "ncItemColor": "ncItemColor"; "ncItemHoverColor": "ncItemHoverColor"; "ncItemSelectedColor": "ncItemSelectedColor"; "ncScaleColor": "ncScaleColor"; "ncScaleTextColor": "ncScaleTextColor"; }, { "ncSelectedChange": "ncSelectedChange"; "ncClick": "ncClick"; }, never, never>; }