szld-libs 0.2.13 → 0.2.14

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 (37) hide show
  1. package/dist/szld-components.es.js +14462 -10523
  2. package/dist/szld-components.umd.js +53 -53
  3. package/es/components/AuthButton/index.d.ts +1 -2
  4. package/es/components/BackHeader/index.d.ts +1 -1
  5. package/es/components/CoralButton/index.d.ts +1 -2
  6. package/es/components/CreateForm/index.d.ts +2 -2
  7. package/es/components/Echarts/index.d.ts +1 -2
  8. package/es/components/EditTable/index.d.ts +1 -2
  9. package/es/components/SearchTable/index.d.ts +1 -2
  10. package/es/components/Upload/index.d.ts +1 -1
  11. package/es/components/VirtualTable/index.d.ts +1 -2
  12. package/es/components/common/403.d.ts +1 -2
  13. package/es/components/common/404.d.ts +1 -2
  14. package/es/hooks/useCaptcha.d.ts +11 -0
  15. package/es/hooks/useCaptcha.js +22 -0
  16. package/es/hooks/useRemember.d.ts +9 -0
  17. package/es/hooks/useRemember.js +33 -0
  18. package/es/main.d.ts +3 -1
  19. package/es/main.js +6 -2
  20. package/lib/components/AuthButton/index.d.ts +1 -2
  21. package/lib/components/BackHeader/index.d.ts +1 -1
  22. package/lib/components/CoralButton/index.d.ts +1 -2
  23. package/lib/components/CreateForm/index.d.ts +2 -2
  24. package/lib/components/Echarts/index.d.ts +1 -2
  25. package/lib/components/EditTable/index.d.ts +1 -2
  26. package/lib/components/SearchTable/index.d.ts +1 -2
  27. package/lib/components/Upload/index.d.ts +1 -1
  28. package/lib/components/VirtualTable/index.d.ts +1 -2
  29. package/lib/components/common/403.d.ts +1 -2
  30. package/lib/components/common/404.d.ts +1 -2
  31. package/lib/hooks/useCaptcha.d.ts +11 -0
  32. package/lib/hooks/useCaptcha.js +21 -0
  33. package/lib/hooks/useRemember.d.ts +9 -0
  34. package/lib/hooks/useRemember.js +32 -0
  35. package/lib/main.d.ts +3 -1
  36. package/lib/main.js +4 -0
  37. package/package.json +5 -3
@@ -1,7 +1,6 @@
1
- /// <reference types="react" />
2
1
  import { ButtonProps } from "antd";
3
2
  export interface AuthButtonProps extends ButtonProps {
4
3
  auth?: boolean;
5
4
  }
6
- declare const AuthButton: (props: AuthButtonProps) => JSX.Element | null;
5
+ declare const AuthButton: (props: AuthButtonProps) => import("react/jsx-runtime").JSX.Element | null;
7
6
  export default AuthButton;
@@ -9,5 +9,5 @@ interface BackHeaderProps {
9
9
  titleStyle?: CSSProperties;
10
10
  level?: 1 | 2 | 3 | 4 | 5;
11
11
  }
12
- declare const BackHeader: (props: BackHeaderProps) => JSX.Element;
12
+ declare const BackHeader: (props: BackHeaderProps) => import("react/jsx-runtime").JSX.Element;
13
13
  export default BackHeader;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ButtonProps } from "antd";
