@dataloop-ai/components 0.19.4 → 0.19.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.
package/package.json
CHANGED
|
@@ -169,10 +169,11 @@ export default defineComponent({
|
|
|
169
169
|
},
|
|
170
170
|
/**
|
|
171
171
|
* the % of the parent element that triggers the tooltips visibility
|
|
172
|
+
* @default 0 - no hide occurs when trigger % is 0
|
|
172
173
|
*/
|
|
173
174
|
triggerPercentage: {
|
|
174
175
|
type: Number,
|
|
175
|
-
default:
|
|
176
|
+
default: 0
|
|
176
177
|
}
|
|
177
178
|
},
|
|
178
179
|
emits: [...useModelToggleEmits, 'click', 'escapekey', 'close-button-click'],
|
|
@@ -421,12 +421,12 @@ export default defineComponent({
|
|
|
421
421
|
return
|
|
422
422
|
}
|
|
423
423
|
|
|
424
|
-
const isAnchorElVisible =
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
424
|
+
const isAnchorElVisible =
|
|
425
|
+
props.triggerPercentage === 0
|
|
426
|
+
? true
|
|
427
|
+
: await CheckAnchorElVisibility(anchorEl.value, {
|
|
428
|
+
triggerPercentage: props.triggerPercentage
|
|
429
|
+
})
|
|
430
430
|
|
|
431
431
|
if (!isAnchorElVisible) {
|
|
432
432
|
hide()
|