@vue/compiler-core 3.3.9 → 3.3.11
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.
|
@@ -4296,6 +4296,10 @@ function resolveSetupReference(name, context) {
|
|
|
4296
4296
|
`${context.helperString(UNREF)}(${fromMaybeRef})`
|
|
4297
4297
|
) : `$setup[${JSON.stringify(fromMaybeRef)}]`;
|
|
4298
4298
|
}
|
|
4299
|
+
const fromProps = checkType("props");
|
|
4300
|
+
if (fromProps) {
|
|
4301
|
+
return `${context.helperString(UNREF)}(${context.inline ? "__props" : "$props"}[${JSON.stringify(fromProps)}])`;
|
|
4302
|
+
}
|
|
4299
4303
|
}
|
|
4300
4304
|
function buildProps(node, context, props = node.props, isComponent, isDynamicComponent, ssr = false) {
|
|
4301
4305
|
const { tag, loc: elementLoc, children } = node;
|
|
@@ -4336,6 +4340,9 @@ function buildProps(node, context, props = node.props, isComponent, isDynamicCom
|
|
|
4336
4340
|
if (isEventHandler && shared.isReservedProp(name)) {
|
|
4337
4341
|
hasVnodeHook = true;
|
|
4338
4342
|
}
|
|
4343
|
+
if (isEventHandler && value.type === 14) {
|
|
4344
|
+
value = value.arguments[0];
|
|
4345
|
+
}
|
|
4339
4346
|
if (value.type === 20 || (value.type === 4 || value.type === 8) && getConstantType(value, context) > 0) {
|
|
4340
4347
|
return;
|
|
4341
4348
|
}
|
|
@@ -4196,6 +4196,10 @@ function resolveSetupReference(name, context) {
|
|
|
4196
4196
|
`${context.helperString(UNREF)}(${fromMaybeRef})`
|
|
4197
4197
|
) : `$setup[${JSON.stringify(fromMaybeRef)}]`;
|
|
4198
4198
|
}
|
|
4199
|
+
const fromProps = checkType("props");
|
|
4200
|
+
if (fromProps) {
|
|
4201
|
+
return `${context.helperString(UNREF)}(${context.inline ? "__props" : "$props"}[${JSON.stringify(fromProps)}])`;
|
|
4202
|
+
}
|
|
4199
4203
|
}
|
|
4200
4204
|
function buildProps(node, context, props = node.props, isComponent, isDynamicComponent, ssr = false) {
|
|
4201
4205
|
const { tag, loc: elementLoc, children } = node;
|
|
@@ -4236,6 +4240,9 @@ function buildProps(node, context, props = node.props, isComponent, isDynamicCom
|
|
|
4236
4240
|
if (isEventHandler && shared.isReservedProp(name)) {
|
|
4237
4241
|
hasVnodeHook = true;
|
|
4238
4242
|
}
|
|
4243
|
+
if (isEventHandler && value.type === 14) {
|
|
4244
|
+
value = value.arguments[0];
|
|
4245
|
+
}
|
|
4239
4246
|
if (value.type === 20 || (value.type === 4 || value.type === 8) && getConstantType(value, context) > 0) {
|
|
4240
4247
|
return;
|
|
4241
4248
|
}
|
|
@@ -3739,6 +3739,9 @@ function buildProps(node, context, props = node.props, isComponent, isDynamicCom
|
|
|
3739
3739
|
if (isEventHandler && isReservedProp(name)) {
|
|
3740
3740
|
hasVnodeHook = true;
|
|
3741
3741
|
}
|
|
3742
|
+
if (isEventHandler && value.type === 14) {
|
|
3743
|
+
value = value.arguments[0];
|
|
3744
|
+
}
|
|
3742
3745
|
if (value.type === 20 || (value.type === 4 || value.type === 8) && getConstantType(value, context) > 0) {
|
|
3743
3746
|
return;
|
|
3744
3747
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/compiler-core",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.11",
|
|
4
4
|
"description": "@vue/compiler-core",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "dist/compiler-core.esm-bundler.js",
|
|
@@ -32,12 +32,12 @@
|
|
|
32
32
|
},
|
|
33
33
|
"homepage": "https://github.com/vuejs/core/tree/main/packages/compiler-core#readme",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@babel/parser": "^7.23.
|
|
35
|
+
"@babel/parser": "^7.23.5",
|
|
36
36
|
"estree-walker": "^2.0.2",
|
|
37
37
|
"source-map-js": "^1.0.2",
|
|
38
|
-
"@vue/shared": "3.3.
|
|
38
|
+
"@vue/shared": "3.3.11"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@babel/types": "^7.23.
|
|
41
|
+
"@babel/types": "^7.23.5"
|
|
42
42
|
}
|
|
43
43
|
}
|