vue 3.2.23 → 3.2.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/vue.esm-browser.js +9 -29
- package/dist/vue.esm-browser.prod.js +1 -1
- package/dist/vue.global.js +9 -29
- package/dist/vue.global.prod.js +1 -1
- package/dist/vue.runtime.esm-browser.js +3 -3
- package/dist/vue.runtime.esm-browser.prod.js +1 -1
- package/dist/vue.runtime.global.js +3 -3
- package/dist/vue.runtime.global.prod.js +1 -1
- package/package.json +7 -7
package/dist/vue.esm-browser.js
CHANGED
|
@@ -4070,7 +4070,7 @@ function setFullProps(instance, rawProps, props, attrs) {
|
|
|
4070
4070
|
}
|
|
4071
4071
|
}
|
|
4072
4072
|
else if (!isEmitListener(instance.emitsOptions, key)) {
|
|
4073
|
-
if (value !== attrs[key]) {
|
|
4073
|
+
if (!(key in attrs) || value !== attrs[key]) {
|
|
4074
4074
|
attrs[key] = value;
|
|
4075
4075
|
hasAttrsChanged = true;
|
|
4076
4076
|
}
|
|
@@ -9045,7 +9045,7 @@ function isMemoSame(cached, memo) {
|
|
|
9045
9045
|
}
|
|
9046
9046
|
|
|
9047
9047
|
// Core API ------------------------------------------------------------------
|
|
9048
|
-
const version = "3.2.
|
|
9048
|
+
const version = "3.2.24";
|
|
9049
9049
|
/**
|
|
9050
9050
|
* SSR utils for \@vue/server-renderer. Only exposed in cjs builds.
|
|
9051
9051
|
* @internal
|
|
@@ -9676,7 +9676,7 @@ class VueElement extends BaseClass {
|
|
|
9676
9676
|
// HMR
|
|
9677
9677
|
{
|
|
9678
9678
|
instance.ceReload = newStyles => {
|
|
9679
|
-
//
|
|
9679
|
+
// always reset styles
|
|
9680
9680
|
if (this._styles) {
|
|
9681
9681
|
this._styles.forEach(s => this.shadowRoot.removeChild(s));
|
|
9682
9682
|
this._styles.length = 0;
|
|
@@ -11348,7 +11348,6 @@ function getUnnormalizedProps(props, callPath = []) {
|
|
|
11348
11348
|
}
|
|
11349
11349
|
function injectProp(node, prop, context) {
|
|
11350
11350
|
let propsWithInjection;
|
|
11351
|
-
const originalProps = node.type === 13 /* VNODE_CALL */ ? node.props : node.arguments[2];
|
|
11352
11351
|
/**
|
|
11353
11352
|
* 1. mergeProps(...)
|
|
11354
11353
|
* 2. toHandlers(...)
|
|
@@ -11357,7 +11356,7 @@ function injectProp(node, prop, context) {
|
|
|
11357
11356
|
*
|
|
11358
11357
|
* we need to get the real props before normalization
|
|
11359
11358
|
*/
|
|
11360
|
-
let props =
|
|
11359
|
+
let props = node.type === 13 /* VNODE_CALL */ ? node.props : node.arguments[2];
|
|
11361
11360
|
let callPath = [];
|
|
11362
11361
|
let parentCall;
|
|
11363
11362
|
if (props &&
|
|
@@ -12322,15 +12321,6 @@ function isSingleElementRoot(root, child) {
|
|
|
12322
12321
|
!isSlotOutlet(child));
|
|
12323
12322
|
}
|
|
12324
12323
|
function walk(node, context, doNotHoistNode = false) {
|
|
12325
|
-
// Some transforms, e.g. transformAssetUrls from @vue/compiler-sfc, replaces
|
|
12326
|
-
// static bindings with expressions. These expressions are guaranteed to be
|
|
12327
|
-
// constant so they are still eligible for hoisting, but they are only
|
|
12328
|
-
// available at runtime and therefore cannot be evaluated ahead of time.
|
|
12329
|
-
// This is only a concern for pre-stringification (via transformHoist by
|
|
12330
|
-
// @vue/compiler-dom), but doing it here allows us to perform only one full
|
|
12331
|
-
// walk of the AST and allow `stringifyStatic` to stop walking as soon as its
|
|
12332
|
-
// stringification threshold is met.
|
|
12333
|
-
let canStringify = true;
|
|
12334
12324
|
const { children } = node;
|
|
12335
12325
|
const originalCount = children.length;
|
|
12336
12326
|
let hoistedCount = 0;
|
|
@@ -12343,9 +12333,6 @@ function walk(node, context, doNotHoistNode = false) {
|
|
|
12343
12333
|
? 0 /* NOT_CONSTANT */
|
|
12344
12334
|
: getConstantType(child, context);
|
|
12345
12335
|
if (constantType > 0 /* NOT_CONSTANT */) {
|
|
12346
|
-
if (constantType < 3 /* CAN_STRINGIFY */) {
|
|
12347
|
-
canStringify = false;
|
|
12348
|
-
}
|
|
12349
12336
|
if (constantType >= 2 /* CAN_HOIST */) {
|
|
12350
12337
|
child.codegenNode.patchFlag =
|
|
12351
12338
|
-1 /* HOISTED */ + (` /* HOISTED */` );
|
|
@@ -12376,17 +12363,10 @@ function walk(node, context, doNotHoistNode = false) {
|
|
|
12376
12363
|
}
|
|
12377
12364
|
}
|
|
12378
12365
|
}
|
|
12379
|
-
else if (child.type === 12 /* TEXT_CALL */
|
|
12380
|
-
|
|
12381
|
-
|
|
12382
|
-
|
|
12383
|
-
canStringify = false;
|
|
12384
|
-
}
|
|
12385
|
-
if (contentType >= 2 /* CAN_HOIST */) {
|
|
12386
|
-
child.codegenNode = context.hoist(child.codegenNode);
|
|
12387
|
-
hoistedCount++;
|
|
12388
|
-
}
|
|
12389
|
-
}
|
|
12366
|
+
else if (child.type === 12 /* TEXT_CALL */ &&
|
|
12367
|
+
getConstantType(child.content, context) >= 2 /* CAN_HOIST */) {
|
|
12368
|
+
child.codegenNode = context.hoist(child.codegenNode);
|
|
12369
|
+
hoistedCount++;
|
|
12390
12370
|
}
|
|
12391
12371
|
// walk further
|
|
12392
12372
|
if (child.type === 1 /* ELEMENT */) {
|
|
@@ -12410,7 +12390,7 @@ function walk(node, context, doNotHoistNode = false) {
|
|
|
12410
12390
|
}
|
|
12411
12391
|
}
|
|
12412
12392
|
}
|
|
12413
|
-
if (
|
|
12393
|
+
if (hoistedCount && context.transformHoist) {
|
|
12414
12394
|
context.transformHoist(children, context, node);
|
|
12415
12395
|
}
|
|
12416
12396
|
// all children were hoisted - the entire children array is hoistable.
|