From c1215ec29d45ef2ab9009ec4236fb88a7aa89cfe Mon Sep 17 00:00:00 2001 From: katherinehhh Date: Sun, 4 Feb 2024 13:30:22 +0800 Subject: [PATCH] fix: targetkey & source key --- .../core/client/src/collection-manager/interfaces/m2m.tsx | 4 ++-- .../core/client/src/collection-manager/interfaces/m2o.tsx | 2 +- .../core/client/src/collection-manager/interfaces/o2m.tsx | 4 ++-- .../core/client/src/collection-manager/interfaces/o2o.tsx | 6 +++--- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/core/client/src/collection-manager/interfaces/m2m.tsx b/packages/core/client/src/collection-manager/interfaces/m2m.tsx index 2a6bb9a1e1..033806b2ff 100644 --- a/packages/core/client/src/collection-manager/interfaces/m2m.tsx +++ b/packages/core/client/src/collection-manager/interfaces/m2m.tsx @@ -389,7 +389,7 @@ export class M2MFieldInterface extends CollectionFieldInterface { 'x-component': 'Grid.Col', properties: { sourceKey: { - type: 'void', + type: 'string', title: '{{t("Source key")}}', 'x-decorator': 'FormItem', 'x-component': 'SourceKey', @@ -454,7 +454,7 @@ export class M2MFieldInterface extends CollectionFieldInterface { 'x-component': 'Grid.Col', properties: { targetKey: { - type: 'void', + type: 'string', title: '{{t("Target key")}}', 'x-decorator': 'FormItem', 'x-component': 'TargetKey', diff --git a/packages/core/client/src/collection-manager/interfaces/m2o.tsx b/packages/core/client/src/collection-manager/interfaces/m2o.tsx index 7ce50e2376..634fc328c4 100644 --- a/packages/core/client/src/collection-manager/interfaces/m2o.tsx +++ b/packages/core/client/src/collection-manager/interfaces/m2o.tsx @@ -319,7 +319,7 @@ export class M2OFieldInterface extends CollectionFieldInterface { 'x-component': 'Grid.Col', properties: { targetKey: { - type: 'void', + type: 'string', title: '{{t("Target key")}}', 'x-decorator': 'FormItem', 'x-component': 'TargetKey', diff --git a/packages/core/client/src/collection-manager/interfaces/o2m.tsx b/packages/core/client/src/collection-manager/interfaces/o2m.tsx index f8e7305df3..945ae4afc1 100644 --- a/packages/core/client/src/collection-manager/interfaces/o2m.tsx +++ b/packages/core/client/src/collection-manager/interfaces/o2m.tsx @@ -323,7 +323,7 @@ export class O2MFieldInterface extends CollectionFieldInterface { 'x-component': 'Grid.Col', properties: { sourceKey: { - type: 'void', + type: 'string', title: '{{t("Source key")}}', default: 'id', enum: [{ label: 'ID', value: 'id' }], @@ -366,7 +366,7 @@ export class O2MFieldInterface extends CollectionFieldInterface { 'x-component': 'Grid.Col', properties: { targetKey: { - type: 'void', + type: 'string', title: '{{t("Target key")}}', 'x-decorator': 'FormItem', 'x-component': 'TargetKey', diff --git a/packages/core/client/src/collection-manager/interfaces/o2o.tsx b/packages/core/client/src/collection-manager/interfaces/o2o.tsx index 0fe3ebd826..02c7ff142a 100644 --- a/packages/core/client/src/collection-manager/interfaces/o2o.tsx +++ b/packages/core/client/src/collection-manager/interfaces/o2o.tsx @@ -646,7 +646,7 @@ export class O2OFieldInterface extends CollectionFieldInterface { 'x-component': 'Grid.Col', properties: { sourceKey: { - type: 'void', + type: 'string', title: '{{t("Source key")}}', 'x-decorator': 'FormItem', 'x-component': 'SourceKey', @@ -825,7 +825,7 @@ export class OHOFieldInterface extends CollectionFieldInterface { 'x-component': 'Grid.Col', properties: { sourceKey: { - type: 'void', + type: 'string', title: '{{t("Source key")}}', 'x-decorator': 'FormItem', 'x-component': 'SourceKey', @@ -1018,7 +1018,7 @@ export class OBOFieldInterface extends CollectionFieldInterface { 'x-component': 'Grid.Col', properties: { targetKey: { - type: 'void', + type: 'string', title: '{{t("Target key")}}', 'x-decorator': 'FormItem', 'x-component': 'TargetKey',