[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
+3 -3
View File
@@ -1,4 +1,4 @@
import { createNamespace, suffixPx } from '../utils';
import { createNamespace, addUnit } from '../utils';
import { ChildrenMixin } from '../mixins/relation';
import { route, routeProps } from '../utils/router';
import Icon from '../icon';
@@ -26,7 +26,7 @@ export default createComponent({
if (square) {
style.paddingTop = percent;
} else if (gutter) {
const gutterValue = suffixPx(gutter);
const gutterValue = addUnit(gutter);
style.paddingRight = gutterValue;
if (this.index >= columnNum) {
@@ -41,7 +41,7 @@ export default createComponent({
const { square, gutter } = this.parent;
if (square && gutter) {
const gutterValue = suffixPx(gutter);
const gutterValue = addUnit(gutter);
return {
right: gutterValue,