[improvement] rename suffixPx to addUnit

This commit is contained in:
陈嘉涵
2019-07-08 17:42:24 +08:00
parent 1f03a703f5
commit 4b829ea7dd
15 changed files with 37 additions and 37 deletions

View File

@@ -3,7 +3,7 @@
*/
import Icon from '../icon';
import { ChildrenMixin } from './relation';
import { suffixPx } from '../utils';
import { addUnit } from '../utils';
export const CheckboxMixin = ({ parent, bem, role }) => ({
mixins: [ChildrenMixin(parent)],
@@ -65,7 +65,7 @@ export const CheckboxMixin = ({ parent, bem, role }) => ({
const Children = [
<div
class={bem('icon', [this.shape, { disabled: this.isDisabled, checked }])}
style={{ fontSize: suffixPx(this.iconSize) }}
style={{ fontSize: addUnit(this.iconSize) }}
onClick={this.onClickIcon}
>
{CheckIcon}