@ohayojp/util
Version:
Universal toolset of ohayojp.
28 lines (27 loc) • 715 B
TypeScript
import { SafeHtml } from '@angular/platform-browser';
export interface OhayoLoadingConfig {
/**
* 类型,默认:`spin`
*/
type?: 'text' | 'icon' | 'spin' | 'custom';
/**
* 显示文本,默认:`加载中...`
*/
text?: string;
icon?: {
/** `nz-icon.nzType`,默认:`loading` */
type?: string;
/** `nz-icon.nzTheme`,默认:`outline` */
theme?: 'fill' | 'outline' | 'twotone';
/** `nz-icon.nzSpin`,默认:`true` */
spin?: boolean;
};
custom?: {
html?: string | SafeHtml;
style?: object;
};
/**
* 延迟,默认:`0`
*/
delay?: number;
}