diff --git a/packages/uni-app-vue/dist/nvue.runtime.esm.dev.js b/packages/uni-app-vue/dist/nvue.runtime.esm.dev.js index b6453c5b6873ecb4f3cd49128de1c6012f737ef4..976744d0465c6276d0945c8c1170137ee2ac95d5 100644 --- a/packages/uni-app-vue/dist/nvue.runtime.esm.dev.js +++ b/packages/uni-app-vue/dist/nvue.runtime.esm.dev.js @@ -8245,8 +8245,9 @@ var PublicInstanceProxyHandlers = { defineProperty(target, key, descriptor) { if (descriptor.get != null) { - this.set(target, key, descriptor.get(), null); - } else if (descriptor.value != null) { + // invalidate key cache of a getter based property #5417 + target.$.accessCache[key] = 0; + } else if (hasOwn(descriptor, 'value')) { this.set(target, key, descriptor.value, null); } @@ -9419,9 +9420,7 @@ function parseClassList(classList, instance) { function parseStylesheet(_ref22) { var { type, - vnode: { - appContext - } + appContext } = _ref22; var component = type; @@ -9540,7 +9539,8 @@ function patchClass(el, pre, next) { } var preClassList = pre ? pre.split(' ') : []; - var classList = next ? next.split(' ') : []; + var classList = next ? next.split(' ') : []; // 此时 parentNode,previousSibling 等节点信息还未更新 + var oldStyle = getStyle(preClassList, el, instance); var newStyle = getStyle(classList, el, instance); var cur, name; diff --git a/packages/uni-app-vue/dist/nvue.runtime.esm.prod.js b/packages/uni-app-vue/dist/nvue.runtime.esm.prod.js index 03fa3673ff5c3d4112da02491833851a1cf8c60d..c93e83457d05034d262f1fe76983ebdfc12726b6 100644 --- a/packages/uni-app-vue/dist/nvue.runtime.esm.prod.js +++ b/packages/uni-app-vue/dist/nvue.runtime.esm.prod.js @@ -6891,8 +6891,9 @@ var PublicInstanceProxyHandlers = { defineProperty(target, key, descriptor) { if (descriptor.get != null) { - this.set(target, key, descriptor.get(), null); - } else if (descriptor.value != null) { + // invalidate key cache of a getter based property #5417 + target.$.accessCache[key] = 0; + } else if (hasOwn(descriptor, 'value')) { this.set(target, key, descriptor.value, null); } @@ -7686,9 +7687,7 @@ function parseClassList(classList, instance) { function parseStylesheet(_ref22) { var { type, - vnode: { - appContext - } + appContext } = _ref22; var component = type; @@ -7807,7 +7806,8 @@ function patchClass(el, pre, next) { } var preClassList = pre ? pre.split(' ') : []; - var classList = next ? next.split(' ') : []; + var classList = next ? next.split(' ') : []; // 此时 parentNode,previousSibling 等节点信息还未更新 + var oldStyle = getStyle(preClassList, el, instance); var newStyle = getStyle(classList, el, instance); var cur, name; diff --git a/packages/uni-app-vue/lib/nvue.runtime.esm.js b/packages/uni-app-vue/lib/nvue.runtime.esm.js index fadd613cb25e2acad606f8c85bce36a824fdedc2..5a2878f7d38decf899f2bcbb101b3909eafe5204 100644 --- a/packages/uni-app-vue/lib/nvue.runtime.esm.js +++ b/packages/uni-app-vue/lib/nvue.runtime.esm.js @@ -6818,9 +6818,10 @@ const PublicInstanceProxyHandlers = { }, defineProperty(target, key, descriptor) { if (descriptor.get != null) { - this.set(target, key, descriptor.get(), null); + // invalidate key cache of a getter based property #5417 + target.$.accessCache[key] = 0; } - else if (descriptor.value != null) { + else if (hasOwn(descriptor, 'value')) { this.set(target, key, descriptor.value, null); } return Reflect.defineProperty(target, key, descriptor); @@ -7883,7 +7884,7 @@ function parseClassList(classList, instance, el = null) { }); return context.styles; } -function parseStylesheet({ type, vnode: { appContext } }) { +function parseStylesheet({ type, appContext }) { const component = type; if (!component.__styles) { if (component.mpType === 'page' && appContext) { @@ -7984,6 +7985,7 @@ function patchClass(el, pre, next, instance = null) { } const preClassList = pre ? pre.split(' ') : []; const classList = next ? next.split(' ') : []; + // 此时 parentNode,previousSibling 等节点信息还未更新 const oldStyle = getStyle(preClassList, el, instance); const newStyle = getStyle(classList, el, instance); let cur, name;