@base-web-kits/base-tools-ts 1.0.2 → 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/README.md +2 -2
- package/dist/base-tools-ts.umd.global.js +2 -2
- package/dist/base-tools-ts.umd.global.js.map +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/string/random.d.ts +3 -3
- package/dist/string/random.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/ts/string/random.ts +3 -3
package/README.md
CHANGED
|
@@ -46,9 +46,9 @@ import { useCountDown } from '@base-web-kits/base-tools-react';
|
|
|
46
46
|
import { useResizeObserver } from '@base-web-kits/base-tools-vue';
|
|
47
47
|
|
|
48
48
|
// Uni 模块
|
|
49
|
-
import {
|
|
49
|
+
import { setBaseToolsConfig, chooseMedia, toPayWx } from '@base-web-kits/base-tools-uni';
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
setBaseToolsConfig({
|
|
52
52
|
pathHome: '/pages/tabbar/home/index',
|
|
53
53
|
pathLogin: '/pages/login/index',
|
|
54
54
|
pathWebview: '/pages/webview/index',
|
|
@@ -736,9 +736,9 @@ var baseToolsTS = (() => {
|
|
|
736
736
|
compact: () => compact,
|
|
737
737
|
constantCase: () => constantCase,
|
|
738
738
|
countBy: () => countBy,
|
|
739
|
-
createRandId: () => createRandId,
|
|
740
739
|
createTimeRandId: () => createTimeRandId,
|
|
741
740
|
createUUID: () => createUUID,
|
|
741
|
+
createViewRandId: () => createViewRandId,
|
|
742
742
|
curry: () => curry,
|
|
743
743
|
curryRight: () => curryRight,
|
|
744
744
|
dayjs: () => import_dayjs.default,
|
|
@@ -5371,7 +5371,7 @@ var baseToolsTS = (() => {
|
|
|
5371
5371
|
return v.toString(16);
|
|
5372
5372
|
});
|
|
5373
5373
|
}
|
|
5374
|
-
function
|
|
5374
|
+
function createViewRandId(prefix = "id_") {
|
|
5375
5375
|
return `${prefix}${Math.random().toString(36).substring(2, 16)}`;
|
|
5376
5376
|
}
|
|
5377
5377
|
function createTimeRandId(digits = 6) {
|