- 新增歌单管理界面,支持添加和删除歌单 - 在MusicLibModel中添加musicCount字段显示歌曲数量 - 优化歌词编辑界面,添加加载状态提示 - 优化UI细节和路由视图加载时机 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
43 lines
861 B
TypeScript
43 lines
861 B
TypeScript
export interface MusicModel {
|
|
_id: string
|
|
name: string // 文件名
|
|
ext: string // 扩展名
|
|
md5?: string // md5哈希值
|
|
size: number // 文件大小
|
|
title?: string // 标题
|
|
album?: string // 唱片集
|
|
artist?: string // 艺术家
|
|
libId: string // 歌单ID
|
|
lyricId: string // 歌词ID
|
|
isEditing?: boolean // 是否正在编辑当前行
|
|
}
|
|
|
|
export interface MusicLibModel {
|
|
_id: string
|
|
name: string // 歌单名称
|
|
path: string // 歌单文件路径
|
|
musicCount: number // 歌曲数量
|
|
}
|
|
|
|
export interface MusicLyricModel {
|
|
_id?: string
|
|
cloudId?: number
|
|
name?: string
|
|
lyric?: string
|
|
}
|
|
|
|
export interface MusicPlayerItem {
|
|
id: number
|
|
title: string
|
|
artist?: string
|
|
album?: string
|
|
src: string
|
|
pic: string
|
|
lrc?: string
|
|
}
|
|
|
|
export interface StatType {
|
|
duration: number,
|
|
loadedTime: number,
|
|
playedTime: number,
|
|
} |