hlyc-web-pack 3.1.3 → 3.1.6
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/lib/Dialog/index.d.ts +3 -3
- package/lib/index.js +3 -3
- package/package.json +1 -1
package/lib/Dialog/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { DraggableEvent, DraggableData } from 'react-draggable';
|
|
3
3
|
import { ModalProps } from 'antd/es/modal';
|
|
4
4
|
import './index.less';
|
|
5
|
-
declare type
|
|
5
|
+
export declare type DialogPropType = ModalProps & {
|
|
6
6
|
/** 内容区域高度 */
|
|
7
7
|
height?: number;
|
|
8
8
|
onOk?: (e?: React.MouseEvent<HTMLElement, MouseEvent>) => void;
|
|
@@ -18,11 +18,11 @@ interface StateType {
|
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
20
|
/** 弹窗组件 */
|
|
21
|
-
declare class Dialog extends React.Component<
|
|
21
|
+
declare class Dialog extends React.Component<DialogPropType, StateType> {
|
|
22
22
|
static show(props: any): Dialog;
|
|
23
23
|
static confirm(title: string, children: React.ReactNode, onOk: Function): Dialog;
|
|
24
24
|
draggleRef: any;
|
|
25
|
-
constructor(props:
|
|
25
|
+
constructor(props: DialogPropType);
|
|
26
26
|
onStart(event: DraggableEvent, uiData: DraggableData): void;
|
|
27
27
|
render(): JSX.Element;
|
|
28
28
|
close(onOk?: boolean): void;
|