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