vue-amazing-ui 1.3.0 → 1.3.2

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/README.md CHANGED
@@ -149,7 +149,7 @@ debounce | 防抖函数 | (fn: Function, delay = 300) => any
149
149
  add | 消除 `js` 加减精度问题的加法函数 | (num1: number, num2: number) => number
150
150
  downloadFile | 下载文件并自定义文件名,未传 `name` 时,从文件地址中自动提取文件名称 | (url: string, name: string) => void
151
151
  toggleDark | 一键切换暗黑模式函数 | () => void
152
- useEventListener | 使用 `Vue` 的生命周期钩子添加和移除事件监听器 | (target: HTMLElement | Window, event: string, callback: Function) => void
152
+ useEventListener | 使用 `Vue` 的生命周期钩子添加和移除事件监听器 | (target: HTMLElement | Window | Document, event: string, callback: Function) => void
153
153
  useMutationObserver | 使用 `MutationObserver` 观察 `DOM` 元素的变化 | (target: Ref | Ref[] | HTMLElement | HTMLElement[], callback: MutationCallback, options = {}) => object
154
154
  useScrollDirection | 实时监测页面滚动方向 | (throttleDelay: 100) => object
155
155
  useFps | 实时监测浏览器刷新率 `FPS` | () => object