@kengic/core.react 0.0.1-beta.34 → 0.0.1-beta.36
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/index.css +1 -1
- package/kengic-core.react.js +6764 -6799
- package/package.json +1 -1
- package/src/component/KgModal/hook/useDragToResize.d.ts +5 -3
package/package.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { MutableRefObject } from 'react';
|
|
2
2
|
import { KgModalProps } from '../KgModal';
|
|
3
|
+
type HandleType = 'top-left' | 'top' | 'top-right' | 'right' | 'bottom-right' | 'bottom' | 'bottom-left' | 'left';
|
|
3
4
|
/**
|
|
4
5
|
* 拖拽改变大小.
|
|
5
6
|
*
|
|
@@ -19,11 +20,12 @@ export declare function useDragToResize(param: {
|
|
|
19
20
|
* @param param.handleType 拖拽位置.
|
|
20
21
|
*/
|
|
21
22
|
onMouseDown: (param: {
|
|
22
|
-
event:
|
|
23
|
-
handleType:
|
|
23
|
+
event: MouseEvent;
|
|
24
|
+
handleType: HandleType;
|
|
24
25
|
}) => void;
|
|
25
26
|
/**
|
|
26
27
|
* 弹窗宽度.
|
|
27
28
|
*/
|
|
28
29
|
width: string | number;
|
|
29
30
|
};
|
|
31
|
+
export {};
|