3
2
  interface AuthProps {
4
3
  PId: number;
@@ -7,5 +6,5 @@ export interface CoralButtonProps extends ButtonProps {
7
6
  PId: number;
8
7
  auths?: AuthProps[];
9
8
  }
10
- declare const CoralButton: (props: CoralButtonProps) => JSX.Element;
9
+ declare const CoralButton: (props: CoralButtonProps) => import("react/jsx-runtime").JSX.Element;
11
10
  export default CoralButton;
@@ -44,12 +44,12 @@ export interface CreateFormProps {
44
44
  readonly?: boolean;
45
45
  hiddenTitle?: boolean;
46
46
  }
47
- declare const CreateForm: (props: CreateFormProps) => JSX.Element;
47
+ declare const CreateForm: (props: CreateFormProps) => import("react/jsx-runtime").JSX.Element;
48
48
  interface FormFieldsProps extends Pick<CreateFormItemProps<ValueType>, "valueType" | "valueProps"> {
49
49
  onChange?: (e: any) => void;
50
50
  value?: any;
51
51
  onBtnClick?: (e: React.MouseEvent<HTMLElement, MouseEvent>, item: ValueBtnProps) => void;
52
52
  inputRef?: any;
53
53
  }
54
- export declare const FormFields: (props: FormFieldsProps) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.FunctionComponentElement<any>;
54
+ export declare const FormFields: (props: FormFieldsProps) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
55
55
  export default CreateForm;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import * as echarts from 'echarts/core';
3
2
  import { BarSeriesOption, LineSeriesOption } from 'echarts/charts';
4
3
  import { TitleComponentOption, TooltipComponentOption, GridComponentOption, DatasetComponentOption } from 'echarts/components';
@@ -10,5 +9,5 @@ export interface EchartsProps {
10
9
  * @param props : EchartsProps 传入图标配置项
11
10
  * 外部包裹一层dom元素定义width和height,内部自动占满
12
11
  */
13
- declare const Echarts: (props: EchartsProps) => JSX.Element;
12
+ declare const Echarts: (props: EchartsProps) => import("react/jsx-runtime").JSX.Element;
14
13
  export default Echarts;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TableProps } from "antd";
3
2
  import { Rule } from "antd/es/form";
4
3
  import { ColumnType } from "antd/es/table";
@@ -14,5 +13,5 @@ export interface EditTableProps<RecordType> extends Omit<TableProps<RecordType>,
14
13
  columns: ColumnsType<RecordType>[];
15
14
  onChange?: (row: RecordType) => void;
16
15
  }
17
- declare function EditTable<DataType extends object = any>(props: EditTableProps<DataType>): JSX.Element;
16
+ declare function EditTable<DataType extends object = any>(props: EditTableProps<DataType>): import("react/jsx-runtime").JSX.Element;
18
17
  export default EditTable;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TableProps } from "antd";
3
2
  import { ColumnType } from "antd/es/table";
4
3
  import { CreateFormProps } from "../CreateForm";
@@ -14,5 +13,5 @@ export interface SearchTableProps<RecordType> {
14
13
  searchProps?: CreateFormProps;
15
14
  tableProps?: MTableProps<RecordType>;
16
15
  }
17
- declare function SearchTable<RecordType extends object = any>(props: SearchTableProps<RecordType>): JSX.Element;
16
+ declare function SearchTable<RecordType extends object = any>(props: SearchTableProps<RecordType>): import("react/jsx-runtime").JSX.Element;
18
17
  export default SearchTable;
@@ -10,5 +10,5 @@ export interface UploadFileProps extends UploadProps {
10
10
  limit?: number;
11
11
  };
12
12
  }
13
- declare const UploadFile: (props: UploadFileProps) => JSX.Element;
13
+ declare const UploadFile: (props: UploadFileProps) => import("react/jsx-runtime").JSX.Element;
14
14
  export default UploadFile;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { EditTableProps } from "../EditTable";
3
- declare function VirtualTable<DataType extends object = any>(props: EditTableProps<DataType>): JSX.Element;
2
+ declare function VirtualTable<DataType extends object = any>(props: EditTableProps<DataType>): import("react/jsx-runtime").JSX.Element;
4
3
  export default VirtualTable;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
- declare const NoPermissions: () => JSX.Element;
1
+ declare const NoPermissions: () => import("react/jsx-runtime").JSX.Element;
3
2
  export default NoPermissions;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
- declare const NotFound: () => JSX.Element;
1
+ declare const NotFound: () => import("react/jsx-runtime").JSX.Element;
3
2
  export default NotFound;
