[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 Cell from '../cell';
import { cellProps } from '../cell/shared';
import { preventDefault } from '../utils/dom/event';
import { getRootScrollTop } from '../utils/dom/scroll';
import { createNamespace, isObj, isDef, suffixPx } from '../utils';
import { createNamespace, isObj, isDef, addUnit } from '../utils';
import { isIOS } from '../utils/validate/system';
const [createComponent, bem] = createNamespace('field');
@@ -76,7 +76,7 @@ export default createComponent({
labelStyle() {
const { labelWidth } = this;
if (labelWidth) {
return { width: suffixPx(labelWidth) };
return { width: addUnit(labelWidth) };
}
}
},