README
plug-in-vue3-cll
This NPM package is a collection of plug-ins
functions
debounce
// debounce is debounce防抖方法
visibilitychangeEventAdd
// visibilitychangeEventAdd是添加监听窗口变化的事件
visibilitychangeEventRemove
// visibilitychangeEventRemove是删除监听窗口变化的事件
deepTraverse
// deepTraverse是对象深度遍历方法
// 传参(target:目标对象, key: 对象中值匹配的键, child: 对象中孩子匹配的键, value: 对象中值匹配的键比较的值, fn: 对相同值的项执行方法)
plugins
debounce-plug-in
// Introducing variable 'timer' and method 'debounce'
// fn is function, delay i delay
// debounce(fn, delay);
visibilitychangeEvent-plug-in
// onMounted, onUnmounted
// onMounted(() => {visibilitychangeEventAdd();});
// onUnmounted(() => {visibilitychangeEventRemove();});
deepTraverse-plug-in
// deepTraverse(target, key, child, value, fn)
// deepTraverseNew(target, fn, child )