♻️ 公告页样式重构

This commit is contained in:
BTMuli
2023-10-15 16:57:48 +08:00
parent cbce3eda60
commit 3691397cec
4 changed files with 158 additions and 152 deletions

View File

@@ -1,14 +1,13 @@
/**
* @file types App Announcement.d.ts
* @description 应用公告相关类型定义文件
* @author BTMuli<bt-muli@outlook.com>
* @since Alpha v0.1.5
* @since Beta v0.3.3
*/
declare namespace TGApp.App.Announcement {
/**
* @description 渲染用的公告列表数据类型
* @since Alpha v0.1.5
* @since Beta v0.3.3
* @interface ListCard
* @property {number} id - 公告 ID
* @property {string} title - 公告标题
@@ -16,18 +15,18 @@ declare namespace TGApp.App.Announcement {
* @property {string} banner - 公告横幅
* @property {string} typeLabel - 公告类型标签
* @property {string} tagIcon - 公告标签图标
* @property {string} startTime - 公告开始时间
* @property {string} endTime - 公告结束时间
* @property {string} tagLabel - 公告标签文字
* @property {string} timeStr - 公告时间字符串
* @return ListCard
*/
export interface ListCard {
interface ListCard {
id: number;
title: string;
subtitle: string;
banner: string;
typeLabel: string;
tagIcon: string;
startTime: string;
endTime: string;
tagLabel: string;
timeStr: string;
}
}