fix media item sort
This commit is contained in:
@ -15,6 +15,10 @@ export type Attachment = {
|
||||
/** 文件名 */
|
||||
name: string;
|
||||
|
||||
mimeType?: string;
|
||||
|
||||
metadata?: string | ImageMetadata;
|
||||
|
||||
/** 文件 MD5 */
|
||||
md5: string;
|
||||
|
||||
@ -38,6 +42,16 @@ export enum MediaAttachType {
|
||||
THUMB = "THUMB"
|
||||
}
|
||||
|
||||
/** 图片附件元数据 */
|
||||
export type ImageMetadata = {
|
||||
|
||||
/** 宽度 */
|
||||
width: number;
|
||||
|
||||
/** 高度 */
|
||||
height: number;
|
||||
}
|
||||
|
||||
/** 媒体附件扩展数据 */
|
||||
export type MediaAttachExt = {
|
||||
|
||||
@ -52,4 +66,10 @@ export type MediaAttachExt = {
|
||||
|
||||
/** true 为视频 */
|
||||
isVideo: boolean;
|
||||
|
||||
/** 原图宽度(像素) */
|
||||
width?: number;
|
||||
|
||||
/** 原图高度(像素) */
|
||||
height?: number;
|
||||
}
|
||||
|
||||
@ -31,11 +31,14 @@ export type Journal = {
|
||||
/** 时间 */
|
||||
time?: string;
|
||||
|
||||
/** 时间 */
|
||||
/** 详细时间 */
|
||||
datetime?: string;
|
||||
|
||||
/** 附件(照片、视频等) */
|
||||
items?: Attachment[];
|
||||
|
||||
/** 分列后的 items,用于瀑布流展示 */
|
||||
columnedItems?: MediaItem[][];
|
||||
|
||||
/** 媒体项(由附件转) */
|
||||
mediaItems?: MediaItem[];
|
||||
|
||||
@ -18,6 +18,15 @@ export type MediaItem = {
|
||||
|
||||
/** 附件 ID */
|
||||
attachmentId: number;
|
||||
|
||||
/** 原图宽度 */
|
||||
width?: number;
|
||||
|
||||
/** 原图高度 */
|
||||
height?: number;
|
||||
|
||||
/** 原始索引(用于预览时定位) */
|
||||
originalIndex?: number;
|
||||
}
|
||||
|
||||
/** 微信媒体项目 */
|
||||
|
||||
Reference in New Issue
Block a user