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.
@@ -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 '../unrelated/typings';
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 '../../unrelated/typings';
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 '../unrelated/typings';
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 '../unrelated/typings';
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 '../unrelated/typings';
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 '../unrelated/typings';
2
+ import { AjaxResultType, AnyObjectType, PromiseAxiosResultType } from '../brother/typings';
3
3
  import './index.less';
4
4
  export interface QuicklyProcessTypes {
5
5
  /** 打开或关闭 */
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { TreeProps } from 'antd/es/tree';
3
- import { AnyObjectType } from '../unrelated/typings';
3
+ import { AnyObjectType } from '../brother/typings';
4
4
  import './index.less';
5
5
  export interface TreeNodeCallType {
6
6
  setLoading: (data: boolean) => void;
@@ -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 '../unrelated/typings';
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;
@@ -0,0 +1,3 @@
1
+ declare type noop = (...args: any[]) => any;
2
+ declare function useMemoizedFn<T extends noop>(fn: T): T;
3
+ export default useMemoizedFn;
@@ -0,0 +1,2 @@
1
+ declare const useMount: (fn: () => void) => void;
2
+ export default useMount;
@@ -0,0 +1,2 @@
1
+ declare const useUnmount: (fn: () => void) => void;
2
+ export default useUnmount;
@@ -0,0 +1,4 @@
1
+ import { useEffect, useLayoutEffect } from 'react';
2
+ declare type effectHookType = typeof useEffect | typeof useLayoutEffect;
3
+ declare const _default: effectHookType;
4
+ export default _default;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { FormListType } from '../../GenerateForm';
3
- import { SelectType } from '../../unrelated/typings';
3
+ import { SelectType } from '../../brother/typings';
4
4
  /**
5
5
  * @Description 组件是否重新渲染比较
6
6
  * @Author bihongbin
package/lib/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
- export { default as hooks } from './unrelated/hooks';
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';