mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-25 11:40:04 +08:00
Merge branch 'master' of github.com:ant-design/ant-design
This commit is contained in:
commit
b9793662ac
@ -20,6 +20,7 @@ export default class FormItem extends React.Component {
|
||||
className: React.PropTypes.string,
|
||||
id: React.PropTypes.string,
|
||||
children: React.PropTypes.node,
|
||||
colon: React.PropTypes.bool
|
||||
}
|
||||
|
||||
static contextTypes = {
|
||||
@ -204,6 +205,7 @@ export default class FormItem extends React.Component {
|
||||
'ant-row': true,
|
||||
[`${prefixCls}-item`]: true,
|
||||
[`${prefixCls}-item-with-help`]: !!this.getHelpMsg(),
|
||||
[`${prefixCls}-no-colon`]: !this.props.colon,
|
||||
[`${props.className}`]: !!props.className,
|
||||
};
|
||||
|
||||
|
@ -97,6 +97,10 @@ input[type="checkbox"] {
|
||||
.ant-switch {
|
||||
margin: 4px 0;
|
||||
}
|
||||
|
||||
&.@{form-prefix-cls}-no-colon > label:after {
|
||||
content: " ";
|
||||
}
|
||||
}
|
||||
|
||||
.@{form-prefix-cls}-explain {
|
||||
|
Loading…
Reference in New Issue
Block a user