@indfnd/utils 0.1.2 → 0.1.4

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.
Files changed (54) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/ind-utils.es.js +8 -4
  3. package/dist/ind-utils.umd.cjs +12 -12
  4. package/global.d.ts +2 -0
  5. package/package.json +1 -1
  6. package/src/api/index-desc.ts +6 -6
  7. package/src/api/platform/user.ts +5 -3
  8. package/types/api/com.d.ts +2 -2
  9. package/types/api/index-desc.d.ts +4 -2
  10. package/types/api/index-desc.d.ts.map +1 -1
  11. package/types/api/index.d.ts +6 -6
  12. package/types/api/item.d.ts +4 -4
  13. package/types/api/platform/dict.d.ts +4 -4
  14. package/types/api/platform/index.d.ts +5 -5
  15. package/types/api/platform/menu.d.ts +11 -17
  16. package/types/api/platform/oss.d.ts +6 -12
  17. package/types/api/platform/user.d.ts +12 -17
  18. package/types/api/platform/user.d.ts.map +1 -1
  19. package/types/api/user.d.ts +2 -2
  20. package/types/config/base.config.d.ts +30 -30
  21. package/types/config/dev.config.d.ts +3 -3
  22. package/types/config/index.d.ts +57 -57
  23. package/types/config/prod.config.d.ts +3 -3
  24. package/types/index.d.ts +4 -4
  25. package/types/utils/base64.d.ts +22 -22
  26. package/types/utils/blob.d.ts +3 -3
  27. package/types/utils/cache/dict-cache.d.ts +3 -3
  28. package/types/utils/cache/index-desc.d.ts +4 -4
  29. package/types/utils/cache/index.d.ts +4 -4
  30. package/types/utils/cache/permission-cache.d.ts +4 -4
  31. package/types/utils/cache/user-cache.d.ts +4 -4
  32. package/types/utils/date.d.ts +4 -4
  33. package/types/utils/enum.d.ts +39 -43
  34. package/types/utils/event.d.ts +5 -13
  35. package/types/utils/excel.d.ts +4 -4
  36. package/types/utils/half-year.d.ts +6 -6
  37. package/types/utils/index.d.ts +20 -20
  38. package/types/utils/is-type.d.ts +33 -33
  39. package/types/utils/mime-type.d.ts +67 -67
  40. package/types/utils/number.d.ts +8 -8
  41. package/types/utils/quarter.d.ts +7 -7
  42. package/types/utils/request/axios.extends.d.ts +3 -7
  43. package/types/utils/request/cache-rules.d.ts +3 -3
  44. package/types/utils/request/content-type.d.ts +9 -9
  45. package/types/utils/request/index.d.ts +8 -8
  46. package/types/utils/request/interceptors.d.ts +4 -4
  47. package/types/utils/request/url-params.d.ts +6 -6
  48. package/types/utils/sm3/index.d.ts +6 -6
  49. package/types/utils/sm3/sm3.d.ts +3 -3
  50. package/types/utils/storage.d.ts +8 -8
  51. package/types/utils/table.d.ts +31 -40
  52. package/types/utils/token.d.ts +3 -3
  53. package/types/utils/uuid.d.ts +4 -4
  54. package/types/utils/validate.d.ts +5 -5
package/global.d.ts CHANGED
@@ -1,6 +1,8 @@
1
1
  interface Window {
2
2
  sessionNotValidHandler: () => void
3
3
  apiErrorHandler: (msg: string) => void
4
+ NodeRSA: any
5
+ Base64: any
4
6
  }
5
7
 
