未验证 提交 ed8cffb2 编写于 作者: qq_25847755's avatar qq_25847755 提交者: GitHub

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

上级 8284d106
...@@ -80,10 +80,14 @@ ...@@ -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(
orientation: 'left', { type: 'horizontal' },
plain: true, {
}); orientation: 'left',
plain: true,
},
componentProps,
);
} }
return componentProps as Recordable; return componentProps as Recordable;
}); });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册