@ccs-ui/rc-pro 2.2.6-beta-2 → 2.2.6-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.
|
@@ -16,7 +16,7 @@ export type DialogButtonsProps<T> = Pick<CcsDialogModalProps, 'okText' | 'onClos
|
|
|
16
16
|
export type DialogButtonRef = {
|
|
17
17
|
onSetButtons: (e: React.ReactElement) => void;
|
|
18
18
|
};
|
|
19
|
-
export declare const DialogButtonHolder: <TParams, TData>({ auth, extraBtn, formRef, request, onOk, onClose, buttonRef, requestFieldNames, formInitialValues, preventRequestHandle, }: Pick<CcsDialogModalProps<TParams, TData>, "
|
|
19
|
+
export declare const DialogButtonHolder: <TParams, TData>({ auth, extraBtn, formRef, request, onOk, onClose, buttonRef, requestFieldNames, formInitialValues, preventRequestHandle, }: Pick<CcsDialogModalProps<TParams, TData>, "auth" | "request" | "onOk" | "onClose" | "extraBtn" | "requestFieldNames" | "preventRequestHandle"> & {
|
|
20
20
|
formRef: React.RefObject<DialogFormRef<TParams>>;
|
|
21
21
|
formInitialValues: FormProps['initialValues'];
|
|
22
22
|
buttonRef: RefObject<DialogButtonRef>;
|
package/es/ccs-dialog/index.d.ts
CHANGED
|
@@ -13,18 +13,6 @@ type DialogInterface = {
|
|
|
13
13
|
Buttons: typeof CcsDialogFooter;
|
|
14
14
|
/** drawer footer */
|
|
15
15
|
DrawerFooter: typeof CcsDrawerFooter;
|
|
16
|
-
/** ant message */
|
|
17
|
-
message: typeof ThemeDialog.message;
|
|
18
|
-
/** ant notice */
|
|
19
|
-
notice: typeof ThemeDialog.notice;
|
|
20
|
-
/** ant modal */
|
|
21
|
-
modal: typeof ThemeDialog.modal;
|
|
22
|
-
/** ant modal */
|
|
23
|
-
easyConfirm: typeof ThemeDialog.easyConfirm;
|
|
24
|
-
/** ant modal */
|
|
25
|
-
easyMessage: typeof ThemeDialog.easyMessage;
|
|
26
|
-
/** ant modal */
|
|
27
|
-
confirm: typeof ThemeDialog.confirm;
|
|
28
16
|
};
|
|
29
|
-
declare const CcsDialog: DialogInterface;
|
|
17
|
+
declare const CcsDialog: typeof ThemeDialog & DialogInterface;
|
|
30
18
|
export default CcsDialog;
|
package/es/ccs-dialog/index.js
CHANGED
|
@@ -4,15 +4,7 @@ import { useDialogContext } from "./context";
|
|
|
4
4
|
import CcsDrawerFooter from "./drawer-footer";
|
|
5
5
|
import useCcsDialog from "./hook";
|
|
6
6
|
import "./index.less";
|
|
7
|
-
|
|
8
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
-
var CcsDialog = /*#__PURE__*/_jsx(_Fragment, {});
|
|
10
|
-
CcsDialog.message = ThemeDialog.message;
|
|
11
|
-
CcsDialog.notice = ThemeDialog.notice;
|
|
12
|
-
CcsDialog.modal = ThemeDialog.modal;
|
|
13
|
-
CcsDialog.easyConfirm = ThemeDialog.easyConfirm;
|
|
14
|
-
CcsDialog.easyMessage = ThemeDialog.easyMessage;
|
|
15
|
-
CcsDialog.confirm = ThemeDialog.confirm;
|
|
7
|
+
var CcsDialog = ThemeDialog;
|
|
16
8
|
CcsDialog.Buttons = CcsDialogFooter;
|
|
17
9
|
CcsDialog.useDialog = useCcsDialog;
|
|
18
10
|
CcsDialog.useInstance = useDialogContext;
|