From a07f1c9a982361e1e4ccf61b9736b1d4322665d7 Mon Sep 17 00:00:00 2001 From: janrywang Date: Wed, 28 Jul 2021 12:11:50 +0800 Subject: [PATCH] fix(designable-antd): add default name value --- designable/antd/src/components/DesignableField/index.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/designable/antd/src/components/DesignableField/index.tsx b/designable/antd/src/components/DesignableField/index.tsx index fed1f3d61ba..be790cfd1e2 100644 --- a/designable/antd/src/components/DesignableField/index.tsx +++ b/designable/antd/src/components/DesignableField/index.tsx @@ -92,6 +92,9 @@ export const createDesignableField = (options: IDesignableFieldProps) => { type: 'string', 'x-decorator': 'FormItem', 'x-component': 'Input', + 'x-component-props': { + defaultValue: node.id, + }, 'x-index': 0, }, title: {