@bit-sun/business-component 1.1.24 → 1.1.25

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.
@@ -0,0 +1,2 @@
1
+ declare const _default: (storageKeyString: string, seconds?: number, tipsCallFunction?: (() => {}) | undefined) => void;
2
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bit-sun/business-component",
3
- "version": "1.1.24",
3
+ "version": "1.1.25",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -13,6 +13,7 @@ const getDicData = (dicCode: string) => {
13
13
  } else {
14
14
  dicData = dictionaryData[dicCode];
15
15
  }
16
+ // @ts-ignore
16
17
  if (!dicData || !dicData.length) {
17
18
  // throw new Error(`当前没有${dicCode}字典值`);
18
19
  }
@@ -24,6 +25,7 @@ const getDictionarySource = (dicCode: string, needConvertInterger = false) => {
24
25
 
25
26
  try {
26
27
  if (needConvertInterger) {
28
+ // @ts-ignore
27
29
  dicData = dicData.map((item: { text: string; value: string }) => ({
28
30
  ...item,
29
31
  value: parseFloat(item.value),
@@ -38,6 +40,7 @@ const getDictionaryTextByValue = (dicCode: string, value: string | number) => {
38
40
 
39
41
  if (value === undefined) return '';
40
42
 
43
+ // @ts-ignore
41
44
  const dicItemArray = dicData?.filter(
42
45
  (item: { value: string }) => item.value === value.toString(),
43
46
  );