@yelon/abc
Version:
Common business components of ng-yunzai.
36 lines (35 loc) • 934 B
TypeScript
import { TemplateRef } from '@angular/core';
export interface NoticeItem {
[]: any;
title: string;
list: NoticeIconList[];
/** 空列表文本,默认:`无通知` */
emptyText?: string | TemplateRef<void>;
/** 空列表图像 */
emptyImage?: string;
/** 清空文本,默认:`清空` */
clearText?: string;
}
export interface NoticeIconList {
[]: any;
/** 头像图片链接 */
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;
}