This commit is contained in:
chenos 2021-07-23 21:04:57 +08:00
parent 5264d9a386
commit 6b419fc5cd

View File

@ -689,6 +689,7 @@ AddNew.FormItem = observer((props: any) => {
); );
}).open({ }).open({
initialValues: { initialValues: {
interface: item.name,
...item.default, ...item.default,
key: uid(), key: uid(),
name: `f_${uid()}`, name: `f_${uid()}`,
@ -802,7 +803,9 @@ AddNew.PaneItem = observer((props: any) => {
'x-decorator': 'CardItem', 'x-decorator': 'CardItem',
'x-component': 'Form', 'x-component': 'Form',
'x-read-pretty': true, 'x-read-pretty': true,
'x-component-props': {}, 'x-component-props': {
useValues: '{{ Table.useTableRow }}',
},
'x-designable-bar': 'Form.DesignableBar', 'x-designable-bar': 'Form.DesignableBar',
properties: { properties: {
[uid()]: { [uid()]: {
@ -846,6 +849,7 @@ AddNew.PaneItem = observer((props: any) => {
'x-decorator': 'CardItem', 'x-decorator': 'CardItem',
'x-component': 'Form', 'x-component': 'Form',
'x-component-props': { 'x-component-props': {
useValues: '{{ Table.useTableRow }}',
showDefaultButtons: true, showDefaultButtons: true,
}, },
'x-designable-bar': 'Form.DesignableBar', 'x-designable-bar': 'Form.DesignableBar',