@hi-ui/pop-confirm 4.0.5 → 4.0.6

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.
@@ -9,9 +9,9 @@ export declare const usePopConfirm: ({ visible: visibleProp, disabled, closeOnCa
9
9
  visible: boolean;
10
10
  attachEl: HTMLElement | null;
11
11
  onClose: () => void;
12
+ gutterGap: any;
12
13
  arrow: any;
13
14
  placement: any;
14
- gutterGap: any;
15
15
  };
16
16
  onCancel: () => void;
17
17
  onConfirm: () => void;
@@ -47,6 +47,10 @@ export interface UsePopConfirmProps {
47
47
  * 点击确认按钮时回调
48
48
  */
49
49
  onConfirm?: () => void;
50
+ /**
51
+ * 设置基于 reference 元素的间隙偏移量
52
+ */
53
+ gutterGap?: number;
50
54
  /**
51
55
  * 是否开启禁用。暂不对外暴露
52
56
  * @private
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hi-ui/pop-confirm",
3
- "version": "4.0.5",
3
+ "version": "4.0.6",
4
4
  "description": "A sub-package for @hi-ui/hiui.",
5
5
  "keywords": [],
6
6
  "author": "HiUI <mi-hiui@xiaomi.com>",
@@ -67,5 +67,5 @@
67
67
  "react": "^17.0.1",
68
68
  "react-dom": "^17.0.1"
69
69
  },
70
- "gitHead": "686243832edd8a2d114ac385d0910838233c1e85"
70
+ "gitHead": "785078746d82c4082b1cf884f8e235166648ef98"
71
71
  }