This commit is contained in:
zlwu committed 2026-06-10 22:59:34 +08:00
1 parent 725774ef0c
commit c3be9d1dce
176 files changed
+41925 -6342

No files matched your search

@@ -0,0 +1,14 @@
import { watchDebounced } from '@vueuse/core'
/**
* 地磅列表筛选项变更后防抖触发检索(即时检索,默认 300ms)
*/
export function useDbInstantSearch(getFilterSnapshot: () => unknown, onSearch: () => void, debounce = 300) {
watchDebounced(
getFilterSnapshot,
() => {
onSearch()
},
{ debounce, deep: true }
)
}