fix: 组件属性优先默认 (#2581)

This commit is contained in:
luocong2016 2023-02-27 12:50:11 +08:00 committed by GitHub
parent 8284d106e2
commit ed8cffb2a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 4 deletions

View File

@ -80,10 +80,14 @@
componentProps = componentProps({ schema, tableAction, formModel, formActionType }) ?? {}; componentProps = componentProps({ schema, tableAction, formModel, formActionType }) ?? {};
} }
if (schema.component === 'Divider') { if (schema.component === 'Divider') {
componentProps = Object.assign({ type: 'horizontal' }, componentProps, { componentProps = Object.assign(
{ type: 'horizontal' },
{
orientation: 'left', orientation: 'left',
plain: true, plain: true,
}); },
componentProps,
);
} }
return componentProps as Recordable; return componentProps as Recordable;
}); });