Skip to content

Commit

Permalink
ver. 0.2.21
Browse files Browse the repository at this point in the history
  • Loading branch information
光弘 committed Sep 22, 2017
1 parent dc24cae commit 8a4660b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "uxcore-form-field",
"version": "0.2.20",
"version": "0.2.21",
"description": "uxcore-form-field component for uxcore.",
"repository": "https://github.com/uxcore/uxcore-form-field.git",
"author": "eternalsky",
Expand Down
4 changes: 3 additions & 1 deletion src/FormField.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -430,11 +430,13 @@ class FormField extends React.Component {
if (!me.props.standalone) {
style.width = `${(me.props.jsxflex / me.props.totalFlex) * 100}%`;
}
const size = this.getSize();
return (
<div
className={classnames({
[specificCls]: !!specificCls,
[me.props.jsxprefixCls]: true,
[specificCls]: !!specificCls,
[`${me.props.jsxprefixCls}-${size}`]: !!size,
[me.props.className]: !!me.props.className,
[`${me.props.jsxprefixCls}__view`]: mode === Constants.MODE.VIEW,
})}
Expand Down

0 comments on commit 8a4660b

Please sign in to comment.