@topvisor/ui
Version:
Topvisor UI-kit Vue
11 lines (10 loc) • 327 B
JavaScript
import { C as a, a as o } from "../.chunks/forms-EIQ_3SBd.es.js";
const i = (t, e, c = a.state.currency) => {
e = e ?? o().value;
let r = t.toLocaleString(e, { style: "currency", currency: c, maximumFractionDigits: 2 });
return r = r.replace(",", "."), r;
};
export {
i as genPrice
};
//# sourceMappingURL=price.js.map