@base-stone/hooks 0.9.3 → 0.9.5

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.
@@ -1,4 +1,5 @@
1
1
  import { Key } from 'react';
2
+ import { ReactElement } from 'react';
2
3
  import { ReactNode } from 'react';
3
4
  import { TablePaginationConfig } from 'antd/es/table/interface';
4
5
  import { TableProps as TableProps_2 } from 'antd';
@@ -10,12 +11,12 @@ import { TableProps as TableProps_2 } from 'antd';
10
11
  export declare function configureTableOption(config: GlobalTableConfig): void;
11
12
 
12
13
  export declare interface DrawerProps {
13
- size: number | string;
14
- title: string;
14
+ size: number | 'default' | 'large';
15
+ title: string | ReactElement;
15
16
  open: boolean;
16
17
  maskClosable: boolean;
17
18
  destroyOnHidden: boolean;
18
- placement: string;
19
+ placement: Placement;
19
20
  onClose: () => void;
20
21
  }
21
22
 
@@ -38,7 +39,7 @@ declare interface ModalConfig<T = Record<string, any>> {
38
39
  maskClosable?: boolean;
39
40
  centered?: boolean;
40
41
  destroyOnHidden?: boolean;
41
- placement?: 'top' | 'bottom' | 'left' | 'right';
42
+ placement?: Placement;
42
43
  onClose?: () => void;
43
44
  onCancel?: () => void;
44
45
  }
@@ -55,7 +56,7 @@ declare type ModalInstance<T = any> = {
55
56
 
56
57
  export declare interface ModalProps {
57
58
  width: number;
58
- title: string;
59
+ title: string | ReactElement;
59
60
  open: boolean;
60
61
  maskClosable: boolean;
61
62
  centered: boolean;
@@ -63,6 +64,8 @@ export declare interface ModalProps {
63
64
  onCancel: () => void;
64
65
  }
65
66
 
67
+ declare type Placement = 'top' | 'bottom' | 'left' | 'right';
68
+
66
69
  export declare interface QueryParamsData {
67
70
  pageNo: number;
68
71
  pageSize: number;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@base-stone/hooks",
3
3
  "license": "MIT",
4
- "version": "0.9.3",
4
+ "version": "0.9.5",
5
5
  "author": {
6
6
  "name": "leafront",
7
7
  "email": "leafront@126.com"