feat(assets): 素材选择器 - 支持按媒体类型筛选并覆盖远程项目资产

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
ddCatandCursor committed 2026-09-09 10:34:10 +08:00
1 parent 38e7ff1a17
commit fbfb233014
6 files changed
+92 -7

No files matched your search

+1
View File
@@ -442,6 +442,7 @@ export default function ProjectAssetsView({ detail, refreshProject }: ProjectDet
<AssetLibraryPickerModal
open={addOpen}
remoteLibrary
mediaKinds={["image", "video", "audio", "text"]}
items={availablePickerItems}
categoryLabels={{ ...pickerCategoryLabels, ...externalAssetSources.categoryLabels }}
folders={externalAssetSources.folders}
@@ -166,6 +166,7 @@ export default function ProjectSettingsView({ detail, refreshProject }: ProjectD
<AssetLibraryPickerModal
open={coverPickerOpen}
items={coverPickerItems}
mediaKinds={["image"]}
categoryLabels={{ all: "全部图片", image: "图片" }}
initialCategory="image"
initialSelectedIds={currentCoverItemId ? [currentCoverItemId] : []}