mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 13:39:24 +08:00
Merge branch 'main' into next
This commit is contained in:
commit
ff772fc5cf
@ -31,12 +31,7 @@ export const useFieldModeOptions = (props?) => {
|
|||||||
if (!collectionField || !collectionField?.interface) {
|
if (!collectionField || !collectionField?.interface) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (
|
if (!['hasOne', 'hasMany', 'belongsTo', 'belongsToMany', 'belongsToArray'].includes(collectionField.type)) return;
|
||||||
!['o2o', 'oho', 'obo', 'o2m', 'linkTo', 'm2o', 'm2m', 'updatedBy', 'createdBy', 'mbm', 'attachmentURL'].includes(
|
|
||||||
collectionField.interface,
|
|
||||||
)
|
|
||||||
)
|
|
||||||
return;
|
|
||||||
const collection = getCollection(collectionField.target);
|
const collection = getCollection(collectionField.target);
|
||||||
if (collection?.template === 'file') {
|
if (collection?.template === 'file') {
|
||||||
return isReadPretty
|
return isReadPretty
|
||||||
|
Loading…
x
Reference in New Issue
Block a user