ks-fwork 4.0.0 → 4.1.0
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/dist/ks-fwork.js +8 -1
- package/package.json +1 -1
- package/src/index.js +1 -0
- package/src/scheduler.js +9 -0
package/dist/ks-fwork.js
CHANGED
|
@@ -219,6 +219,13 @@ function processJobs() {
|
|
|
219
219
|
}
|
|
220
220
|
isScheduled = false;
|
|
221
221
|
}
|
|
222
|
+
function nextTick() {
|
|
223
|
+
scheduleUpdate();
|
|
224
|
+
return flushPromises();
|
|
225
|
+
}
|
|
226
|
+
function flushPromises() {
|
|
227
|
+
return new Promise((resolve) => setTimeout(resolve));
|
|
228
|
+
}
|
|
222
229
|
|
|
223
230
|
function destroyDOM(vNode) {
|
|
224
231
|
const { type } = vNode;
|
|
@@ -784,4 +791,4 @@ function defineComponent({ render, state, onMounted = emptyFn, onUnmounted = emp
|
|
|
784
791
|
return Component;
|
|
785
792
|
}
|
|
786
793
|
|
|
787
|
-
export { createApp, defineComponent, h, hFragment, hString };
|
|
794
|
+
export { createApp, defineComponent, h, hFragment, hString, nextTick };
|
package/package.json
CHANGED
package/src/index.js
CHANGED
package/src/scheduler.js
CHANGED