@quansitech/antd-admin 1.1.39 → 1.1.40

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.
@@ -1,4 +1,5 @@
1
1
  import { VisitOptions } from "@inertiajs/core/types/types";
2
+ import { ModalFuncProps } from "antd";
2
3
  import { Condition, ModalOptions } from "../types";
3
4
  export declare function replaceUrl(url: string, params: any): string;
4
5
  export declare function replaceParams(params: Record<string, any>, data: Record<string, any>): Record<string, any>;
@@ -6,7 +7,7 @@ export declare function routerNavigateTo(url: string, config?: VisitOptions): vo
6
7
  export declare function createScript(url: string): Promise<unknown>;
7
8
  export declare function modalShow(options: ModalOptions): Promise<{
8
9
  destroy: () => void;
9
- update: (configUpdate: import("antd/es/modal/confirm").ConfigUpdate) => void;
10
+ update: (configUpdate: ModalFuncProps | ((prevConfig: ModalFuncProps) => ModalFuncProps)) => void;
10
11
  }>;
11
12
  export declare function upperFirst(str: string): string;
12
13
  export declare function getProValueTypeMap(): any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quansitech/antd-admin",
3
- "version": "1.1.39",
3
+ "version": "1.1.40",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -13,7 +13,6 @@
13
13
  "dependencies": {
14
14
  "@ant-design/pro-components": "^2.7.15",
15
15
  "@inertiajs/react": "^1.2.0 || ^2.0.0",
16
- "antd": "^5.20.5",
17
16
  "antd-img-crop": "^4.23.0",
18
17
  "axios": "^1.7.7",
19
18
  "es-toolkit": "^1.26.1",
@@ -21,6 +20,9 @@
21
20
  "react": "^18.3.0",
22
21
  "react-dom": "^18.3.0"
23
22
  },
23
+ "peerDependencies": {
24
+ "antd": "~5.24.9"
25
+ },
24
26
  "devDependencies": {
25
27
  "@types/react": "^18.3.0",
26
28
  "@types/react-dom": "^18.3.0",