@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 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 { setAppConfig, chooseMedia, toPayWx } from '@base-web-kits/base-tools-uni';
49
+ import { setBaseToolsConfig, chooseMedia, toPayWx } from '@base-web-kits/base-tools-uni';
50
50
 
51
- setAppConfig({
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 createRandId(prefix = "id_") {
5374
+ function createViewRandId(prefix = "id_") {
5375
5375
  return `${prefix}${Math.random().toString(36).substring(2, 16)}`;
5376
5376
  }
5377
5377
  function createTimeRandId(digits = 6) {