mirror of
https://gitee.com/nocobase/nocobase.git
synced 2024-12-02 04:07:50 +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',
|
type: 'string',
|
||||||
title: '{{t("Target collection")}}',
|
title: '{{t("Target collection")}}',
|
||||||
required: true,
|
required: true,
|
||||||
'x-reactions': ['{{useAsyncDataSource(loadCollections, ["file"])}}'],
|
'x-reactions': ['{{useAsyncDataSource(loadCollections)}}'],
|
||||||
'x-decorator': 'FormItem',
|
'x-decorator': 'FormItem',
|
||||||
'x-component': 'Select',
|
'x-component': 'Select',
|
||||||
'x-disabled': '{{ !createOnly }}',
|
'x-disabled': '{{ !createOnly }}',
|
||||||
|
@ -118,7 +118,7 @@ export class O2OFieldInterface extends CollectionFieldInterface {
|
|||||||
type: 'string',
|
type: 'string',
|
||||||
title: '{{t("Target collection")}}',
|
title: '{{t("Target collection")}}',
|
||||||
required: true,
|
required: true,
|
||||||
'x-reactions': ['{{useAsyncDataSource(loadCollections, ["file"])}}'],
|
'x-reactions': ['{{useAsyncDataSource(loadCollections)}}'],
|
||||||
'x-decorator': 'FormItem',
|
'x-decorator': 'FormItem',
|
||||||
'x-component': 'Select',
|
'x-component': 'Select',
|
||||||
'x-disabled': '{{ !createOnly }}',
|
'x-disabled': '{{ !createOnly }}',
|
||||||
|
Loading…
Reference in New Issue
Block a user