hlyc-web-pack 3.5.74 → 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.
Files changed (32) hide show
  1. package/lib/{components/Empty → Empty}/index.d.ts +2 -4
  2. package/lib/{components/GenerateForm → GenerateForm}/index.d.ts +1 -2
  3. package/lib/{components/GenerateTable → GenerateTable}/EditableCell/index.d.ts +1 -1
  4. package/lib/{components/GenerateTable → GenerateTable}/index.d.ts +1 -1
  5. package/lib/{components/LayoutFormModal → LayoutFormModal}/index.d.ts +1 -1
  6. package/lib/{components/LayoutTableModal → LayoutTableModal}/index.d.ts +1 -1
  7. package/lib/{components/QuicklyProcessForms → QuicklyProcessForms}/index.d.ts +1 -1
  8. package/lib/{components/TreeNode → TreeNode}/index.d.ts +1 -1
  9. package/lib/{components/Upload → Upload}/index.d.ts +1 -1
  10. package/lib/{hooks → brother/hooks}/index.d.ts +6 -0
  11. package/lib/brother/hooks/useLatest/index.d.ts +3 -0
  12. package/lib/brother/hooks/useMemoizedFn/index.d.ts +3 -0
  13. package/lib/brother/hooks/useMethods/index.d.ts +2 -0
  14. package/lib/brother/hooks/useToggle/index.d.ts +10 -0
  15. package/lib/{components/unrelated → brother}/utils/index.d.ts +1 -1
  16. package/lib/{components/index.d.ts → index.d.ts} +1 -1
  17. package/lib/index.js +2 -2
  18. package/package.json +1 -1
  19. /package/lib/{components/Affix → Affix}/index.d.ts +0 -0
  20. /package/lib/{components/ButtonGroup → ButtonGroup}/index.d.ts +0 -0
  21. /package/lib/{components/Dialog → Dialog}/index.d.ts +0 -0
  22. /package/lib/{components/GaoDeMap → GaoDeMap}/index.d.ts +0 -0
  23. /package/lib/{components/GenerateTable → GenerateTable}/ResizableTitle/index.d.ts +0 -0
  24. /package/lib/{components/IconSelectionModal → IconSelectionModal}/index.d.ts +0 -0
  25. /package/lib/{components/unrelated → brother}/ConfigProvider/index.d.ts +0 -0
  26. /package/lib/{components/unrelated → brother}/DndWrap/index.d.ts +0 -0
  27. /package/lib/{hooks → brother/hooks}/useDeepCompareEffect/index.d.ts +0 -0
  28. /package/lib/{hooks → brother/hooks}/useMount/index.d.ts +0 -0
  29. /package/lib/{hooks → brother/hooks}/useSetState/index.d.ts +0 -0
  30. /package/lib/{hooks → brother/hooks}/useUnmount/index.d.ts +0 -0
  31. /package/lib/{hooks → brother/hooks}/useUpdateEffect/index.d.ts +0 -0
  32. /package/lib/{components/unrelated → brother}/typings/index.d.ts +0 -0
@@ -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 function Empty(props?: Props): JSX.Element;
10
- /** 控组件 */
7
+ /** 空内容 */
8
+ declare const Empty: (props?: Props | undefined) => JSX.Element;
11
9
  export default Empty;
@@ -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;
@@ -131,5 +131,4 @@ export interface GenerateFormPropType {
131
131
  render?: () => React.ReactElement;
132
132
  }
133
133
  declare const _default: React.ForwardRefExoticComponent<GenerateFormPropType & React.RefAttributes<unknown>>;
134
- /** 动态表单组件 */
135
134
  export default _default;
@@ -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
  /** 选择文件按钮 */
@@ -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,3 @@
1
+ /// <reference types="react" />
2
+ declare function useLatest<T>(value: T): import("react").MutableRefObject<T>;
3
+ export default useLatest;
@@ -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 function useMethods<T extends Record<string, (...args: any[]) => any>>(methods: T): T;
2
+ export default useMethods;
@@ -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;
@@ -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
@@ -1,5 +1,5 @@
1
1
  import 'antd/dist/antd.less';
2
- export { default as hooks } from '../hooks';
2
+ export { default as hooks } from './brother/hooks';
3
3
  export { default as Affix } from './Affix';
4
4
  export { default as Dialog } from './Dialog';
5
5
  export { default as GaoDeMap } from './GaoDeMap';