@kdcloudjs/kdesign 1.7.33-stable.14 → 1.7.33-stable.15

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.
@@ -245,6 +245,10 @@ function usePopper(locatorElement, popperElement, props) {
245
245
  right = _realDom$getBoundingC.right,
246
246
  height = _realDom$getBoundingC.height,
247
247
  width = _realDom$getBoundingC.width;
248
+ if (height === 0 && width === 0) {
249
+ hidePopper();
250
+ return;
251
+ }
248
252
  var _getOffsetPos = getOffsetPos(container),
249
253
  containerTop = _getOffsetPos.top,
250
254
  containerLeft = _getOffsetPos.left;
@@ -259,6 +259,10 @@ function usePopper(locatorElement, popperElement, props) {
259
259
  right = _realDom$getBoundingC.right,
260
260
  height = _realDom$getBoundingC.height,
261
261
  width = _realDom$getBoundingC.width;
262
+ if (height === 0 && width === 0) {
263
+ hidePopper();
264
+ return;
265
+ }
262
266
  var _getOffsetPos = getOffsetPos(container),
263
267
  containerTop = _getOffsetPos.top,
264
268
  containerLeft = _getOffsetPos.left;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kdcloudjs/kdesign",
3
- "version": "1.7.33-stable.14",
3
+ "version": "1.7.33-stable.15",
4
4
  "description": "KDesign 金蝶前端react 组件库",
5
5
  "title": "kdesign",
6
6
  "keywords": [