6
8
  interface Date {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indfnd/utils",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "author": "huxuetong",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -4,11 +4,11 @@ import { config } from '@/config'
4
4
  const UC_CONTEXT = config.ucExtServerContext
5
5
 
6
6
  export function listIndexDescApi(params) {
7
- // return Promise.resolve({
8
- // data: [
9
- // { indexCode: 'comName', indexName: '商业公司', indexDesc: '这个是商业公司的描述' },
10
- // { indexCode: 'comSname', indexName: '商业公司简称', indexDesc: '这个是商业公司简称的描述' },
11
- // ],
12
- // })
7
+ return Promise.resolve({
8
+ data: [
9
+ // { indexCode: 'comName', indexName: '商业公司', indexDesc: '这个是商业公司的描述' },
10
+ // { indexCode: 'comSname', indexName: '商业公司简称', indexDesc: '这个是商业公司简称的描述' },
11
+ ],
12
+ })
13
13
  return axios.get(`${UC_CONTEXT}/index-desc/list`, { params })
14
14
  }
@@ -1,11 +1,13 @@
1
- import { axios, Base64ForLogin } from '@/utils'
1
+ import { axios } from '@/utils'
2
2
  import { config } from '@/config'
3
3
 
4
4
  const CONTEXT = config.authServerContext
5
5
 
6
6
  export function loginApi({ userName, password, validCodeId, validCodeInput }) {
7
- let upw = encodeURIComponent(password)
8
- upw = Base64ForLogin.encode(upw)
7
+ let publicKey = `MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDD2iolFHi+6bUh+V6JPr2gFJQsC0QNsq2EwI0MAPlI5AaizBHRVMjX1H73ptuDSiT3QZh4kk74w+eDLyYj4JXo1SvvDw5w378SLhUIDzH0zrlt3oleT3kiPQxC17yM3Os/wrtHO7IC+KGo9qrg+LJFyR/fYYHcyH9i+JAejBEnJQIDAQAB`
8
+ let nodeRSA = new window.NodeRSA(publicKey, 'pkcs8-public')
9
+ let rsaPaswword = nodeRSA.encrypt(password, 'base64')
10
+ let upw = window.Base64.encode(rsaPaswword)
9
11
 
10
12
  const data = { usn: userName, upw, validCodeId, validCodeInput }
11
13
  return axios.formPost(CONTEXT + '/sso/auth/login', data)
@@ -1,2 +1,2 @@
1
- export declare function listComTreeApi(params: any): Promise<import('axios').AxiosResponse<any>>
2
- //# sourceMappingURL=com.d.ts.map
1
+ export declare function listComTreeApi(params: any): Promise<import("axios").AxiosResponse<any>>;
2
+ //# sourceMappingURL=com.d.ts.map
@@ -1,2 +1,4 @@
1
- export declare function listIndexDescApi(params: any): Promise<import('axios').AxiosResponse<any>>
2
- //# sourceMappingURL=index-desc.d.ts.map
1
+ export declare function listIndexDescApi(params: any): Promise<import("axios").AxiosResponse<any>> | Promise<{
2
+ data: any[];
3
+ }>;
4
+ //# sourceMappingURL=index-desc.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-desc.d.ts","sourceRoot":"","sources":["../../src/api/index-desc.ts"],"names":[],"mappings":"AAKA,wBAAgB,gBAAgB,CAAC,MAAM,KAAA,+CAQtC"}
1
+ {"version":3,"file":"index-desc.d.ts","sourceRoot":"","sources":["../../src/api/index-desc.ts"],"names":[],"mappings":"AAKA,wBAAgB,gBAAgB,CAAC,MAAM,KAAA;;GAQtC"}
@@ -1,6 +1,6 @@
1
- export * from './platform'
2
- export * from './com'
3
- export * from './index-desc'
4
- export * from './item'
5
- export * from './user'
6
- //# sourceMappingURL=index.d.ts.map
1
+ export * from './platform';
2
+ export * from './com';
3
+ export * from './index-desc';
4
+ export * from './item';
5
+ export * from './user';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- export declare function listItemTreeApi(params: any): Promise<import('axios').AxiosResponse<any>>
2
- export declare function getPriceInfo(): Promise<import('axios').AxiosResponse<any>>
3
- export declare function getItem(params: any): Promise<import('axios').AxiosResponse<any>>
4
- //# sourceMappingURL=item.d.ts.map
1
+ export declare function listItemTreeApi(params: any): Promise<import("axios").AxiosResponse<any>>;
2
+ export declare function getPriceInfo(): Promise<import("axios").AxiosResponse<any>>;
3
+ export declare function getItem(params: any): Promise<import("axios").AxiosResponse<any>>;
4
+ //# sourceMappingURL=item.d.ts.map
@@ -1,4 +1,4 @@
1
- export declare function getDictsMapApi(dictId: string): Promise<import('axios').AxiosResponse<any>>
2
- export declare function getDictApi(dictId: string): Promise<any>
3
- export declare function getDictMapApi(dictIdArr: string[]): Promise<{}>
4
- //# sourceMappingURL=dict.d.ts.map
1
+ export declare function getDictsMapApi(dictId: string): Promise<import("axios").AxiosResponse<any>>;
2
+ export declare function getDictApi(dictId: string): Promise<any>;
3
+ export declare function getDictMapApi(dictIdArr: string[]): Promise<{}>;
4
+ //# sourceMappingURL=dict.d.ts.map
@@ -1,5 +1,5 @@
1
- export * from './dict'
2
- export * from './menu'
3
- export * from './oss'
4
- export * from './user'
5
- //# sourceMappingURL=index.d.ts.map
1
+ export * from './dict';
2
+ export * from './menu';
3
+ export * from './oss';
4
+ export * from './user';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -1,17 +1,11 @@
1
- export declare function getPermissionApi(): Promise<import('axios').AxiosResponse<any>>
2
- export declare function getMenuHistoryApi(): Promise<import('axios').AxiosResponse<any>>
3
- export declare function menuHistoryApi(params: any): Promise<import('axios').AxiosResponse<any>>
4
- export declare function deleteMenuHistoryApi(
5
- historyId: any,
6
- ): Promise<import('axios').AxiosResponse<any>>
7
- export declare function getMenuCollectApi(): Promise<import('axios').AxiosResponse<any>>
8
- export declare function addMenuCollectApi(params: any): Promise<import('axios').AxiosResponse<any>>
9
- export declare function deleteMenuCollectApi(
10
- collectId: any,
11
- ): Promise<import('axios').AxiosResponse<any>>
12
- export declare function removeMenuCollectApi(
13
- params: any,
14
- ): Promise<import('axios').AxiosResponse<any>>
15
- export declare function getAppListApi(): Promise<import('axios').AxiosResponse<any>>
16
- export declare function getMaxTabNumValueApi(): Promise<import('axios').AxiosResponse<any>>
17
- //# sourceMappingURL=menu.d.ts.map
1
+ export declare function getPermissionApi(): Promise<import("axios").AxiosResponse<any>>;
2
+ export declare function getMenuHistoryApi(): Promise<import("axios").AxiosResponse<any>>;
3
+ export declare function menuHistoryApi(params: any): Promise<import("axios").AxiosResponse<any>>;
4
+ export declare function deleteMenuHistoryApi(historyId: any): Promise<import("axios").AxiosResponse<any>>;
5
+ export declare function getMenuCollectApi(): Promise<import("axios").AxiosResponse<any>>;
6
+ export declare function addMenuCollectApi(params: any): Promise<import("axios").AxiosResponse<any>>;
7
+ export declare function deleteMenuCollectApi(collectId: any): Promise<import("axios").AxiosResponse<any>>;
8
+ export declare function removeMenuCollectApi(params: any): Promise<import("axios").AxiosResponse<any>>;
9
+ export declare function getAppListApi(): Promise<import("axios").AxiosResponse<any>>;
10
+ export declare function getMaxTabNumValueApi(): Promise<import("axios").AxiosResponse<any>>;
11
+ //# sourceMappingURL=menu.d.ts.map
@@ -1,17 +1,17 @@
1
- import { ResponseType } from 'axios'
1
+ import { ResponseType } from 'axios';
2
2
  /**
3
3
  * 文档中心下载文件的url,主要用于图片等直接写在 href 里
4
4
  *
5
5
  * @param fileId 文件Id
6
6
  * @returns url
7
7
  */
8
- export declare function getOssFileUrl(fileId?: string): string
8
+ export declare function getOssFileUrl(fileId?: string): string;
9
9
  /**
10
10
  * 文档中心上传文件的url
11
11
  *
12
12
  * @returns url
13
13
  */
14
- export declare function putOssFileUrl(): string
14
+ export declare function putOssFileUrl(): string;
15
15
  /**
16
16
  * 获取文档中心文件
17
17
  *
@@ -19,10 +19,7 @@ export declare function putOssFileUrl(): string
19
19
  * @param responseType 数据类型,支持 arraybuffer | blob | document | json | text | stream
20
20
  * @returns 文件内容
21
21
  */
22
- export declare function getOssFileApi(
23
- fileId: string,
24
- responseType?: ResponseType,
25
- ): Promise<import('axios').AxiosResponse<any>>
22
+ export declare function getOssFileApi(fileId: string, responseType?: ResponseType): Promise<import("axios").AxiosResponse<any>>;
26
23
  /**
27
24
  * 将文件上传到文档中心
28
25
  *
@@ -30,8 +27,5 @@ export declare function getOssFileApi(
30
27
  * @param blob 文件的Blob数据
31
28
  * @returns 文件Id
32
29
  */
33
- export declare function putOssFileApi(
34
- filename: string,
35
- blob: Blob,
36
- ): import('axios').AxiosPromise<any>
37
- //# sourceMappingURL=oss.d.ts.map
30
+ export declare function putOssFileApi(filename: string, blob: Blob): import("axios").AxiosPromise<any>;
31
+ //# sourceMappingURL=oss.d.ts.map
@@ -1,17 +1,12 @@
1
- export declare function loginApi({
2
- userName,
3
- password,
4
- validCodeId,
5
- validCodeInput,
6
- }: {
7
- userName: any
8
- password: any
9
- validCodeId: any
10
- validCodeInput: any
11
- }): Promise<import('axios').AxiosResponse<any>>
12
- export declare function getUserInfoApi(): Promise<import('axios').AxiosResponse<any>>
13
- export declare function getGlobalPolicyApi(): Promise<import('axios').AxiosResponse<any>>
14
- export declare function updatePasswordApi(data: any): Promise<import('axios').AxiosResponse<any>>
15
- export declare function getCaptchaURL(validCodeId: string): string
16
- export declare function logoutApi(): Promise<import('axios').AxiosResponse<any>>
17
- //# sourceMappingURL=user.d.ts.map
1
+ export declare function loginApi({ userName, password, validCodeId, validCodeInput }: {
2
+ userName: any;
3
+ password: any;
4
+ validCodeId: any;
5
+ validCodeInput: any;
6
+ }): Promise<import("axios").AxiosResponse<any>>;
7
+ export declare function getUserInfoApi(): Promise<import("axios").AxiosResponse<any>>;
8
+ export declare function getGlobalPolicyApi(): Promise<import("axios").AxiosResponse<any>>;
9
+ export declare function updatePasswordApi(data: any): Promise<import("axios").AxiosResponse<any>>;
10
+ export declare function getCaptchaURL(validCodeId: string): string;
11
+ export declare function logoutApi(): Promise<import("axios").AxiosResponse<any>>;
12
+ //# sourceMappingURL=user.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../src/api/platform/user.ts"],"names":[],"mappings":"AAKA,wBAAgB,QAAQ,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,cAAc,EAAE;;;;;CAAA,+CAM3E;AAED,wBAAgB,cAAc,gDAE7B;AAED,wBAAgB,kBAAkB,gDAEjC;AAED,wBAAgB,iBAAiB,CAAC,IAAI,KAAA,+CAErC;AAED,wBAAgB,aAAa,CAAC,WAAW,EAAE,MAAM,UAEhD;AAED,wBAAgB,SAAS,gDAExB"}
1
+ {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../src/api/platform/user.ts"],"names":[],"mappings":"AAKA,wBAAgB,QAAQ,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,cAAc,EAAE;;;;;CAAA,+CAQ3E;AAED,wBAAgB,cAAc,gDAE7B;AAED,wBAAgB,kBAAkB,gDAEjC;AAED,wBAAgB,iBAAiB,CAAC,IAAI,KAAA,+CAErC;AAED,wBAAgB,aAAa,CAAC,WAAW,EAAE,MAAM,UAEhD;AAED,wBAAgB,SAAS,gDAExB"}
@@ -1,2 +1,2 @@
1
- export declare function listUserTreeApi(params: any): Promise<import('axios').AxiosResponse<any>>
2
- //# sourceMappingURL=user.d.ts.map
1
+ export declare function listUserTreeApi(params: any): Promise<import("axios").AxiosResponse<any>>;
2
+ //# sourceMappingURL=user.d.ts.map
@@ -1,31 +1,31 @@
1
1
  declare const _default: {
2
- title: string
3
- icomId: string
4
- showMenus: boolean
5
- routerBase: string
6
- loginRouteName: string
7
- rootRouteName: string
8
- homeRouteName: string
9
- authServerContext: string
10
- ossServerContext: string
11
- ismAmServerContext: string
12
- ismAcServerContext: string
13
- ismSqServerContext: string
14
- ilmServerContext: string
15
- ucExtServerContext: string
16
- kkfilepreviewContext: string
17
- errorMessage: string
18
- leftLockDays: number
19
- labelStyle: {
20
- labelWidthButton: number
21
- labelWidthSmall: number
22
- labelWidthMiddle: number
23
- labelWidthMiddleLarge: number
24
- labelWidthLarge: number
25
- labelWidthSuperLarge: number
26
- }
27
- /** 点击跳转的文字颜色 */
28
- linkColor: string
29
- }
30
- export default _default
31
- //# sourceMappingURL=base.config.d.ts.map
2
+ title: string;
3
+ icomId: string;
4
+ showMenus: boolean;
5
+ routerBase: string;
6
+ loginRouteName: string;
7
+ rootRouteName: string;
8
+ homeRouteName: string;
9
+ authServerContext: string;
10
+ ossServerContext: string;
11
+ ismAmServerContext: string;
12
+ ismAcServerContext: string;
13
+ ismSqServerContext: string;
14
+ ilmServerContext: string;
15
+ ucExtServerContext: string;
16
+ kkfilepreviewContext: string;
17
+ errorMessage: string;
18
+ leftLockDays: number;
19
+ labelStyle: {
20
+ labelWidthButton: number;
21
+ labelWidthSmall: number;
22
+ labelWidthMiddle: number;
23
+ labelWidthMiddleLarge: number;
24
+ labelWidthLarge: number;
25
+ labelWidthSuperLarge: number;
26
+ };
27
+ /** 点击跳转的文字颜色 */
28
+ linkColor: string;
29
+ };
30
+ export default _default;
31
+ //# sourceMappingURL=base.config.d.ts.map
@@ -1,4 +1,4 @@
1
1
  export declare function getDevConfig(): {
2
- showMenus: boolean
3
- }
4
- //# sourceMappingURL=dev.config.d.ts.map
2
+ showMenus: boolean;
3
+ };
4
+ //# sourceMappingURL=dev.config.d.ts.map
@@ -1,61 +1,61 @@
1
1
  export declare function useConfig(isDev?: boolean): {
2
- title: string
3
- icomId: string
4
- showMenus: boolean
5
- routerBase: string
6
- loginRouteName: string
7
- rootRouteName: string
8
- homeRouteName: string
9
- authServerContext: string
10
- ossServerContext: string
11
- ismAmServerContext: string
12
- ismAcServerContext: string
13
- ismSqServerContext: string
14
- ilmServerContext: string
15
- ucExtServerContext: string
16
- kkfilepreviewContext: string
17
- errorMessage: string
18
- leftLockDays: number
19
- labelStyle: {
20
- labelWidthButton: number
21
- labelWidthSmall: number
22
- labelWidthMiddle: number
23
- labelWidthMiddleLarge: number
24
- labelWidthLarge: number
25
- labelWidthSuperLarge: number
26
- }
27
- linkColor: string
2
+ title: string;
3
+ icomId: string;
4
+ showMenus: boolean;
5
+ routerBase: string;
6
+ loginRouteName: string;
7
+ rootRouteName: string;
8
+ homeRouteName: string;
9
+ authServerContext: string;
10
+ ossServerContext: string;
11
+ ismAmServerContext: string;
12
+ ismAcServerContext: string;
13
+ ismSqServerContext: string;
14
+ ilmServerContext: string;
15
+ ucExtServerContext: string;
16
+ kkfilepreviewContext: string;
17
+ errorMessage: string;
18
+ leftLockDays: number;
19
+ labelStyle: {
20
+ labelWidthButton: number;
21
+ labelWidthSmall: number;
22
+ labelWidthMiddle: number;
23
+ labelWidthMiddleLarge: number;
24
+ labelWidthLarge: number;
25
+ labelWidthSuperLarge: number;
26
+ };
27
+ linkColor: string;
28
28
  } & {
29
- showMenus: boolean
30
- }
29
+ showMenus: boolean;
30
+ };
31
31
  export declare const config: {
32
- title: string
33
- icomId: string
34
- showMenus: boolean
35
- routerBase: string
36
- loginRouteName: string
37
- rootRouteName: string
38
- homeRouteName: string
39
- authServerContext: string
40
- ossServerContext: string
41
- ismAmServerContext: string
42
- ismAcServerContext: string
43
- ismSqServerContext: string
44
- ilmServerContext: string
45
- ucExtServerContext: string
46
- kkfilepreviewContext: string
47
- errorMessage: string
48
- leftLockDays: number
49
- labelStyle: {
50
- labelWidthButton: number
51
- labelWidthSmall: number
52
- labelWidthMiddle: number
53
- labelWidthMiddleLarge: number
54
- labelWidthLarge: number
55
- labelWidthSuperLarge: number
56
- }
57
- linkColor: string
32
+ title: string;
33
+ icomId: string;
34
+ showMenus: boolean;
35
+ routerBase: string;
36
+ loginRouteName: string;
37
+ rootRouteName: string;
38
+ homeRouteName: string;
39
+ authServerContext: string;
40
+ ossServerContext: string;
41
+ ismAmServerContext: string;
42
+ ismAcServerContext: string;
43
+ ismSqServerContext: string;
44
+ ilmServerContext: string;
45
+ ucExtServerContext: string;
46
+ kkfilepreviewContext: string;
47
+ errorMessage: string;
48
+ leftLockDays: number;
49
+ labelStyle: {
50
+ labelWidthButton: number;
51
+ labelWidthSmall: number;
52
+ labelWidthMiddle: number;
53
+ labelWidthMiddleLarge: number;
54
+ labelWidthLarge: number;
55
+ labelWidthSuperLarge: number;
56
+ };
57
+ linkColor: string;
58
58
  } & {
59
- showMenus: boolean
60
- }
61
- //# sourceMappingURL=index.d.ts.map
59
+ showMenus: boolean;
60
+ };
61
+ //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
1
  export declare function getProdConfig(): {
2
- showMenus: boolean
3
- }
4
- //# sourceMappingURL=prod.config.d.ts.map
2
+ showMenus: boolean;
3
+ };
4
+ //# sourceMappingURL=prod.config.d.ts.map
package/types/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export * from './api'
2
- export * from './config'
3
- export * from './utils'
4
- //# sourceMappingURL=index.d.ts.map
1
+ export * from './api';
2
+ export * from './config';
3
+ export * from './utils';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -1,23 +1,23 @@
1
1
  declare let Base64ForLogin: {
2
- Base64Chars: string
3
- /**
4
- * Encode a string to a Base64 string follow Bse64 regular.
5
- * @param s, a normal string
6
- * @return a Base64 string
7
- */
8
- encode: (s: any) => any
9
- /**
10
- * Encodes a ucs2 string to a utf8 integer array.
11
- * @param s, a string
12
- * @return an integer array
13
- */
14
- ucs2_utf8: (s: any) => any[]
15
- /**
16
- * Encodes a utf8 integer array to a ucs2 string.
17
- * @param s, an integer array
18
- * @return a string
19
- */
20
- utf8_ucs2: (s: any) => string
21
- }
22
- export { Base64ForLogin }
23
- //# sourceMappingURL=base64.d.ts.map
2
+ Base64Chars: string;
3
+ /**
4
+ * Encode a string to a Base64 string follow Bse64 regular.
5
+ * @param s, a normal string
6
+ * @return a Base64 string
7
+ */
8
+ encode: (s: any) => any;
9
+ /**
10
+ * Encodes a ucs2 string to a utf8 integer array.
11
+ * @param s, a string
12
+ * @return an integer array
13
+ */
14
+ ucs2_utf8: (s: any) => any[];
15
+ /**
16
+ * Encodes a utf8 integer array to a ucs2 string.
17
+ * @param s, an integer array
18
+ * @return a string
19
+ */
20
+ utf8_ucs2: (s: any) => string;
21
+ };
22
+ export { Base64ForLogin };
23
+ //# sourceMappingURL=base64.d.ts.map
@@ -5,6 +5,6 @@
5
5
  * @param contentType 数据的MIME Type,如 png 为 image/png
