Group 配置 label 了就用 formItem 格式输出,水平模式会有个默认的 gap

This commit is contained in:
2betop 2021-07-14 18:36:06 +08:00
parent b7036a2930
commit ad20763066

View File

@ -216,7 +216,7 @@ export class ControlGroupRenderer extends React.Component<InputGroupProps> {
render() {
const {label, ...rest} = this.props;
if (label) {
if (typeof label !== 'undefined') {
return (
<FormItemWrap
{...(rest as any)}