UNPKG

ng-cw-v12

Version:

Angular UI Component Library

38 lines (37 loc) 1.53 kB
import { ElementRef, Renderer2, SimpleChanges, OnChanges } from '@angular/core'; import * as i0 from "@angular/core"; export declare type NcTypeType = 'circle' | 'dot'; export declare type NcSizeType = 'small' | 'default' | 'large'; export declare class SpinDirective implements OnChanges { private el; private renderer; /** 是否加载中 */ private _loading; set ncLoading(value: boolean | string); get ncLoading(): boolean; /** 加载类型 */ ncType: NcTypeType; /** 加载提示 */ ncTip: string; /** 加载大小 */ ncSize: NcSizeType; /** 遮罩颜色 */ ncMaskColor: string; /** 提示颜色 */ ncTipColor: string; /** 轨道颜色 */ ncTrackColor: string; /** 指示器颜色 */ ncIndicatorColor: string; private spinContainer; private readonly animationName; private keyframesStyle; constructor(el: ElementRef, renderer: Renderer2); ngOnChanges(changes: SimpleChanges): void; private createSpinContainer; private createCircleSpinner; private createDotSpinner; private removeSpinContainer; static ɵfac: i0.ɵɵFactoryDeclaration<SpinDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<SpinDirective, "[ncSpin]", never, { "ncLoading": "ncLoading"; "ncType": "ncType"; "ncTip": "ncTip"; "ncSize": "ncSize"; "ncMaskColor": "ncMaskColor"; "ncTipColor": "ncTipColor"; "ncTrackColor": "ncTrackColor"; "ncIndicatorColor": "ncIndicatorColor"; }, {}, never>; }