hlyc-web-pack 3.5.73 → 3.5.75
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/GenerateForm/index.d.ts +1 -1
- package/lib/GenerateTable/EditableCell/index.d.ts +1 -1
- package/lib/GenerateTable/index.d.ts +1 -1
- package/lib/LayoutFormModal/index.d.ts +1 -1
- package/lib/LayoutTableModal/index.d.ts +1 -1
- package/lib/QuicklyProcessForms/index.d.ts +1 -1
- package/lib/TreeNode/index.d.ts +1 -1
- package/lib/Upload/index.d.ts +1 -1
- package/lib/brother/hooks/index.d.ts +11 -0
- package/lib/brother/hooks/useDeepCompareEffect/index.d.ts +7 -0
- package/lib/brother/hooks/useMemoizedFn/index.d.ts +3 -0
- package/lib/brother/hooks/useMount/index.d.ts +2 -0
- package/lib/brother/hooks/useUnmount/index.d.ts +2 -0
- package/lib/brother/hooks/useUpdateEffect/index.d.ts +4 -0
- package/lib/{unrelated → brother}/utils/index.d.ts +1 -1
- package/lib/index.d.ts +2 -1
- package/lib/index.js +4 -4
- package/package.json +1 -2
- package/lib/unrelated/hooks/index.d.ts +0 -4
- /package/lib/{unrelated → brother}/ConfigProvider/index.d.ts +0 -0
- /package/lib/{unrelated → brother}/DndWrap/index.d.ts +0 -0
- /package/lib/{unrelated → brother}/hooks/useSetState/index.d.ts +0 -0
- /package/lib/{unrelated → brother}/typings/index.d.ts +0 -0
|
@@ -13,7 +13,7 @@ import { CheckboxValueType } from 'antd/es/checkbox/Group';
|
|
|
13
13
|
import { DataNode, DefaultValueType } from 'rc-tree-select/es/interface';
|
|
14
14
|
import { FormInstance } from 'rc-field-form/es/interface';
|
|
15
15
|
import { DatePickerProps, RangePickerProps } from 'antd/es/date-picker';
|
|
16
|
-
import { AnyObjectType, SelectType } from '../
|
|
16
|
+
import { AnyObjectType, SelectType } from '../brother/typings';
|
|
17
17
|
import './index.less';
|
|
18
18
|
export interface DefaultOptionType {
|
|
19
19
|
value?: string | number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { InternalFieldProps } from 'rc-field-form/lib/Field';
|
|
3
|
-
import { SelectType, AnyObjectType } from '../../
|
|
3
|
+
import { SelectType, AnyObjectType } from '../../brother/typings';
|
|
4
4
|
import './index.less';
|
|
5
5
|
declare type remoteValueType = string | undefined;
|
|
6
6
|
declare type remotePromiseType = (value: remoteValueType, record: AnyObjectType) => Promise<SelectType[]>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TablePaginationConfig, TableProps, ColumnType } from 'antd/es/table';
|
|
3
3
|
import { EditableColumnsType } from './EditableCell';
|
|
4
|
-
import { AnyObjectType, PromiseAxiosResultType } from '../
|
|
4
|
+
import { AnyObjectType, PromiseAxiosResultType } from '../brother/typings';
|
|
5
5
|
import './index.less';
|
|
6
6
|
export declare type TableColumns<T = AnyObjectType> = ColumnType<T> & Partial<EditableColumnsType>;
|
|
7
7
|
export interface getTableListQueryType {
|
|
@@ -3,7 +3,7 @@ import { FormInstance } from 'rc-field-form/es/interface';
|
|
|
3
3
|
import { FormProps } from 'antd/es/form';
|
|
4
4
|
import { ColProps } from 'antd/es/col';
|
|
5
5
|
import { FormListType } from '../GenerateForm';
|
|
6
|
-
import { AnyObjectType, SubmitApiType } from '../
|
|
6
|
+
import { AnyObjectType, SubmitApiType } from '../brother/typings';
|
|
7
7
|
import './index.less';
|
|
8
8
|
export interface LayoutFormPropTypes {
|
|
9
9
|
/** 打开或关闭 */
|
|
@@ -5,7 +5,7 @@ import { TableProps } from 'antd/es/table';
|
|
|
5
5
|
import { FormProps } from 'antd/es/form';
|
|
6
6
|
import { FormListType, FormCallType } from '../GenerateForm';
|
|
7
7
|
import { TableCallType, GenerateTableProp, TableColumns, getTableListQueryType } from '../GenerateTable';
|
|
8
|
-
import { AnyObjectType, PromiseAxiosResultType } from '../
|
|
8
|
+
import { AnyObjectType, PromiseAxiosResultType } from '../brother/typings';
|
|
9
9
|
import './index.less';
|
|
10
10
|
export declare type LayoutTableModalCallType = TableCallType & FormCallType & {
|
|
11
11
|
setSavaLoading: (data: boolean) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FormListType } from '../GenerateForm';
|
|
2
|
-
import { AjaxResultType, AnyObjectType, PromiseAxiosResultType } from '../
|
|
2
|
+
import { AjaxResultType, AnyObjectType, PromiseAxiosResultType } from '../brother/typings';
|
|
3
3
|
import './index.less';
|
|
4
4
|
export interface QuicklyProcessTypes {
|
|
5
5
|
/** 打开或关闭 */
|
package/lib/TreeNode/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TreeProps } from 'antd/es/tree';
|
|
3
|
-
import { AnyObjectType } from '../
|
|
3
|
+
import { AnyObjectType } from '../brother/typings';
|
|
4
4
|
import './index.less';
|
|
5
5
|
export interface TreeNodeCallType {
|
|
6
6
|
setLoading: (data: boolean) => void;
|
package/lib/Upload/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UploadProps } from 'antd/es/upload';
|
|
2
2
|
import { UploadFile } from 'antd/es/upload/interface';
|
|
3
|
-
import { AnyObjectType } from '../
|
|
3
|
+
import { AnyObjectType } from '../brother/typings';
|
|
4
4
|
import './index.less';
|
|
5
5
|
export declare type PropsType = {
|
|
6
6
|
/** 选择文件按钮 */
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import useDeepCompareEffect from './useDeepCompareEffect';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
useSetState: <T extends object>(initialState?: T) => [T, (patch: Partial<T> | ((prevState: T) => Partial<T>)) => void];
|
|
5
|
+
useDeepCompareEffect: typeof useDeepCompareEffect;
|
|
6
|
+
useUpdateEffect: typeof import("react").useEffect | typeof import("react").useLayoutEffect;
|
|
7
|
+
useMemoizedFn: typeof import("react").useEffect | typeof import("react").useLayoutEffect;
|
|
8
|
+
useMount: (fn: () => void) => void;
|
|
9
|
+
useUnmount: (fn: () => void) => void;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare type UseEffectParams = Parameters<typeof React.useEffect>;
|
|
3
|
+
declare type EffectCallback = UseEffectParams[0];
|
|
4
|
+
declare type DependencyList = UseEffectParams[1];
|
|
5
|
+
declare type UseEffectReturn = ReturnType<typeof React.useEffect>;
|
|
6
|
+
declare function useDeepCompareEffect(callback: EffectCallback, dependencies: DependencyList): UseEffectReturn;
|
|
7
|
+
export default useDeepCompareEffect;
|
package/lib/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import 'antd/dist/antd.less';
|
|
2
|
+
export { default as hooks } from './brother/hooks';
|
|
2
3
|
export { default as Affix } from './Affix';
|
|
3
4
|
export { default as Dialog } from './Dialog';
|
|
4
5
|
export { default as GaoDeMap } from './GaoDeMap';
|