ivue-material-plus
Version:
A high quality UI components Library with Vue.js
17 lines (14 loc) • 337 B
JavaScript
import { isString } from '@vue/shared';
import { isNumber } from '@vueuse/core';
function addUnit(value, defaultUnit = "px") {
if (!value) {
return "";
}
if (isString(value)) {
return value;
} else if (isNumber(value)) {
return `${value}${defaultUnit}`;
}
}
export { addUnit };
//# sourceMappingURL=style.mjs.map