@base-web-kits/base-tools-web 1.1.0-alpha.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -574,9 +574,9 @@ __export(ts_exports, {
|
|
|
574
574
|
appendUrlParam: () => appendUrlParam,
|
|
575
575
|
arrayMove: () => arrayMove,
|
|
576
576
|
buildOSSUrl: () => buildOSSUrl,
|
|
577
|
-
createRandId: () => createRandId,
|
|
578
577
|
createTimeRandId: () => createTimeRandId,
|
|
579
578
|
createUUID: () => createUUID,
|
|
579
|
+
createViewRandId: () => createViewRandId,
|
|
580
580
|
dayjs: () => import_dayjs.default,
|
|
581
581
|
getAgeByBirthdate: () => getAgeByBirthdate,
|
|
582
582
|
getByteLength: () => getByteLength,
|
|
@@ -1025,7 +1025,7 @@ function createUUID() {
|
|
|
1025
1025
|
return v.toString(16);
|
|
1026
1026
|
});
|
|
1027
1027
|
}
|
|
1028
|
-
function
|
|
1028
|
+
function createViewRandId(prefix = "id_") {
|
|
1029
1029
|
return `${prefix}${Math.random().toString(36).substring(2, 16)}`;
|
|
1030
1030
|
}
|
|
1031
1031
|
function createTimeRandId(digits = 6) {
|