6
6
  * @returns Blob数据
7
7
  */
8
- export declare function base64ToBlob(base64Data: string, contentType: string): Blob
9
- export declare function blobToBase64(blob: Blob, hasPrefix?: boolean): Promise<unknown>
10
- //# sourceMappingURL=blob.d.ts.map
8
+ export declare function base64ToBlob(base64Data: string, contentType: string): Blob;
9
+ export declare function blobToBase64(blob: Blob, hasPrefix?: boolean): Promise<unknown>;
10
+ //# sourceMappingURL=blob.d.ts.map
@@ -1,3 +1,3 @@
1
- export declare function getDictCache(dictId: string): any
2
- export declare function setDictCache(dictId: string, data: any): void
3
- //# sourceMappingURL=dict-cache.d.ts.map
1
+ export declare function getDictCache(dictId: string): any;
2
+ export declare function setDictCache(dictId: string, data: any): void;
3
+ //# sourceMappingURL=dict-cache.d.ts.map
@@ -1,4 +1,4 @@
1
- export declare function getIndexDescCache(): any
2
- export declare function setIndexDescCache(data: any): void
3
- export declare function clearIndexDescCache(): void
4
- //# sourceMappingURL=index-desc.d.ts.map
1
+ export declare function getIndexDescCache(): any;
2
+ export declare function setIndexDescCache(data: any): void;
3
+ export declare function clearIndexDescCache(): void;
4
+ //# sourceMappingURL=index-desc.d.ts.map
@@ -1,4 +1,4 @@
1
- export * from './index-desc'
2
- export * from './permission-cache'
3
- export * from './user-cache'
4
- //# sourceMappingURL=index.d.ts.map
1
+ export * from './index-desc';
2
+ export * from './permission-cache';
3
+ export * from './user-cache';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- export declare function getPermissionCache(): any
2
- export declare function setPermissionCache(data: any): void
3
- export declare function clearPermissionCache(): void
4
- //# sourceMappingURL=permission-cache.d.ts.map
1
+ export declare function getPermissionCache(): any;
2
+ export declare function setPermissionCache(data: any): void;
3
+ export declare function clearPermissionCache(): void;
4
+ //# sourceMappingURL=permission-cache.d.ts.map
@@ -1,4 +1,4 @@
1
- export declare function getUserInfoCache(): any
2
- export declare function setUserInfoCache(data: any): void
3
- export declare function clearUserInfoCache(): void
4
- //# sourceMappingURL=user-cache.d.ts.map
1
+ export declare function getUserInfoCache(): any;
2
+ export declare function setUserInfoCache(data: any): void;
3
+ export declare function clearUserInfoCache(): void;
4
+ //# sourceMappingURL=user-cache.d.ts.map
@@ -1,4 +1,4 @@
1
- export declare function str2Date(value: string): Date
2
- export declare function formatDate(value: string): string
3
- export declare function formatDateChinese(value: string): string
4
- //# sourceMappingURL=date.d.ts.map
1
+ export declare function str2Date(value: string): Date;
2
+ export declare function formatDate(value: string): string;
3
+ export declare function formatDateChinese(value: string): string;
4
+ //# sourceMappingURL=date.d.ts.map