mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 03:36:05 +00:00
chore: associate field
This commit is contained in:
parent
2d64123b2a
commit
824629b7fe
@ -1,5 +1,6 @@
|
||||
import { ISchema } from '@formily/react';
|
||||
import { cloneDeep } from 'lodash';
|
||||
import { uid } from '@formily/shared';
|
||||
import {
|
||||
constraintsProps,
|
||||
recordPickerSelector,
|
||||
@ -111,7 +112,7 @@ export const o2m: IField = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
block: {
|
||||
type: 'void',
|
||||
type: 'object',
|
||||
'x-decorator': 'SubFormProvider',
|
||||
'x-decorator-props': {
|
||||
collection: field.target,
|
||||
@ -126,7 +127,7 @@ export const o2m: IField = {
|
||||
bordered: true,
|
||||
},
|
||||
properties: {
|
||||
[field.name]: {
|
||||
[uid()]: {
|
||||
type: 'object',
|
||||
'x-component': 'FormV2',
|
||||
'x-component-props': {
|
||||
|
Loading…
Reference in New Issue
Block a user