import { InjectionToken } from '@angular/core'; export interface LoadingConfig { width?: number; container?: any; message?: string; position?: string; template?: string; type?: number; /** 延迟1s 后在显示 */ delay?: number; } export const loaddingDefaultConfig = { width: 30, container: 'body', message: '正在加载中,请稍候...', posion: 'center', type: 0, delay: 300 }; export const LOADING_DEFAULT_CONFIG = new InjectionToken('loading default options.');