UNPKG

snowy-designer

Version:

基于Epic-Designer-Pro版本的设计器,可视化开发页面表单

27 lines (26 loc) 591 B
function o(t = 6, e = "string") { let r = ""; if (e === "string") { const n = "abcdefghijklmnopqrstuvwxyz0123456789"; for (let a = 0; a < t; a++) { const i = Math.floor(Math.random() * n.length); r += n[i]; } } if (e === "number") for (let n = 0; n < t; n++) r += Math.floor(Math.random() * 10); return r; } function l(t) { return t.charAt(0).toUpperCase() + t.slice(1); } function c(t) { const e = t.lastIndexOf("/"); return e === -1 ? t : t.slice(e + 1); } export { l as capitalizeFirstLetter, c as getFileNameByUrl, o as getUUID };