+
+
+
+
+
+
+
+
+
+```
+
+### MediaItem 类型
+
+组件内部使用 `MediaItem` 类型表示文件信息,定义在 `modules/media/types.ts`:
+
+```modules/media/types.ts#L28-38
+export interface MediaItem {
+ id: number;
+ originalName: string; // 原始文件名
+ storedName: string; // 存储文件名
+ mimeType: string; // MIME 类型,如 'image/jpeg'
+ fileSize: number; // 文件大小(字节)
+ fileKey: string; // 存储键
+ url: string; // 文件访问 URL
+ thumbnailUrl: string | null; // 缩略图 URL(图片/视频)
+ path: string | null; // 存储路径
+ metadata: string | null; // 元数据 JSON 字符串
+ uploadedBy: number; // 上传者用户 ID
+ uploadedAt: string; // 上传时间 ISO 字符串
+}
+```
+
+### 使用建议
+
+1. **配合 v-if 使用**:建议使用 `v-if` 控制组件实例化,这样每次打开都会重新加载文件列表:
+ ```vue
+