bge-ui 1.6.7 → 1.6.9
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.
- package/dist/index.js +6 -3
- package/package.json +1 -1
- package/src/select/index.vue +1 -0
- package/src/tooltip/usePopper.ts +5 -3
package/dist/index.js
CHANGED
|
@@ -7955,9 +7955,11 @@ const usePopper = function(triggerReference, suppliedOptions = {}) {
|
|
|
7955
7955
|
};
|
|
7956
7956
|
const openWithDelay = useDebounceFn(async () => {
|
|
7957
7957
|
var _a;
|
|
7958
|
-
|
|
7959
|
-
|
|
7960
|
-
|
|
7958
|
+
if (isTargetHovered.value || !options.hover) {
|
|
7959
|
+
const updated = await ((_a = popperInstance.value) == null ? void 0 : _a.update());
|
|
7960
|
+
placementState.value = (updated == null ? void 0 : updated.placement) || options.placement;
|
|
7961
|
+
isOpened.value = true;
|
|
7962
|
+
}
|
|
7961
7963
|
}, options.openDelay);
|
|
7962
7964
|
const closeWithDelay = useDebounceFn(() => {
|
|
7963
7965
|
if (options.hover === false || options.interactive === false) {
|
|
@@ -10932,6 +10934,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
10932
10934
|
class: "bge-select-popper-wrapper",
|
|
10933
10935
|
teleported: false,
|
|
10934
10936
|
"show-arrow": false,
|
|
10937
|
+
"open-delay": 0,
|
|
10935
10938
|
type: "dropdown",
|
|
10936
10939
|
hover: false
|
|
10937
10940
|
}, {
|
package/package.json
CHANGED
package/src/select/index.vue
CHANGED
package/src/tooltip/usePopper.ts
CHANGED
|
@@ -198,9 +198,11 @@ const usePopper = function (triggerReference, suppliedOptions: Options = {}) {
|
|
|
198
198
|
* Handle the opening of the tooltip with delay
|
|
199
199
|
*/
|
|
200
200
|
const openWithDelay = useDebounceFn(async () => {
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
201
|
+
if (isTargetHovered.value || !options.hover) {
|
|
202
|
+
const updated = await popperInstance.value?.update();
|
|
203
|
+
placementState.value = updated?.placement || options.placement;
|
|
204
|
+
isOpened.value = true;
|
|
205
|
+
}
|
|
204
206
|
}, options.openDelay);
|
|
205
207
|
|
|
206
208
|
/**
|