@base-stone/hooks 0.9.1 → 0.9.2

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.
@@ -22,7 +22,7 @@ declare interface GlobalTableConfig {
22
22
 
23
23
  declare type MapData<T extends string | number = string | number> = Map<T, string | number | undefined>;
24
24
 
25
- declare interface ModalConfig<T = any> {
25
+ declare interface ModalConfig<T = Record<string, any>> {
26
26
  width: number;
27
27
  title: string | ((data: T) => string);
28
28
  maskClosable?: boolean;
@@ -34,7 +34,7 @@ declare interface ModalConfig<T = any> {
34
34
  declare type ModalInstance<T = any> = {
35
35
  visible: boolean;
36
36
  data: T;
37
- props: ModalProps;
37
+ modalProps: ModalProps;
38
38
  toggle: (data?: T) => void;
39
39
  open: (data?: T) => void;
40
40
  close: () => void;
@@ -179,7 +179,7 @@ function ce(n) {
179
179
  f[`${e}Modal`] = {
180
180
  visible: u.visible,
181
181
  data: u.data,
182
- props: {
182
+ modalProps: {
183
183
  width: d.width,
184
184
  title: E,
185
185
  open: u.visible,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@base-stone/hooks",
3
3
  "license": "MIT",
4
- "version": "0.9.1",
4
+ "version": "0.9.2",
5
5
  "author": {
6
6
  "name": "leafront",
7
7
  "email": "leafront@126.com"