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