wargerm 0.4.33 → 0.4.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.
@@ -10,5 +10,5 @@ declare type Props = {
10
10
  className?: string;
11
11
  style?: React.CSSProperties;
12
12
  };
13
- export default function DragBox({ title, children, closeIcon, onClose, visible, isDrag, isResize, className, style, }: Props): false | JSX.Element;
13
+ export default function DragBox({ title, children, closeIcon, onClose, visible, isDrag, isResize, className, style, }: Props): JSX.Element;
14
14
  export {};
@@ -72,7 +72,7 @@ declare type Props = {
72
72
  pageSize?: number;
73
73
  current?: number;
74
74
  }, sort?: any, filter?: any) => Promise<any>;
75
- onLoad?: (dataSource: Record<string, any>[]) => void;
75
+ onLoad?: (dataSource: Record<string, any>[], res: Record<string, any>) => void;
76
76
  onSubmit?: (params: Record<string, any>) => void;
77
77
  onReset?: () => void;
78
78
  rowKey: ((record: Record<string, any>) => number | string) | string;
@@ -94,4 +94,5 @@ declare namespace Table {
94
94
  rowKey: string;
95
95
  };
96
96
  }
97
- export default Table;
97
+ declare const _default: React.MemoExoticComponent<typeof Table>;
98
+ export default _default;
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import { TreeSelectProps as Props } from 'antd/lib/tree-select';
3
+ import { ReactNode } from 'react';
3
4
  interface TreeSelectProps<T> extends Props<T> {
4
5
  treeNodeLabelProp?: string;
5
6
  treeNodeValueProp?: string;
@@ -7,6 +8,7 @@ interface TreeSelectProps<T> extends Props<T> {
7
8
  request?: () => Promise<any>;
8
9
  onLoad?: (options: Record<string, any>[]) => void;
9
10
  params?: Record<string, any>;
11
+ children?: ReactNode;
10
12
  }
11
13
  export declare type IndexComponent = React.FC<TreeSelectProps<any>> & {
12
14
  TreeNode?: React.FC<any>;