mirror of
https://gitee.com/nocobase/nocobase.git
synced 2024-11-29 18:58:26 +08:00
fix(client): support file collection as target of one-to-many association (#5619)
* fix(client): support file collecion as target of one-to-many association * fix(client): fix load collection
This commit is contained in:
parent
38123129e2
commit
b186a5eb3d
@ -118,7 +118,7 @@ export class O2MFieldInterface extends CollectionFieldInterface {
|
||||
type: 'string',
|
||||
title: '{{t("Target collection")}}',
|
||||
required: true,
|
||||
'x-reactions': ['{{useAsyncDataSource(loadCollections, ["file"])}}'],
|
||||
'x-reactions': ['{{useAsyncDataSource(loadCollections)}}'],
|
||||
'x-decorator': 'FormItem',
|
||||
'x-component': 'Select',
|
||||
'x-disabled': '{{ !createOnly }}',
|
||||
|
@ -118,7 +118,7 @@ export class O2OFieldInterface extends CollectionFieldInterface {
|
||||
type: 'string',
|
||||
title: '{{t("Target collection")}}',
|
||||
required: true,
|
||||
'x-reactions': ['{{useAsyncDataSource(loadCollections, ["file"])}}'],
|
||||
'x-reactions': ['{{useAsyncDataSource(loadCollections)}}'],
|
||||
'x-decorator': 'FormItem',
|
||||
'x-component': 'Select',
|
||||
'x-disabled': '{{ !createOnly }}',
|
||||
|
Loading…
Reference in New Issue
Block a user