@opentiny/vue-renderless
Version:
An enterprise-class UI component library, support both Vue.js 2 and Vue.js 3, as well as PC and mobile.
17 lines (16 loc) • 474 B
JavaScript
import "../../../chunk-G2ADBYYC.js";
import eqNull from "../base/eqNull";
import isNumber from "../base/isNumber";
const toValString = (obj) => {
if (isNumber(obj)) {
if (String(obj).includes("e-")) {
let isNegative = obj < 0;
return (isNegative ? "-" : "") + "0" + String((isNegative ? Math.abs(obj) : obj) + 1).substr(1);
}
}
return String(eqNull(obj) ? "" : obj);
};
var toString_default = toValString;
export {
toString_default as default
};