@@ -0,0 +1,11 @@
1
+ interface useCaptchaProps {
2
+ request: () => Promise<any>;
3
+ imgKey?: string;
4
+ }
5
+ export default function useCaptcha(props: useCaptchaProps): {
6
+ data: any;
7
+ renderCaptcha: () => import("react/jsx-runtime").JSX.Element;
8
+ loading: any;
9
+ refresh: any;
10
+ };
11
+ export {};
@@ -0,0 +1,22 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { SyncOutlined } from "@ant-design/icons";
3
+ import { useRequest } from "ahooks";
4
+ import { Button } from "antd";
5
+ import _ from "lodash";
6
+ function useCaptcha(props) {
7
+ const { imgKey = "Img" } = props;
8
+ const { data, loading, error, refresh } = useRequest(props.request, {
9
+ ready: true,
10
+ retryCount: 3
11
+ });
12
+ const renderCaptcha = () => {
13
+ if (error) {
14
+ return /* @__PURE__ */ jsx(Button, { type: "link", title: "验证码加载失败,请重试", icon: /* @__PURE__ */ jsx(SyncOutlined, {}), onClick: refresh, children: "点击重试" });
15
+ }
16
+ return /* @__PURE__ */ jsx("img", { src: _.get(data, [imgKey]), style: { height: "100%", objectFit: "contain", cursor: "pointer" }, onClick: refresh });
17
+ };
18
+ return { data, renderCaptcha, loading, refresh };
19
+ }
20
+ export {
21
+ useCaptcha as default
22
+ };
@@ -0,0 +1,9 @@
1
+ interface UseRememberProps {
2
+ secertKey: string;
3
+ storageKey: string;
4
+ }
5
+ export default function useRemember(props: UseRememberProps): {
6
+ onParse: (cb: (value: any) => void) => void;
7
+ onSave: (data: any) => void;
8
+ };
9
+ export {};
@@ -0,0 +1,33 @@
1
+ import CryptoJS from "crypto-js";
2
+ import { setLocalStorage } from "../utils";
3
+ function useRemember(props) {
4
+ const { secertKey, storageKey } = props;
5
+ const onSave = (data) => {
6
+ const value = CryptoJS.AES.encrypt(
7
+ JSON.stringify({
8
+ ...data,
9
+ timestamp: Date.now()
10
+ }),
11
+ secertKey
12
+ );
13
+ setLocalStorage(storageKey, value.toString());
14
+ };
15
+ const onParse = (cb) => {
16
+ const values = localStorage.getItem(storageKey);
17
+ if (!values) {
18
+ cb(null);
19
+ return;
20
+ }
21
+ const bytes = CryptoJS.AES.decrypt(values, secertKey);
22
+ try {
23
+ const result = JSON.parse(bytes.toString(CryptoJS.enc.Utf8));
24
+ cb(result);
25
+ } catch (error) {
26
+ cb(null);
27
+ }
28
+ };
29
+ return { onParse, onSave };
30
+ }
31
+ export {
32
+ useRemember as default
33
+ };
package/es/main.d.ts CHANGED
@@ -11,5 +11,7 @@ import * as fileType from "./utils/filetype";
11
11
  import * as FormRules from './utils/formRules';
12
12
  import * as utils from "./utils/index";
13
13
  import * as verfyCode from "./utils/verify-code";
14
+ import useCaptcha from "./hooks/useCaptcha";
14
15
  import useChangePwd from "./hooks/useChangePwd";
15
- export { AuthButton, BackHeader, CoralButton, CreateForm, EditTable, FormRules, SearchTable, UploadFile, download, fileType, showWorkFlow, useChangePwd, utils, verfyCode };
16
+ import useRemember from "./hooks/useRemember";
17
+ export { AuthButton, BackHeader, CoralButton, CreateForm, EditTable, FormRules, SearchTable, UploadFile, download, fileType, showWorkFlow, useCaptcha, useChangePwd, useRemember, utils, verfyCode };
package/es/main.js CHANGED
@@ -11,7 +11,9 @@ import * as filetype from "./utils/filetype";
11
11
  import * as formRules from "./utils/formRules";
12
12
  import * as index from "./utils/index";
13
13
  import * as verifyCode from "./utils/verify-code";
