@whitesev/utils 2.2.3 → 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.
@@ -5294,8 +5294,12 @@ var Utils = (function () {
5294
5294
  * @param target 目标元素
5295
5295
  * @param callback 触发的回调
5296
5296
  * @param options 观察器配置
5297
+ * @example
5298
+ * Utils.mutationVisible(document.querySelector("div.xxxx"),(entries,observer)=>{
5299
+ * console.log("该元素出现在视图内");
5300
+ * }))
5297
5301
  */
5298
- mutatuinVisible(target, callback, options) {
5302
+ mutationVisible(target, callback, options) {
5299
5303
  if (typeof IntersectionObserver === "undefined") {
5300
5304
  throw new TypeError("IntersectionObserver is not defined");
5301
5305
  }