@ccs-ui/rc-pro 1.2.1-beta-2 → 1.2.1-beta-3

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,7 +1,7 @@
1
1
  import { FormProps } from 'antd';
2
2
  import { DialogFormRef } from './form';
3
3
  import { CcsDialogModalProps } from './hook';
4
- declare const DialogRequestButton: ({ auth, formRef, extraBtn, formInitialValues, request, onCancel, onRequestBefore, }: Pick<CcsDialogModalProps, "onCancel" | "auth" | "request" | "extraBtn" | "onRequestBefore"> & {
4
+ declare const DialogRequestButton: ({ auth, formRef, extraBtn, formInitialValues, request, onCancel, onRequestBefore, }: Pick<CcsDialogModalProps, "auth" | "onCancel" | "extraBtn" | "request" | "onRequestBefore"> & {
5
5
  formRef: React.RefObject<DialogFormRef>;
6
6
  formInitialValues: FormProps['initialValues'];
7
7
  }) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import { FormProps } from 'antd';
2
2
  import { DialogFormRef } from './form';
3
3
  import { CcsDialogModalProps } from './hook';
4
- declare const DialogSelfOkButton: ({ auth, formRef, extraBtn, formInitialValues, onCancel, onOk, }: Pick<CcsDialogModalProps, "onCancel" | "auth" | "onOk" | "extraBtn"> & {
4
+ declare const DialogSelfOkButton: ({ auth, formRef, extraBtn, formInitialValues, onCancel, onOk, }: Pick<CcsDialogModalProps, "auth" | "onCancel" | "onOk" | "extraBtn"> & {
5
5
  formRef: React.RefObject<DialogFormRef>;
6
6
  formInitialValues: FormProps['initialValues'];
7
7
  }) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,5 @@
1
1
  import { DrawerProps, FormProps, ModalFuncProps } from 'antd';
2
2
  import React, { ReactNode } from 'react';
3
- import CCS from '..';
4
3
  export type CcsDialogModal = {
5
4
  destroy: () => void;
6
5
  update: (config: CcsDialogModalProps) => void;
@@ -27,7 +26,7 @@ export type CcsDialogModalProps = ModalFuncProps & {
27
26
  /** 通过参数传递的扩展按钮 */
28
27
  extraBtn?: ReactNode;
29
28
  /** 表单接口请求 */
30
- request?: (values: any) => Promise<CCS.HttpResult>;
29
+ request?: (values: any) => Promise<any>;
31
30
  /** request执行前参数处理 */
32
31
  onRequestBefore?: (values: any) => any;
33
32
  /** 通过closeDialog方法关闭dialog */
@@ -45,7 +44,7 @@ export type CcsDialogDrawerProps = Omit<DrawerProps, 'extra'> & {
45
44
  /** 通过参数传递的扩展按钮 */
46
45
  extraBtn?: ReactNode;
47
46
  /** 表单接口请求 */
48
- request?: (values: any) => Promise<CCS.HttpResult>;
47
+ request?: (values: any) => Promise<any>;
49
48
  /** request执行前参数处理 */
50
49
  onRequestBefore?: (values: any) => any;
51
50
  /** 通过closeDialog方法关闭dialog */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ccs-ui/rc-pro",
3
- "version": "1.2.1-beta-2",
3
+ "version": "1.2.1-beta-3",
4
4
  "description": "验证码组件兼容暗黑模式;proTable封装rowselection代码;proTable添加自适应布局模式;CcsDialog不适应contextHolder也能打开;移除utils,独立存在@ccs-ui/utils;添加属性isEnableToolbar;table可以隐藏toolbar; CcsDialog 添加异步关闭确认方法;",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -51,20 +51,13 @@
51
51
  ]
52
52
  },
53
53
  "dependencies": {
54
- "@ant-design/compatible": "^5.1.2",
55
- "@ant-design/icons": "^5.1.4",
56
- "@ccs-ui/utils": "^0.0.2",
57
54
  "@codemirror/lang-javascript": "^6.2.2",
58
55
  "@codemirror/lang-json": "^6.0.1",
59
56
  "@codemirror/lang-sql": "^6.7.0",
60
57
  "@codemirror/language": "^6.10.2",
61
58
  "@codemirror/lint": "^6.8.1",
62
59
  "@uiw/react-codemirror": "^4.23.0",
63
- "ahooks": "^3.7.7",
64
- "antd": "^5.19.2",
65
60
  "antd-img-crop": "^4.12.2",
66
- "classnames": "^2.3.2",
67
- "dayjs": "^1.11.7",
68
61
  "immutability-helper": "^3.1.1",
69
62
  "js-base64": "^3.7.5",
70
63
  "localforage": "^1.10.0",
@@ -73,20 +66,17 @@
73
66
  "lodash.isarray": "^4.0.0",
74
67
  "lodash.isnil": "^4.0.0",
75
68
  "lodash.uniqueid": "^4.0.1",
76
- "rc-menu": "^9.15.1",
77
- "rc-trigger": "^5.3.4",
78
- "rc-util": "^5.32.4",
79
69
  "react-color": "^2.19.3",
80
70
  "react-custom-scrollbars": "^4.2.1",
81
71
  "react-draggable": "^4.4.5",
82
72
  "react-error-overlay": "^6.0.11",
83
73
  "react-lines-ellipsis": "^0.15.4",
84
- "react-resizable": "^3.0.5",
85
- "react-router": "^6.11.2",
86
- "react-router-dom": "^6.11.2",
87
- "shortid": "^2.2.16"
74
+ "react-resizable": "^3.0.5"
88
75
  },
89
76
  "devDependencies": {
77
+ "@ant-design/compatible": "^5.1.2",
78
+ "@ant-design/icons": "^5.1.4",
79
+ "@ccs-ui/utils": "^0.0.2",
90
80
  "@commitlint/cli": "^17.1.2",
91
81
  "@commitlint/config-conventional": "^17.1.0",
92
82
  "@types/lodash.clonedeep": "^4.5.9",
@@ -102,7 +92,11 @@
102
92
  "@types/react-resizable": "^3.0.7",
103
93
  "@types/shortid": "^0.0.29",
104
94
  "@umijs/lint": "^4.0.0",
95
+ "ahooks": "^3.7.7",
96
+ "antd": "^5.19.2",
97
+ "classnames": "^2.3.2",
105
98
  "cross-env": "^7.0.3",
99
+ "dayjs": "^1.11.7",
106
100
  "dumi": "^2.2.0",
107
101
  "eslint": "^8.23.0",
108
102
  "father": "^4.1.0",
@@ -111,15 +105,32 @@
111
105
  "prettier": "^2.7.1",
112
106
  "prettier-plugin-organize-imports": "^3.0.0",
113
107
  "prettier-plugin-packagejson": "^2.2.18",
108
+ "rc-menu": "^9.15.1",
114
109
  "rc-table": "^7.47.5",
110
+ "rc-trigger": "^5.3.4",
111
+ "rc-util": "^5.32.4",
115
112
  "react": "^18.0.0",
116
113
  "react-dom": "^18.0.0",
114
+ "react-router": "^6.11.2",
115
+ "react-router-dom": "^6.11.2",
117
116
  "stylelint": "^14.9.1"
118
117
  },
119
118
  "peerDependencies": {
120
- "antd": "5.6",
119
+ "@ant-design/compatible": "^5.1.2",
120
+ "@ant-design/icons": "^5.1.4",
121
+ "@ccs-ui/utils": "^0.0.2",
122
+ "ahooks": "^3.7.7",
123
+ "antd": "^5.19.2",
124
+ "classnames": "^2.3.2",
125
+ "dayjs": "^1.11.7",
126
+ "rc-menu": "^9.15.1",
127
+ "rc-table": "^7.47.5",
128
+ "rc-trigger": "^5.3.4",
129
+ "rc-util": "^5.32.4",
121
130
  "react": ">=16.9.0",
122
- "react-dom": ">=16.9.0"
131
+ "react-dom": ">=16.9.0",
132
+ "react-router": "^6.11.2",
133
+ "react-router-dom": "^6.11.2"
123
134
  },
124
135
  "publishConfig": {
125
136
  "access": "public"