diff --git a/packages/uni-app-vue/dist/service.runtime.esm.js b/packages/uni-app-vue/dist/service.runtime.esm.js index 2542daa755ed688c46b6ac44f7a774581df5be9c..cb51cd75de6b605495673385ba9e0d2246ef6790 100644 --- a/packages/uni-app-vue/dist/service.runtime.esm.js +++ b/packages/uni-app-vue/dist/service.runtime.esm.js @@ -957,10 +957,10 @@ export default function vueFactory(exports) { if (type === "clear" /* CLEAR */ ) { - // collection being cleared - // trigger all effects for target - depsMap.forEach(add); - } else if (key === 'length' && isArray(target)) { + // collection being cleared + // trigger all effects for target + depsMap.forEach(add); + } else if (key === 'length' && isArray(target)) { depsMap.forEach((dep, key) => { if (key === 'length' || key >= newValue) { add(dep); @@ -1088,12 +1088,12 @@ export default function vueFactory(exports) { if (key === "__v_isReactive" /* IS_REACTIVE */ ) { - return !isReadonly; - } else if (key === "__v_isReadonly" + return !isReadonly; + } else if (key === "__v_isReadonly" /* IS_READONLY */ ) { - return isReadonly; - } else if (key === "__v_raw" + return isReadonly; + } else if (key === "__v_raw" /* RAW */ && receiver === (isReadonly ? shallow ? shallowReadonlyMap : readonlyMap : shallow ? shallowReactiveMap : reactiveMap).get(target)) { return target; @@ -1587,16 +1587,16 @@ export default function vueFactory(exports) { if (key === "__v_isReactive" /* IS_REACTIVE */ ) { - return !isReadonly; - } else if (key === "__v_isReadonly" + return !isReadonly; + } else if (key === "__v_isReadonly" /* IS_READONLY */ ) { - return isReadonly; - } else if (key === "__v_raw" + return isReadonly; + } else if (key === "__v_raw" /* RAW */ ) { - return target; - } + return target; + } return Reflect.get(hasOwn(instrumentations, key) && key in target ? instrumentations : target, key, receiver); }; @@ -1733,8 +1733,8 @@ export default function vueFactory(exports) { if (targetType === 0 /* INVALID */ ) { - return target; - } + return target; + } var proxy = new Proxy(target, targetType === 2 /* COLLECTION */ @@ -3033,12 +3033,12 @@ export default function vueFactory(exports) { if (vnode.shapeFlag & 4 /* STATEFUL_COMPONENT */ ) { - // withProxy is a proxy with a different `has` trap only for - // runtime-compiled render functions using `with` block. - var proxyToUse = withProxy || proxy; - result = normalizeVNode(render.call(proxyToUse, proxyToUse, renderCache, props, setupState, data, ctx)); - fallthroughAttrs = attrs; - } else { + // withProxy is a proxy with a different `has` trap only for + // runtime-compiled render functions using `with` block. + var proxyToUse = withProxy || proxy; + result = normalizeVNode(render.call(proxyToUse, proxyToUse, renderCache, props, setupState, data, ctx)); + fallthroughAttrs = attrs; + } else { // functional var _render = Component; // in dev, mark attrs accessed if optional props (attrs === props) @@ -3073,9 +3073,9 @@ export default function vueFactory(exports) { if (process.env.NODE_ENV !== 'production' && result.patchFlag > 0 && result.patchFlag & 2048 /* DEV_ROOT_FRAGMENT */ ) { - ; - [root, setRoot] = getChildRoot(result); - } + ; + [root, setRoot] = getChildRoot(result); + } if (fallthroughAttrs && inheritAttrs !== false) { var keys = Object.keys(fallthroughAttrs); @@ -3089,16 +3089,16 @@ export default function vueFactory(exports) { || shapeFlag & 6 /* COMPONENT */ ) { - if (propsOptions && keys.some(isModelListener)) { - // If a v-model listener (onUpdate:xxx) has a corresponding declared - // prop, it indicates this component expects to handle v-model and - // it should not fallthrough. - // related: #1543, #1643, #1989 - fallthroughAttrs = filterModelListeners(fallthroughAttrs, propsOptions); - } + if (propsOptions && keys.some(isModelListener)) { + // If a v-model listener (onUpdate:xxx) has a corresponding declared + // prop, it indicates this component expects to handle v-model and + // it should not fallthrough. + // related: #1543, #1643, #1989 + fallthroughAttrs = filterModelListeners(fallthroughAttrs, propsOptions); + } - root = cloneVNode(root, fallthroughAttrs); - } else if (process.env.NODE_ENV !== 'production' && !accessedAttrs && root.type !== Comment$1) { + root = cloneVNode(root, fallthroughAttrs); + } else if (process.env.NODE_ENV !== 'production' && !accessedAttrs && root.type !== Comment$1) { var allAttrs = Object.keys(attrs); var eventAttrs = []; var extraAttrs = []; @@ -3292,33 +3292,33 @@ export default function vueFactory(exports) { if (patchFlag & 1024 /* DYNAMIC_SLOTS */ ) { - // slot content that references values that might have changed, - // e.g. in a v-for - return true; - } + // slot content that references values that might have changed, + // e.g. in a v-for + return true; + } if (patchFlag & 16 /* FULL_PROPS */ ) { - if (!prevProps) { - return !!nextProps; - } // presence of this flag indicates props are always non-null + if (!prevProps) { + return !!nextProps; + } // presence of this flag indicates props are always non-null - return hasPropsChanged(prevProps, nextProps, emits); - } else if (patchFlag & 8 + return hasPropsChanged(prevProps, nextProps, emits); + } else if (patchFlag & 8 /* PROPS */ ) { - var dynamicProps = nextVNode.dynamicProps; + var dynamicProps = nextVNode.dynamicProps; - for (var i = 0; i < dynamicProps.length; i++) { - var key = dynamicProps[i]; + for (var i = 0; i < dynamicProps.length; i++) { + var key = dynamicProps[i]; - if (nextProps[key] !== prevProps[key] && !isEmitListener(emits, key)) { - return true; - } + if (nextProps[key] !== prevProps[key] && !isEmitListener(emits, key)) { + return true; } } + } } else { // this path is only taken by manually written render functions // so presence of any children leads to a forced update @@ -4552,9 +4552,9 @@ export default function vueFactory(exports) { } else if (vnode.shapeFlag & 128 /* SUSPENSE */ ) { - vnode.ssContent.transition = hooks.clone(vnode.ssContent); - vnode.ssFallback.transition = hooks.clone(vnode.ssFallback); - } else { + vnode.ssContent.transition = hooks.clone(vnode.ssContent); + vnode.ssFallback.transition = hooks.clone(vnode.ssFallback); + } else { vnode.transition = hooks; } } @@ -4573,8 +4573,8 @@ export default function vueFactory(exports) { ret = ret.concat(getTransitionRawChildren(child.children, keepComment)); } // comment placeholders should be skipped, e.g. v-if else if (keepComment || child.type !== Comment$1) { - ret.push(child); - } + ret.push(child); + } } // #1126 if a transition children list contains multiple sub fragments, these // fragments will be merged into a flat children array. Since each v-for // fragment may contain different static bindings inside, we need to de-op @@ -4992,8 +4992,8 @@ export default function vueFactory(exports) { if (rawVNode.shapeFlag & 128 /* SUSPENSE */ ) { - rawVNode.ssContent = vnode; - } + rawVNode.ssContent = vnode; + } } // #1513 it's possible for the returned vnode to be cloned due to attr // fallthrough or scopeId, so the vnode here may not be the final vnode // that is mounted. Instead of caching it directly, we store the pending @@ -5123,18 +5123,18 @@ export default function vueFactory(exports) { if (shapeFlag & 256 /* COMPONENT_SHOULD_KEEP_ALIVE */ ) { - shapeFlag -= 256 - /* COMPONENT_SHOULD_KEEP_ALIVE */ - ; - } + shapeFlag -= 256 + /* COMPONENT_SHOULD_KEEP_ALIVE */ + ; + } if (shapeFlag & 512 /* COMPONENT_KEPT_ALIVE */ ) { - shapeFlag -= 512 - /* COMPONENT_KEPT_ALIVE */ - ; - } + shapeFlag -= 512 + /* COMPONENT_KEPT_ALIVE */ + ; + } vnode.shapeFlag = shapeFlag; } @@ -5757,37 +5757,37 @@ export default function vueFactory(exports) { if (patchFlag & 8 /* PROPS */ ) { - // Compiler-generated props & no keys change, just set the updated - // the props. - var propsToUpdate = instance.vnode.dynamicProps; - - for (var i = 0; i < propsToUpdate.length; i++) { - var key = propsToUpdate[i]; // PROPS flag guarantees rawProps to be non-null - - var value = rawProps[key]; - - if (options) { - // attr / props separation was done on init and will be consistent - // in this code path, so just check if attrs have it. - if (hasOwn(attrs, key)) { - if (value !== attrs[key]) { - attrs[key] = value; - hasAttrsChanged = true; - } - } else { - var camelizedKey = camelize(key); - props[camelizedKey] = resolvePropValue(options, rawCurrentProps, camelizedKey, value, instance, false - /* isAbsent */ - ); - } - } else { + // Compiler-generated props & no keys change, just set the updated + // the props. + var propsToUpdate = instance.vnode.dynamicProps; + + for (var i = 0; i < propsToUpdate.length; i++) { + var key = propsToUpdate[i]; // PROPS flag guarantees rawProps to be non-null + + var value = rawProps[key]; + + if (options) { + // attr / props separation was done on init and will be consistent + // in this code path, so just check if attrs have it. + if (hasOwn(attrs, key)) { if (value !== attrs[key]) { attrs[key] = value; hasAttrsChanged = true; } + } else { + var camelizedKey = camelize(key); + props[camelizedKey] = resolvePropValue(options, rawCurrentProps, camelizedKey, value, instance, false + /* isAbsent */ + ); + } + } else { + if (value !== attrs[key]) { + attrs[key] = value; + hasAttrsChanged = true; } } } + } } else { // full props update. if (setFullProps(instance, rawProps, props, attrs)) { @@ -5799,13 +5799,9 @@ export default function vueFactory(exports) { var kebabKey; for (var _key6 in rawCurrentProps) { - if (!rawProps || // for camelCase - !hasOwn(rawProps, _key6) && ( // it's possible the original props was passed in as kebab-case - // and converted to camelCase (#955) - (kebabKey = hyphenate(_key6)) === _key6 || !hasOwn(rawProps, kebabKey))) { + if (!rawProps || !hasOwn(rawProps, _key6) && ((kebabKey = hyphenate(_key6)) === _key6 || !hasOwn(rawProps, kebabKey))) { if (options) { - if (rawPrevProps && ( // for camelCase - rawPrevProps[_key6] !== undefined || // for kebab-case + if (rawPrevProps && (rawPrevProps[_key6] !== undefined || // for kebab-case rawPrevProps[kebabKey] !== undefined)) { props[_key6] = resolvePropValue(options, rawCurrentProps, _key6, undefined, instance, true /* isAbsent */ @@ -6250,18 +6246,18 @@ export default function vueFactory(exports) { if (instance.vnode.shapeFlag & 32 /* SLOTS_CHILDREN */ ) { - var type = children._; + var type = children._; - if (type) { - // users can get the shallow readonly version of the slots object through `this.$slots`, - // we should avoid the proxy object polluting the slots of the internal instance - instance.slots = toRaw(children); // make compiler marker non-enumerable + if (type) { + // users can get the shallow readonly version of the slots object through `this.$slots`, + // we should avoid the proxy object polluting the slots of the internal instance + instance.slots = toRaw(children); // make compiler marker non-enumerable - def(children, '_', type); - } else { - normalizeObjectSlots(children, instance.slots = {}); - } + def(children, '_', type); } else { + normalizeObjectSlots(children, instance.slots = {}); + } + } else { instance.slots = {}; if (children) { @@ -6283,41 +6279,41 @@ export default function vueFactory(exports) { if (vnode.shapeFlag & 32 /* SLOTS_CHILDREN */ ) { - var type = children._; - - if (type) { - // compiled slots. - if (process.env.NODE_ENV !== 'production' && isHmrUpdating) { - // Parent was HMR updated so slot content may have changed. - // force update slots and mark instance for hmr as well - extend(slots, children); - } else if (optimized && type === 1 + var type = children._; + + if (type) { + // compiled slots. + if (process.env.NODE_ENV !== 'production' && isHmrUpdating) { + // Parent was HMR updated so slot content may have changed. + // force update slots and mark instance for hmr as well + extend(slots, children); + } else if (optimized && type === 1 + /* STABLE */ + ) { + // compiled AND stable. + // no need to update, and skip stale slots removal. + needDeletionCheck = false; + } else { + // compiled but dynamic (v-if/v-for on slots) - update slots, but skip + // normalization. + extend(slots, children); // #2893 + // when rendering the optimized slots by manually written render function, + // we need to delete the `slots._` flag if necessary to make subsequent updates reliable, + // i.e. let the `renderSlot` create the bailed Fragment + + if (!optimized && type === 1 /* STABLE */ ) { - // compiled AND stable. - // no need to update, and skip stale slots removal. - needDeletionCheck = false; - } else { - // compiled but dynamic (v-if/v-for on slots) - update slots, but skip - // normalization. - extend(slots, children); // #2893 - // when rendering the optimized slots by manually written render function, - // we need to delete the `slots._` flag if necessary to make subsequent updates reliable, - // i.e. let the `renderSlot` create the bailed Fragment - - if (!optimized && type === 1 - /* STABLE */ - ) { - delete slots._; - } + delete slots._; } - } else { - needDeletionCheck = !children.$stable; - normalizeObjectSlots(children, slots); } + } else { + needDeletionCheck = !children.$stable; + normalizeObjectSlots(children, slots); + } - deletionComparisonTarget = children; - } else if (children) { + deletionComparisonTarget = children; + } else if (children) { // non slot object children (direct value) passed to a component normalizeVNodeSlots(instance, children); deletionComparisonTarget = { @@ -6662,8 +6658,8 @@ export default function vueFactory(exports) { if (domType !== 3 /* TEXT */ ) { - nextNode = onMismatch(); - } else { + nextNode = onMismatch(); + } else { if (node.data !== vnode.children) { hasMismatch = true; process.env.NODE_ENV !== 'production' && warn("Hydration text mismatch:" + "\n- Client: ".concat(JSON.stringify(node.data)) + "\n- Server: ".concat(JSON.stringify(vnode.children))); @@ -6690,8 +6686,8 @@ export default function vueFactory(exports) { if (domType !== 1 /* ELEMENT */ ) { - nextNode = onMismatch(); - } else { + nextNode = onMismatch(); + } else { // determine anchor, adopt content nextNode = node; // if the static vnode has its content stripped during build, // adopt it from the server-rendered HTML. @@ -6726,58 +6722,58 @@ export default function vueFactory(exports) { if (shapeFlag & 1 /* ELEMENT */ ) { - if (domType !== 1 - /* ELEMENT */ - || vnode.type.toLowerCase() !== node.tagName.toLowerCase()) { - nextNode = onMismatch(); - } else { - nextNode = hydrateElement(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized); - } - } else if (shapeFlag & 6 + if (domType !== 1 + /* ELEMENT */ + || vnode.type.toLowerCase() !== node.tagName.toLowerCase()) { + nextNode = onMismatch(); + } else { + nextNode = hydrateElement(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized); + } + } else if (shapeFlag & 6 /* COMPONENT */ ) { - // when setting up the render effect, if the initial vnode already - // has .el set, the component will perform hydration instead of mount - // on its sub-tree. - vnode.slotScopeIds = slotScopeIds; - var container = parentNode(node); - mountComponent(vnode, container, null, parentComponent, parentSuspense, isSVGContainer(container), optimized); // component may be async, so in the case of fragments we cannot rely - // on component's rendered output to determine the end of the fragment - // instead, we do a lookahead to find the end anchor node. - - nextNode = isFragmentStart ? locateClosingAsyncAnchor(node) : nextSibling(node); // #3787 - // if component is async, it may get moved / unmounted before its - // inner component is loaded, so we need to give it a placeholder - // vnode that matches its adopted DOM. - - if (isAsyncWrapper(vnode)) { - var subTree; - - if (isFragmentStart) { - subTree = createVNode(Fragment); - subTree.anchor = nextNode ? nextNode.previousSibling : container.lastChild; - } else { - subTree = node.nodeType === 3 ? createTextVNode('') : createVNode('div'); - } - - subTree.el = node; - vnode.component.subTree = subTree; + // when setting up the render effect, if the initial vnode already + // has .el set, the component will perform hydration instead of mount + // on its sub-tree. + vnode.slotScopeIds = slotScopeIds; + var container = parentNode(node); + mountComponent(vnode, container, null, parentComponent, parentSuspense, isSVGContainer(container), optimized); // component may be async, so in the case of fragments we cannot rely + // on component's rendered output to determine the end of the fragment + // instead, we do a lookahead to find the end anchor node. + + nextNode = isFragmentStart ? locateClosingAsyncAnchor(node) : nextSibling(node); // #3787 + // if component is async, it may get moved / unmounted before its + // inner component is loaded, so we need to give it a placeholder + // vnode that matches its adopted DOM. + + if (isAsyncWrapper(vnode)) { + var subTree; + + if (isFragmentStart) { + subTree = createVNode(Fragment); + subTree.anchor = nextNode ? nextNode.previousSibling : container.lastChild; + } else { + subTree = node.nodeType === 3 ? createTextVNode('') : createVNode('div'); } - } else if (shapeFlag & 64 + + subTree.el = node; + vnode.component.subTree = subTree; + } + } else if (shapeFlag & 64 /* TELEPORT */ ) { - if (domType !== 8 - /* COMMENT */ - ) { - nextNode = onMismatch(); - } else { - nextNode = vnode.type.hydrate(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized, rendererInternals, hydrateChildren); - } - } else if (shapeFlag & 128 + if (domType !== 8 + /* COMMENT */ + ) { + nextNode = onMismatch(); + } else { + nextNode = vnode.type.hydrate(node, vnode, parentComponent, parentSuspense, slotScopeIds, optimized, rendererInternals, hydrateChildren); + } + } else if (shapeFlag & 128 /* SUSPENSE */ ) { - nextNode = vnode.type.hydrate(node, vnode, parentComponent, parentSuspense, isSVGContainer(parentNode(node)), slotScopeIds, optimized, rendererInternals, hydrateNode); - } else if (process.env.NODE_ENV !== 'production') { + nextNode = vnode.type.hydrate(node, vnode, parentComponent, parentSuspense, isSVGContainer(parentNode(node)), slotScopeIds, optimized, rendererInternals, hydrateNode); + } else if (process.env.NODE_ENV !== 'production') { warn('Invalid HostVNode type:', type, "(".concat(typeof type, ")")); } @@ -6806,78 +6802,78 @@ export default function vueFactory(exports) { if (forcePatchValue || patchFlag !== -1 /* HOISTED */ ) { - if (dirs) { - invokeDirectiveHook(vnode, null, parentComponent, 'created'); - } // props + if (dirs) { + invokeDirectiveHook(vnode, null, parentComponent, 'created'); + } // props - if (props) { - if (forcePatchValue || !optimized || patchFlag & 16 - /* FULL_PROPS */ - || patchFlag & 32 - /* HYDRATE_EVENTS */ - ) { - for (var key in props) { - if (forcePatchValue && key.endsWith('value') || isOn(key) && !isReservedProp(key)) { - patchProp(el, key, null, props[key]); - } + if (props) { + if (forcePatchValue || !optimized || patchFlag & 16 + /* FULL_PROPS */ + || patchFlag & 32 + /* HYDRATE_EVENTS */ + ) { + for (var key in props) { + if (forcePatchValue && key.endsWith('value') || isOn(key) && !isReservedProp(key)) { + patchProp(el, key, null, props[key]); } - } else if (props.onClick) { - // Fast path for click listeners (which is most often) to avoid - // iterating through props. - patchProp(el, 'onClick', null, props.onClick); } - } // vnode / directive hooks + } else if (props.onClick) { + // Fast path for click listeners (which is most often) to avoid + // iterating through props. + patchProp(el, 'onClick', null, props.onClick); + } + } // vnode / directive hooks - var vnodeHooks; + var vnodeHooks; - if (vnodeHooks = props && props.onVnodeBeforeMount) { - invokeVNodeHook(vnodeHooks, parentComponent, vnode); - } + if (vnodeHooks = props && props.onVnodeBeforeMount) { + invokeVNodeHook(vnodeHooks, parentComponent, vnode); + } - if (dirs) { - invokeDirectiveHook(vnode, null, parentComponent, 'beforeMount'); - } + if (dirs) { + invokeDirectiveHook(vnode, null, parentComponent, 'beforeMount'); + } - if ((vnodeHooks = props && props.onVnodeMounted) || dirs) { - queueEffectWithSuspense(() => { - vnodeHooks && invokeVNodeHook(vnodeHooks, parentComponent, vnode); - dirs && invokeDirectiveHook(vnode, null, parentComponent, 'mounted'); - }, parentSuspense); - } // children + if ((vnodeHooks = props && props.onVnodeMounted) || dirs) { + queueEffectWithSuspense(() => { + vnodeHooks && invokeVNodeHook(vnodeHooks, parentComponent, vnode); + dirs && invokeDirectiveHook(vnode, null, parentComponent, 'mounted'); + }, parentSuspense); + } // children - if (shapeFlag & 16 - /* ARRAY_CHILDREN */ - && // skip if element has innerHTML / textContent - !(props && (props.innerHTML || props.textContent))) { - var next = hydrateChildren(el.firstChild, vnode, el, parentComponent, parentSuspense, slotScopeIds, optimized); - var _hasWarned = false; + if (shapeFlag & 16 + /* ARRAY_CHILDREN */ + && // skip if element has innerHTML / textContent + !(props && (props.innerHTML || props.textContent))) { + var next = hydrateChildren(el.firstChild, vnode, el, parentComponent, parentSuspense, slotScopeIds, optimized); + var _hasWarned = false; - while (next) { - hasMismatch = true; + while (next) { + hasMismatch = true; - if (process.env.NODE_ENV !== 'production' && !_hasWarned) { - warn("Hydration children mismatch in <".concat(vnode.type, ">: ") + "server rendered element contains more child nodes than client vdom."); - _hasWarned = true; - } // The SSRed DOM contains more nodes than it should. Remove them. + if (process.env.NODE_ENV !== 'production' && !_hasWarned) { + warn("Hydration children mismatch in <".concat(vnode.type, ">: ") + "server rendered element contains more child nodes than client vdom."); + _hasWarned = true; + } // The SSRed DOM contains more nodes than it should. Remove them. - var cur = next; - next = next.nextSibling; - remove(cur); - } - } else if (shapeFlag & 8 - /* TEXT_CHILDREN */ - ) { - if (el.textContent !== vnode.children) { - hasMismatch = true; - process.env.NODE_ENV !== 'production' && warn("Hydration text content mismatch in <".concat(vnode.type, ">:\n") + "- Client: ".concat(el.textContent, "\n") + "- Server: ".concat(vnode.children)); - el.textContent = vnode.children; - } - } + var cur = next; + next = next.nextSibling; + remove(cur); + } + } else if (shapeFlag & 8 + /* TEXT_CHILDREN */ + ) { + if (el.textContent !== vnode.children) { + hasMismatch = true; + process.env.NODE_ENV !== 'production' && warn("Hydration text content mismatch in <".concat(vnode.type, ">:\n") + "- Client: ".concat(el.textContent, "\n") + "- Server: ".concat(vnode.children)); + el.textContent = vnode.children; + } } + } return el.nextSibling; }; @@ -7221,9 +7217,9 @@ export default function vueFactory(exports) { if (n2.patchFlag === -2 /* BAIL */ ) { - optimized = false; - n2.dynamicChildren = null; - } + optimized = false; + n2.dynamicChildren = null; + } var { type, @@ -7257,20 +7253,20 @@ export default function vueFactory(exports) { if (shapeFlag & 1 /* ELEMENT */ ) { - processElement(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); - } else if (shapeFlag & 6 + processElement(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); + } else if (shapeFlag & 6 /* COMPONENT */ ) { - processComponent(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); - } else if (shapeFlag & 64 + processComponent(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); + } else if (shapeFlag & 64 /* TELEPORT */ ) { - type.process(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, internals); - } else if (shapeFlag & 128 + type.process(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, internals); + } else if (shapeFlag & 128 /* SUSPENSE */ ) { - type.process(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, internals); - } else if (process.env.NODE_ENV !== 'production') { + type.process(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, internals); + } else if (process.env.NODE_ENV !== 'production') { warn('Invalid VNode type:', type, "(".concat(typeof type, ")")); } @@ -7393,12 +7389,12 @@ export default function vueFactory(exports) { if (!(process.env.NODE_ENV !== 'production') && vnode.el && hostCloneNode !== undefined && patchFlag === -1 /* HOISTED */ ) { - // If a vnode has non-null el, it means it's being reused. - // Only static vnodes can be reused, so its mounted DOM nodes should be - // exactly the same, and we can simply do a clone here. - // only do this in production since cloned trees cannot be HMR updated. - el = vnode.el = hostCloneNode(vnode.el); - } else { + // If a vnode has non-null el, it means it's being reused. + // Only static vnodes can be reused, so its mounted DOM nodes should be + // exactly the same, and we can simply do a clone here. + // only do this in production since cloned trees cannot be HMR updated. + el = vnode.el = hostCloneNode(vnode.el); + } else { el = vnode.el = hostCreateElement( // fixed by xxxxxx vnode.type, container); // mount children first, since some props may rely on child content // being already rendered, e.g. `