feat(runtime-core): 添加预冲洗回调队列功能

- 在 runtime-core 中新增 queuePreFlushCb 函数用于管理预冲洗回调
- 在 vue 包中导出 queuePreFlushCb 函数供外部使用
- 实现调度器中的回调队列机制,包括队列管理和执行逻辑
- 添加去重逻辑确保回调函数只执行一次
- 新增示例文件展示调度器预冲洗回调的使用方法
This commit is contained in:
dj
2026-02-24 22:06:33 +08:00
parent ba03278947
commit 4a71105e28
4 changed files with 64 additions and 0 deletions

View File

@@ -1 +1,2 @@
export { reactive, effect, ref, computed } from '@vue/reactivity'
export { queuePreFlushCb } from '@vue/runtime-core'