mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 11:17:41 +00:00
[improvement] rename suffixPx to addUnit
This commit is contained in:
@@ -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}
|
||||
|
Reference in New Issue
Block a user