UNPKG

@delon/abc

Version:

Common business components of ng-alain.

37 lines (36 loc) 1 kB
import { TemplateRef } from '@angular/core'; import type { NzSafeAny } from 'ng-zorro-antd/core/types'; export interface NoticeItem { [key: string]: NzSafeAny; title: string; list: NoticeIconList[]; /** 空列表文本,默认:`无通知` */ emptyText?: string | TemplateRef<void>; /** 空列表图像 */ emptyImage?: string; /** 清空文本,默认:`清空` */ clearText?: string; } export interface NoticeIconList { [key: string]: NzSafeAny; /** 头像图片链接 */ avatar?: string; /** 标题 */ title?: string | TemplateRef<{ $implicit: NoticeIconList; }>; /** 描述信息 */ description?: string | TemplateRef<{ $implicit: NoticeIconList; }>; /** 时间戳 */ datetime?: string | Date | number; /** 额外信息,在列表项右上角 */ extra?: string; /** 是否已读状态 */ read?: boolean; } export interface NoticeIconSelect { title: string; item: NoticeItem; }