Skip to content

Commit

Permalink
ver. 0.1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
光弘 committed Mar 23, 2017
1 parent 04aa213 commit 2395965
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 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-input-form-field",
"version": "0.1.8",
"version": "0.1.9",
"description": "uxcore-input-form-field component for uxcore.",
"repository": "https://github.com/uxcore/uxcore-input-form-field.git",
"author": "eternalsky",
Expand Down
8 changes: 6 additions & 2 deletions src/addons/FormCount.jsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
const classnames = require('classnames');
const React = require('react');

const FormCount = props => <div className={props.prefixCls}>
const FormCount = props => <div
className={classnames(props.prefixCls, {
[`${props.prefixCls}-overflow`]: parseInt(props.length, 10) > parseInt(props.total, 10),
})}
>
<span
className={classnames({
[`${props.prefixCls}-actual`]: true,
[`${props.prefixCls}-overflow`]: parseInt(props.length, 10) > parseInt(props.total, 10),
[`${props.prefixCls}-actual-overflow`]: parseInt(props.length, 10) > parseInt(props.total, 10),
})}
>{props.length}</span>
<span className={`${props.prefixCls}-slash`}>/</span>
Expand Down

0 comments on commit 2395965

Please sign in to comment.