14
- import { default as default10 } from "./hooks/useChangePwd";
14
+ import { default as default10 } from "./hooks/useCaptcha";
15
+ import { default as default11 } from "./hooks/useChangePwd";
16
+ import { default as default12 } from "./hooks/useRemember";
15
17
  export {
16
18
  default7 as AuthButton,
17
19
  default2 as BackHeader,
@@ -24,7 +26,9 @@ export {
24
26
  download,
25
27
  filetype as fileType,
26
28
  default9 as showWorkFlow,
27
- default10 as useChangePwd,
29
+ default10 as useCaptcha,
30
+ default11 as useChangePwd,
31
+ default12 as useRemember,
28
32
  index as utils,
29
33
  verifyCode as verfyCode
30
34
  };
@@ -1,7 +1,6 @@
1
- /// <reference types="react" />
2
1
  import { ButtonProps } from "antd";
3
2
  export interface AuthButtonProps extends ButtonProps {
4
3
  auth?: boolean;
5
4
  }
6
- declare const AuthButton: (props: AuthButtonProps) => JSX.Element | null;
5
+ declare const AuthButton: (props: AuthButtonProps) => import("react/jsx-runtime").JSX.Element | null;
7
6
  export default AuthButton;
@@ -9,5 +9,5 @@ interface BackHeaderProps {
9
9
  titleStyle?: CSSProperties;
10
10
  level?: 1 | 2 | 3 | 4 | 5;
11
11
  }
12
- declare const BackHeader: (props: BackHeaderProps) => JSX.Element;
12
+ declare const BackHeader: (props: BackHeaderProps) => import("react/jsx-runtime").JSX.Element;
13
13
  export default BackHeader;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ButtonProps } from "antd";
3
2
  interface AuthProps {
4
3
  PId: number;
@@ -7,5 +6,5 @@ export interface CoralButtonProps extends ButtonProps {
7
6
  PId: number;
8
7
  auths?: AuthProps[];
9
8
  }
10
- declare const CoralButton: (props: CoralButtonProps) => JSX.Element;
9
+ declare const CoralButton: (props: CoralButtonProps) => import("react/jsx-runtime").JSX.Element;
11
10
  export default CoralButton;
@@ -44,12 +44,12 @@ export interface CreateFormProps {
44
44
  readonly?: boolean;
45
45
  hiddenTitle?: boolean;
46
46
  }
47
- declare const CreateForm: (props: CreateFormProps) => JSX.Element;
47
+ declare const CreateForm: (props: CreateFormProps) => import("react/jsx-runtime").JSX.Element;
48
48
  interface FormFieldsProps extends Pick<CreateFormItemProps<ValueType>, "valueType" | "valueProps"> {
49
49
  onChange?: (e: any) => void;
50
50
  value?: any;
51
51
  onBtnClick?: (e: React.MouseEvent<HTMLElement, MouseEvent>, item: ValueBtnProps) => void;
52
52
  inputRef?: any;
53
53
  }
54
- export declare const FormFields: (props: FormFieldsProps) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.FunctionComponentElement<any>;
54
+ export declare const FormFields: (props: FormFieldsProps) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
55
55
  export default CreateForm;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import * as echarts from 'echarts/core';
3
2
  import { BarSeriesOption, LineSeriesOption } from 'echarts/charts';
4
3
  import { TitleComponentOption, TooltipComponentOption, GridComponentOption, DatasetComponentOption } from 'echarts/components';
@@ -10,5 +9,5 @@ export interface EchartsProps {
10
9
  * @param props : EchartsProps 传入图标配置项
11
10
  * 外部包裹一层dom元素定义width和height,内部自动占满
12
11
  */
13
- declare const Echarts: (props: EchartsProps) => JSX.Element;
12
+ declare const Echarts: (props: EchartsProps) => import("react/jsx-runtime").JSX.Element;
14
13
  export default Echarts;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TableProps } from "antd";
3
2
  import { Rule } from "antd/es/form";
4
3
  import { ColumnType } from "antd/es/table";
@@ -14,5 +13,5 @@ export interface EditTableProps<RecordType> extends Omit<TableProps<RecordType>,
14
13
  columns: ColumnsType<RecordType>[];
15
14
  onChange?: (row: RecordType) => void;
16
15
  }
