hlyc-web-pack 3.5.75 → 3.6.0
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/Empty/index.d.ts +2 -4
- package/lib/GenerateForm/index.d.ts +0 -1
- package/lib/brother/hooks/index.d.ts +6 -0
- package/lib/brother/hooks/useLatest/index.d.ts +3 -0
- package/lib/brother/hooks/useMethods/index.d.ts +2 -0
- package/lib/brother/hooks/useToggle/index.d.ts +10 -0
- package/lib/index.js +2 -2
- package/package.json +1 -1
package/lib/Empty/index.d.ts
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { EmptyProps } from 'antd/lib/empty';
|
|
2
2
|
import './index.less';
|
|
3
|
-
/** 456789 */
|
|
4
3
|
declare type Props = EmptyProps & {
|
|
5
4
|
/** 区域高度 */
|
|
6
5
|
outerHeight?: number;
|
|
7
6
|
};
|
|
8
|
-
/**
|
|
9
|
-
declare
|
|
10
|
-
/** 控组件 */
|
|
7
|
+
/** 空内容 */
|
|
8
|
+
declare const Empty: (props?: Props | undefined) => JSX.Element;
|
|
11
9
|
export default Empty;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import useDeepCompareEffect from './useDeepCompareEffect';
|
|
3
|
+
import useMethods from './useMethods';
|
|
4
|
+
import useToggle from './useToggle';
|
|
5
|
+
import useLatest from './useLatest';
|
|
3
6
|
declare const _default: {
|
|
4
7
|
useSetState: <T extends object>(initialState?: T) => [T, (patch: Partial<T> | ((prevState: T) => Partial<T>)) => void];
|
|
5
8
|
useDeepCompareEffect: typeof useDeepCompareEffect;
|
|
@@ -7,5 +10,8 @@ declare const _default: {
|
|
|
7
10
|
useMemoizedFn: typeof import("react").useEffect | typeof import("react").useLayoutEffect;
|
|
8
11
|
useMount: (fn: () => void) => void;
|
|
9
12
|
useUnmount: (fn: () => void) => void;
|
|
13
|
+
useMethods: typeof useMethods;
|
|
14
|
+
useToggle: typeof useToggle;
|
|
15
|
+
useLatest: typeof useLatest;
|
|
10
16
|
};
|
|
11
17
|
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface Actions<T> {
|
|
2
|
+
setLeft: () => void;
|
|
3
|
+
setRight: () => void;
|
|
4
|
+
set: (value: T) => void;
|
|
5
|
+
toggle: () => void;
|
|
6
|
+
}
|
|
7
|
+
declare function useToggle<T = boolean>(): [boolean, Actions<T>];
|
|
8
|
+
declare function useToggle<T>(defaultValue: T): [T, Actions<T>];
|
|
9
|
+
declare function useToggle<T, U>(defaultValue: T, reverseValue: U): [T | U, Actions<T | U>];
|
|
10
|
+
export default useToggle;
|