diff --git a/packages/plugins/@nocobase/plugin-file-manager/src/client/templates/file.ts b/packages/plugins/@nocobase/plugin-file-manager/src/client/templates/file.ts index 7d06ed0ca0..6b9e36b082 100644 --- a/packages/plugins/@nocobase/plugin-file-manager/src/client/templates/file.ts +++ b/packages/plugins/@nocobase/plugin-file-manager/src/client/templates/file.ts @@ -157,12 +157,24 @@ export class FileCollectionTemplate extends CollectionTemplate { }, ...getConfigurableProperties('category', 'description'), storage: { - title: `{{t("File storage", { ns: "${NAMESPACE}" })}}`, - type: 'hasOne', + type: 'string', name: 'storage', + title: `{{t("File storage", { ns: "${NAMESPACE}" })}}`, 'x-decorator': 'FormItem', - 'x-component': 'Select', - 'x-reactions': ['{{useAsyncDataSource(loadStorages)}}'], + 'x-component': 'RemoteSelect', + 'x-component-props': { + service: { + resource: 'storages', + params: { + // pageSize: -1 + }, + }, + manual: false, + fieldNames: { + label: 'title', + value: 'name', + }, + }, }, ...getConfigurableProperties('presetFields'), };