[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
+1 -1
View File
@@ -1,7 +1,7 @@
import { isDef } from '..';
import { isNumber } from '../validate/number';
export function suffixPx(value?: string | number): string | undefined {
export function addUnit(value?: string | number): string | undefined {
if (!isDef(value)) {
return undefined;
}
+1 -1
View File
@@ -1,7 +1,7 @@
import Vue from 'vue';
export { createNamespace } from './create';
export { suffixPx } from './format/unit';
export { addUnit } from './format/unit';
export const isServer: boolean = Vue.prototype.$isServer;