fix: 组件属性优先默认 (#2581)
This commit is contained in:
parent
8284d106e2
commit
ed8cffb2a1
|
|
@ -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;
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue