提交 7454fab7 编写于 作者: Q qiang

chore(x-ios): update uvue

上级 7ae6685e
......@@ -9,6 +9,7 @@ import { pauseTracking, resetTracking, isRef, toRaw, isShallow, isReactive, Reac
export { EffectScope, ReactiveEffect, TrackOpTypes, TriggerOpTypes, customRef, effect, effectScope, getCurrentScope, isProxy, isReactive, isReadonly, isRef, isShallow, markRaw, onScopeDispose, proxyRefs, reactive, readonly, ref, shallowReactive, shallowReadonly, shallowRef, stop, toRaw, toRef, toRefs, toValue, triggerRef, unref } from '@vue/reactivity';
import { isRootHook, isRootImmediateHookX, ON_LOAD, normalizeClass as normalizeClass$1, normalizeStyle as normalizeStyle$1 } from '@dcloudio/uni-shared';
export { normalizeClass, normalizeProps, normalizeStyle } from '@dcloudio/uni-shared';
import PromisePolyfill from 'promise-polyfill';
const stack = [];
function pushWarningContext(vnode) {
......@@ -277,29 +278,22 @@ let flushIndex = 0;
const pendingPostFlushCbs = [];
let activePostFlushCbs = null;
let postFlushIndex = 0;
const iOSPromise = {
then(callback) {
setTimeout(() => callback(), 0);
}
};
const resolvedPromise = iOSPromise;
const resolvedPromise = /* @__PURE__ */ PromisePolyfill.resolve();
let currentFlushPromise = null;
const RECURSION_LIMIT = 100;
function nextTick(fn, instance = getCurrentInstance()) {
const promise = currentFlushPromise || resolvedPromise;
const current = currentFlushPromise === null || instance === null ? promise : {
then(resolve) {
promise.then(() => {
if (instance === null) {
const current = currentFlushPromise === null || instance === null ? promise : promise.then(() => {
return new Promise((resolve) => {
if (instance === null) {
resolve();
} else {
instance.$waitNativeRender(() => {
resolve();
} else {
instance.$waitNativeRender(() => {
resolve();
});
}
});
}
};
});
}
});
});
return fn ? current.then(this ? fn.bind(this) : fn) : current;
}
function findInsertionIndex(id) {
......
......@@ -136,6 +136,9 @@ importers:
prettier:
specifier: ^2.7.1
version: 2.8.8
promise-polyfill:
specifier: ^8.3.0
version: 8.3.0
rollup:
specifier: ^4.13.0
version: 4.14.2
......@@ -9757,6 +9760,10 @@ packages:
engines: {node: '>= 0.6.0'}
dev: false
/promise-polyfill@8.3.0:
resolution: {integrity: sha512-H5oELycFml5yto/atYqmjyigJoAo3+OXwolYiH7OfQuYlAqhxNvTfiNMbV9hsC6Yp83yE5r2KTVmtrG6R9i6Pg==}
dev: true
/promise@7.3.1:
resolution: {integrity: sha512-nolQXZ/4L+bP/UGlkfaIujX9BKxGwmQ9OT4mOt5yvy8iK1h3wqTEJCijzGANTCCl9nWjY41juyAn2K3Q1hLLTg==}
dependencies:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册