17
- declare function EditTable<DataType extends object = any>(props: EditTableProps<DataType>): JSX.Element;
16
+ declare function EditTable<DataType extends object = any>(props: EditTableProps<DataType>): import("react/jsx-runtime").JSX.Element;
18
17
  export default EditTable;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TableProps } from "antd";
3
2
  import { ColumnType } from "antd/es/table";
4
3
  import { CreateFormProps } from "../CreateForm";
@@ -14,5 +13,5 @@ export interface SearchTableProps<RecordType> {
14
13
  searchProps?: CreateFormProps;
15
14
  tableProps?: MTableProps<RecordType>;
16
15
  }
17
- declare function SearchTable<RecordType extends object = any>(props: SearchTableProps<RecordType>): JSX.Element;
16
+ declare function SearchTable<RecordType extends object = any>(props: SearchTableProps<RecordType>): import("react/jsx-runtime").JSX.Element;
18
17
  export default SearchTable;
@@ -10,5 +10,5 @@ export interface UploadFileProps extends UploadProps {
10
10
  limit?: number;
11
11
  };
12
12
  }
13
- declare const UploadFile: (props: UploadFileProps) => JSX.Element;
13
+ declare const UploadFile: (props: UploadFileProps) => import("react/jsx-runtime").JSX.Element;
14
14
  export default UploadFile;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { EditTableProps } from "../EditTable";
3
- declare function VirtualTable<DataType extends object = any>(props: EditTableProps<DataType>): JSX.Element;
2
+ declare function VirtualTable<DataType extends object = any>(props: EditTableProps<DataType>): import("react/jsx-runtime").JSX.Element;
4
3
  export default VirtualTable;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
- declare const NoPermissions: () => JSX.Element;
1
+ declare const NoPermissions: () => import("react/jsx-runtime").JSX.Element;
3
2
  export default NoPermissions;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
- declare const NotFound: () => JSX.Element;
1
+ declare const NotFound: () => import("react/jsx-runtime").JSX.Element;
3
2
  export default NotFound;
@@ -0,0 +1,11 @@
1
+ interface useCaptchaProps {
2
+ request: () => Promise<any>;
3
+ imgKey?: string;
4
+ }
5
+ export default function useCaptcha(props: useCaptchaProps): {
6
+ data: any;
7
+ renderCaptcha: () => import("react/jsx-runtime").JSX.Element;
8
+ loading: any;
9
+ refresh: any;
10
+ };
11
+ export {};
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ const jsxRuntime = require("react/jsx-runtime");
3
+ const icons = require("@ant-design/icons");
4
+ const ahooks = require("ahooks");
5
+ const antd = require("antd");
6
+ const _ = require("lodash");
7
+ function useCaptcha(props) {
8
+ const { imgKey = "Img" } = props;
9
+ const { data, loading, error, refresh } = ahooks.useRequest(props.request, {
10
+ ready: true,
11
+ retryCount: 3
12
+ });
13
+ const renderCaptcha = () => {
14
+ if (error) {
15
+ return /* @__PURE__ */ jsxRuntime.jsx(antd.Button, { type: "link", title: "验证码加载失败,请重试", icon: /* @__PURE__ */ jsxRuntime.jsx(icons.SyncOutlined, {}), onClick: refresh, children: "点击重试" });
16
+ }
17
+ return /* @__PURE__ */ jsxRuntime.jsx("img", { src: _.get(data, [imgKey]), style: { height: "100%", objectFit: "contain", cursor: "pointer" }, onClick: refresh });
18
+ };
19
+ return { data, renderCaptcha, loading, refresh };
20
+ }
21
+ module.exports = useCaptcha;
@@ -0,0 +1,9 @@
1
+ interface UseRememberProps {
2
+ secertKey: string;
3
+ storageKey: string;
4
+ }
5
+ export default function useRemember(props: UseRememberProps): {
6
+ onParse: (cb: (value: any) => void) => void;
7
+ onSave: (data: any) => void;
8
+ };
9
+ export {};
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ const CryptoJS = require("crypto-js");
3
+ const utils = require("../utils");
4
+ function useRemember(props) {
5
+ const { secertKey, storageKey } = props;
6
+ const onSave = (data) => {
7
+ const value = CryptoJS.AES.encrypt(
8
+ JSON.stringify({
9
+ ...data,
10
+ timestamp: Date.now()
11
+ }),
12
+ secertKey
13
+ );
14
+ utils.setLocalStorage(storageKey, value.toString());
15
+ };
16
+ const onParse = (cb) => {
17
+ const values = localStorage.getItem(storageKey);
18
+ if (!values) {
19
+ cb(null);
20
+ return;
21
+ }
22
+ const bytes = CryptoJS.AES.decrypt(values, secertKey);
23
+ try {
24
+ const result = JSON.parse(bytes.toString(CryptoJS.enc.Utf8));
25
+ cb(result);
26
+ } catch (error) {
27
+ cb(null);
28
+ }
29
+ };
30
+ return { onParse, onSave };
31
+ }
32
+ module.exports = useRemember;
package/lib/main.d.ts CHANGED
@@ -11,5 +11,7 @@ import * as fileType from "./utils/filetype";
11
11
  import * as FormRules from './utils/formRules';
