feat(assets): 素材选择器 - 支持按媒体类型筛选并覆盖远程项目资产
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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] : []}
|
||||
|
||||
Reference in New Issue
Block a user