@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.js
CHANGED
|
@@ -507,9 +507,9 @@ __export(ts_exports, {
|
|
|
507
507
|
appendUrlParam: () => appendUrlParam,
|
|
508
508
|
arrayMove: () => arrayMove,
|
|
509
509
|
buildOSSUrl: () => buildOSSUrl,
|
|
510
|
-
createRandId: () => createRandId,
|
|
511
510
|
createTimeRandId: () => createTimeRandId,
|
|
512
511
|
createUUID: () => createUUID,
|
|
512
|
+
createViewRandId: () => createViewRandId,
|
|
513
513
|
dayjs: () => dayjs,
|
|
514
514
|
getAgeByBirthdate: () => getAgeByBirthdate,
|
|
515
515
|
getByteLength: () => getByteLength,
|
|
@@ -959,7 +959,7 @@ function createUUID() {
|
|
|
959
959
|
return v.toString(16);
|
|
960
960
|
});
|
|
961
961
|
}
|
|
962
|
-
function
|
|
962
|
+
function createViewRandId(prefix = "id_") {
|
|
963
963
|
return `${prefix}${Math.random().toString(36).substring(2, 16)}`;
|
|
964
964
|
}
|
|
965
965
|
function createTimeRandId(digits = 6) {
|