From 6b419fc5cdcb13e0740ac6dac4e4ecad4c6846b5 Mon Sep 17 00:00:00 2001 From: chenos Date: Fri, 23 Jul 2021 21:04:57 +0800 Subject: [PATCH] bugfix --- packages/client/src/schemas/add-new/index.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/client/src/schemas/add-new/index.tsx b/packages/client/src/schemas/add-new/index.tsx index e33d84f05..847d45f3e 100644 --- a/packages/client/src/schemas/add-new/index.tsx +++ b/packages/client/src/schemas/add-new/index.tsx @@ -689,6 +689,7 @@ AddNew.FormItem = observer((props: any) => { ); }).open({ initialValues: { + interface: item.name, ...item.default, key: uid(), name: `f_${uid()}`, @@ -802,7 +803,9 @@ AddNew.PaneItem = observer((props: any) => { 'x-decorator': 'CardItem', 'x-component': 'Form', 'x-read-pretty': true, - 'x-component-props': {}, + 'x-component-props': { + useValues: '{{ Table.useTableRow }}', + }, 'x-designable-bar': 'Form.DesignableBar', properties: { [uid()]: { @@ -846,6 +849,7 @@ AddNew.PaneItem = observer((props: any) => { 'x-decorator': 'CardItem', 'x-component': 'Form', 'x-component-props': { + useValues: '{{ Table.useTableRow }}', showDefaultButtons: true, }, 'x-designable-bar': 'Form.DesignableBar',