合规国际互联网加速 OSASE为企业客户提供高速稳定SD-WAN国际加速解决方案。 广告
[TOC] ## useDebouncedRefHistory 根据防抖设置 ``` const counter =ref<number>(0); const { history, undo, redo } = useDebouncedRefHistory(counter, { deep: true, debounce: 1000 }) ``` ## useThrottledRefHistory 节流生成历史 ``` const { history, undo, redo } = useThrottledRefHistory(counter, { deep: true, throttle: 1000 }) ``` ## useManualRefHistory 设置可撤回的值 ``` const counter =ref<number>(0); const { history, commit, undo, redo }=useManualRefHistory(counter) ``` ## useRefHistory 更改后就产生历史 ``` const counter =ref<number>(0); const { history, undo, redo } = useRefHistory(counter) ```