@whitesev/utils 2.2.4 → 2.2.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/dist/index.amd.js CHANGED
@@ -5293,6 +5293,10 @@ define((function () { 'use strict';
5293
5293
  * @param target 目标元素
5294
5294
  * @param callback 触发的回调
5295
5295
  * @param options 观察器配置
5296
+ * @example
5297
+ * Utils.mutationVisible(document.querySelector("div.xxxx"),(entries,observer)=>{
5298
+ * console.log("该元素出现在视图内");
5299
+ * }))
5296
5300
  */
5297
5301
  mutationVisible(target, callback, options) {
5298
5302
  if (typeof IntersectionObserver === "undefined") {