提交 71672262 编写于 作者: fxy060608's avatar fxy060608

chore: bump vite from 4.1.3 to 4.1.4

上级 5c224f41
......@@ -87,7 +87,7 @@
"terser": "^5.4.0",
"ts-jest": "^29.0.3",
"typescript": "^4.9.5",
"vite": "4.1.3",
"vite": "4.1.4",
"vue": "3.2.47",
"vue-router": "^4.1.6",
"yorkie": "^2.0.0"
......
......@@ -5453,13 +5453,15 @@ function baseCreateRenderer(options, createHydrationFns) {
setupRenderEffect(instance, initialVNode, container, anchor, parentSuspense, isSVG, optimized);
// fixed by xxxxxx 对根节点设置ownerid
if (instance.$wxsModules) {
var el = resolveOwnerEl(instance);
if (el) {
el.setAttribute(ATTR_V_OWNER_ID, instance.uid);
var {
$renderjsModules
} = instance.type;
$renderjsModules && el.setAttribute(ATTR_V_RENDERJS, $renderjsModules);
var els = resolveOwnerEl(instance, true);
if (els.length) {
els.forEach(el => {
el.setAttribute(ATTR_V_OWNER_ID, instance.uid);
var {
$renderjsModules
} = instance.type;
$renderjsModules && el.setAttribute(ATTR_V_RENDERJS, $renderjsModules);
});
}
}
{
......
......@@ -4311,13 +4311,15 @@ function baseCreateRenderer(options, createHydrationFns) {
setupRenderEffect(instance, initialVNode, container, anchor, parentSuspense, isSVG, optimized);
// fixed by xxxxxx 对根节点设置ownerid
if (instance.$wxsModules) {
var el = resolveOwnerEl(instance);
if (el) {
el.setAttribute(ATTR_V_OWNER_ID, instance.uid);
var {
$renderjsModules
} = instance.type;
$renderjsModules && el.setAttribute(ATTR_V_RENDERJS, $renderjsModules);
var els = resolveOwnerEl(instance, true);
if (els.length) {
els.forEach(el => {
el.setAttribute(ATTR_V_OWNER_ID, instance.uid);
var {
$renderjsModules
} = instance.type;
$renderjsModules && el.setAttribute(ATTR_V_RENDERJS, $renderjsModules);
});
}
}
};
......
......@@ -293,7 +293,7 @@ function resolveOwnerEl(instance, multi = false) {
const elemVNodes = subTree.children.filter((vnode) => vnode.el && isElement(vnode.el));
if (elemVNodes.length > 0) {
if (multi) {
return elemVNodes.map(node => node.el);
return elemVNodes.map((node) => node.el);
}
return elemVNodes[0].el;
}
......
......@@ -619,6 +619,8 @@ export declare function resolveComponentInstance(instance?: ComponentInternalIns
export declare function resolveOwnerEl(instance: ComponentInternalInstance, multi: true): RendererNode[];
export declare function resolveOwnerEl(instance: ComponentInternalInstance): RendererNode | null;
export declare function resolveOwnerVm(vm: ComponentInternalInstance): ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | undefined;
export declare const RESPONSIVE_MIN_WIDTH = 768;
......
......@@ -291,7 +291,7 @@ function resolveOwnerEl(instance, multi = false) {
const elemVNodes = subTree.children.filter((vnode) => vnode.el && isElement(vnode.el));
if (elemVNodes.length > 0) {
if (multi) {
return elemVNodes.map(node => node.el);
return elemVNodes.map((node) => node.el);
}
return elemVNodes[0].el;
}
......
此差异已折叠。
......@@ -25,7 +25,7 @@ const pkgs = {
next: '9.1.9',
},
vite: {
latest: '4.1.3',
latest: '4.1.4',
},
'@vitejs/plugin-vue': {
latest: '4.0.0',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册