12
12
  import * as utils from "./utils/index";
13
13
  import * as verfyCode from "./utils/verify-code";
14
+ import useCaptcha from "./hooks/useCaptcha";
14
15
  import useChangePwd from "./hooks/useChangePwd";
15
- export { AuthButton, BackHeader, CoralButton, CreateForm, EditTable, FormRules, SearchTable, UploadFile, download, fileType, showWorkFlow, useChangePwd, utils, verfyCode };
16
+ import useRemember from "./hooks/useRemember";
17
+ export { AuthButton, BackHeader, CoralButton, CreateForm, EditTable, FormRules, SearchTable, UploadFile, download, fileType, showWorkFlow, useCaptcha, useChangePwd, useRemember, utils, verfyCode };
package/lib/main.js CHANGED
@@ -13,7 +13,9 @@ const filetype = require("./utils/filetype");
13
13
  const formRules = require("./utils/formRules");
14
14
  const index = require("./utils/index");
15
15
  const verifyCode = require("./utils/verify-code");
16
+ const useCaptcha = require("./hooks/useCaptcha");
16
17
  const useChangePwd = require("./hooks/useChangePwd");
18
+ const useRemember = require("./hooks/useRemember");
17
19
  function _interopNamespaceDefault(e) {
18
20
  const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
19
21
  if (e) {
@@ -48,4 +50,6 @@ exports.fileType = filetype__namespace;
48
50
  exports.FormRules = formRules__namespace;
49
51
  exports.utils = index__namespace;
50
52
  exports.verfyCode = verifyCode__namespace;
53
+ exports.useCaptcha = useCaptcha;
51
54
  exports.useChangePwd = useChangePwd;
55
+ exports.useRemember = useRemember;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "szld-libs",
3
3
  "private": false,
4
- "version": "0.2.13",
4
+ "version": "0.2.14",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",
@@ -11,6 +11,7 @@
11
11
  "dependencies": {
12
12
  "ahooks": "^3.7.4",
13
13
  "antd": "^5.12.2",
14
+ "crypto-js": "^4.2.0",
14
15
  "lodash": "^4.17.21",
15
16
  "react": "^18.2.0",
16
17
  "react-dom": "^18.2.0",
@@ -18,10 +19,11 @@
18
19
  "react-window": "^1.8.9"
19
20
  },
20
21
  "devDependencies": {
22
+ "@types/crypto-js": "^4.2.1",
21
23
  "@types/lodash": "^4.14.191",
22
24
  "@types/node": "^18.11.15",
23
- "@types/react": "^18.0.26",
24
- "@types/react-dom": "^18.0.9",
25
+ "@types/react": "^18.2.45",
26
+ "@types/react-dom": "^18.2.18",
25
27
  "@types/react-window": "^1.8.5",
26
28
  "@vitejs/plugin-react": "^3.0.0",
27
29
  "less": "^4.1.3",