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

build(deps): bump vue from 3.2.30 to 3.2.31

上级 94d8f7e9
......@@ -5367,7 +5367,8 @@ function createHydrationFunctions(rendererInternals) {
// e.g. <option :value="obj">, <input type="checkbox" :true-value="1">
const forcePatchValue = (type === 'input' && dirs) || type === 'option';
// skip props & children if this is hoisted static nodes
if (forcePatchValue || patchFlag !== -1 /* HOISTED */) {
// #5405 in dev, always hydrate children for HMR
{
if (dirs) {
invokeDirectiveHook(vnode, null, parentComponent, 'created');
}
......@@ -7912,9 +7913,11 @@ const PublicInstanceProxyHandlers = {
const { data, setupState, ctx } = instance;
if (setupState !== shared.EMPTY_OBJ && shared.hasOwn(setupState, key)) {
setupState[key] = value;
return true;
}
else if (data !== shared.EMPTY_OBJ && shared.hasOwn(data, key)) {
data[key] = value;
return true;
}
else if (shared.hasOwn(instance.props, key)) {
warn$1(`Attempting to mutate prop "${key}". Props are readonly.`, instance);
......@@ -7948,6 +7951,15 @@ const PublicInstanceProxyHandlers = {
shared.hasOwn(ctx, key) ||
shared.hasOwn(publicPropertiesMap, key) ||
shared.hasOwn(appContext.config.globalProperties, key));
},
defineProperty(target, key, descriptor) {
if (descriptor.get != null) {
this.set(target, key, descriptor.get(), null);
}
else if (descriptor.value != null) {
this.set(target, key, descriptor.value, null);
}
return Reflect.defineProperty(target, key, descriptor);
}
};
{
......@@ -8829,7 +8841,7 @@ function isMemoSame(cached, memo) {
}
// Core API ------------------------------------------------------------------
const version = "3.2.30";
const version = "3.2.31";
const _ssrUtils = {
createComponentInstance,
setupComponent,
......
......@@ -5405,7 +5405,8 @@ function createHydrationFunctions(rendererInternals) {
// e.g. <option :value="obj">, <input type="checkbox" :true-value="1">
const forcePatchValue = (type === 'input' && dirs) || type === 'option';
// skip props & children if this is hoisted static nodes
if (forcePatchValue || patchFlag !== -1 /* HOISTED */) {
// #5405 in dev, always hydrate children for HMR
if ((process.env.NODE_ENV !== 'production') || forcePatchValue || patchFlag !== -1 /* HOISTED */) {
if (dirs) {
invokeDirectiveHook(vnode, null, parentComponent, 'created');
}
......@@ -8001,9 +8002,11 @@ const PublicInstanceProxyHandlers = {
const { data, setupState, ctx } = instance;
if (setupState !== EMPTY_OBJ && hasOwn(setupState, key)) {
setupState[key] = value;
return true;
}
else if (data !== EMPTY_OBJ && hasOwn(data, key)) {
data[key] = value;
return true;
}
else if (hasOwn(instance.props, key)) {
(process.env.NODE_ENV !== 'production') &&
......@@ -8039,6 +8042,15 @@ const PublicInstanceProxyHandlers = {
hasOwn(ctx, key) ||
hasOwn(publicPropertiesMap, key) ||
hasOwn(appContext.config.globalProperties, key));
},
defineProperty(target, key, descriptor) {
if (descriptor.get != null) {
this.set(target, key, descriptor.get(), null);
}
else if (descriptor.value != null) {
this.set(target, key, descriptor.value, null);
}
return Reflect.defineProperty(target, key, descriptor);
}
};
if ((process.env.NODE_ENV !== 'production') && !false) {
......@@ -8940,7 +8952,7 @@ function isMemoSame(cached, memo) {
}
// Core API ------------------------------------------------------------------
const version = "3.2.30";
const version = "3.2.31";
const _ssrUtils = {
createComponentInstance,
setupComponent,
......
......@@ -3808,9 +3808,11 @@ const PublicInstanceProxyHandlers = {
const { data, setupState, ctx } = instance;
if (setupState !== EMPTY_OBJ && hasOwn(setupState, key)) {
setupState[key] = value;
return true;
}
else if (data !== EMPTY_OBJ && hasOwn(data, key)) {
data[key] = value;
return true;
}
else if (hasOwn(instance.props, key)) {
(process.env.NODE_ENV !== 'production') &&
......@@ -3846,6 +3848,15 @@ const PublicInstanceProxyHandlers = {
hasOwn(ctx, key) ||
hasOwn(publicPropertiesMap, key) ||
hasOwn(appContext.config.globalProperties, key));
},
defineProperty(target, key, descriptor) {
if (descriptor.get != null) {
this.set(target, key, descriptor.get(), null);
}
else if (descriptor.value != null) {
this.set(target, key, descriptor.value, null);
}
return Reflect.defineProperty(target, key, descriptor);
}
};
if ((process.env.NODE_ENV !== 'production') && !false) {
......@@ -4415,7 +4426,7 @@ const useSSRContext = () => {
};
// Core API ------------------------------------------------------------------
const version = "3.2.30";
const version = "3.2.31";
/**
* @internal only exposed in compat builds
*/
......
......@@ -3808,9 +3808,11 @@ const PublicInstanceProxyHandlers = {
const { data, setupState, ctx } = instance;
if (setupState !== EMPTY_OBJ && hasOwn(setupState, key)) {
setupState[key] = value;
return true;
}
else if (data !== EMPTY_OBJ && hasOwn(data, key)) {
data[key] = value;
return true;
}
else if (hasOwn(instance.props, key)) {
(process.env.NODE_ENV !== 'production') &&
......@@ -3846,6 +3848,15 @@ const PublicInstanceProxyHandlers = {
hasOwn(ctx, key) ||
hasOwn(publicPropertiesMap, key) ||
hasOwn(appContext.config.globalProperties, key));
},
defineProperty(target, key, descriptor) {
if (descriptor.get != null) {
this.set(target, key, descriptor.get(), null);
}
else if (descriptor.value != null) {
this.set(target, key, descriptor.value, null);
}
return Reflect.defineProperty(target, key, descriptor);
}
};
if ((process.env.NODE_ENV !== 'production') && !false) {
......@@ -4415,7 +4426,7 @@ const useSSRContext = () => {
};
// Core API ------------------------------------------------------------------
const version = "3.2.30";
const version = "3.2.31";
/**
* @internal only exposed in compat builds
*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册