@ccs-ui/rc-pro 2.3.6-beta-39 → 2.3.6-beta-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.
- package/es/button/index.d.ts +2 -3
- package/es/dialog/button.d.ts +1 -1
- package/package.json +1 -1
package/es/button/index.d.ts
CHANGED
|
@@ -11,7 +11,6 @@ export type DropdownMenuItemType = ItemType & {
|
|
|
11
11
|
auth?: string;
|
|
12
12
|
disabled?: boolean;
|
|
13
13
|
children?: DropdownMenuItemType[];
|
|
14
|
-
onDisabled?: (selectedRows?: any[]) => boolean;
|
|
15
14
|
};
|
|
16
15
|
export type CcsAuthDropdownProps = Omit<DropDownProps, 'overlay' | 'children'> & {
|
|
17
16
|
/** 权限标识 */
|
|
@@ -21,7 +20,7 @@ export type CcsAuthDropdownProps = Omit<DropDownProps, 'overlay' | 'children'> &
|
|
|
21
20
|
/** 自定义显示内容 */
|
|
22
21
|
children: ChildrenType;
|
|
23
22
|
/** 点击事件 */
|
|
24
|
-
onClick?: (info: MenuInfo
|
|
23
|
+
onClick?: (info: MenuInfo) => void;
|
|
25
24
|
};
|
|
26
25
|
export type CcsButtonGroupProps = {
|
|
27
26
|
/** 按钮尺寸 */
|
|
@@ -37,7 +36,7 @@ export type CcsButtonGroupProps = {
|
|
|
37
36
|
/** 更多文字 */
|
|
38
37
|
moreText?: string;
|
|
39
38
|
/** 点击事件 */
|
|
40
|
-
onClick?: (key: string
|
|
39
|
+
onClick?: (key: string) => void;
|
|
41
40
|
};
|
|
42
41
|
export declare function ModalConfirm({ modalRef }: {
|
|
43
42
|
modalRef: any;
|
package/es/dialog/button.d.ts
CHANGED
|
@@ -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>, "onClose" | "auth" | "onOk" | "request" | "extraBtn" | "requestFieldNames" | "preventRequestHandle"> & {
|
|
20
20
|
formRef: React.RefObject<DialogFormRef<TParams>>;
|
|
21
21
|
formInitialValues: FormProps['initialValues'];
|
|
22
22
|
buttonRef: RefObject<DialogButtonRef>;
|