[improvement] rename suffixPx to addUnit
This commit is contained in:
@@ -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
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user