@vue/compiler-core 3.3.0-alpha.11 → 3.3.0-alpha.12
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.
|
@@ -3150,12 +3150,10 @@ function processExpression(node, context, asParams = false, asRawStatements = fa
|
|
|
3150
3150
|
return shared.genPropsAccessExp(bindingMetadata.__propsAliases[raw]);
|
|
3151
3151
|
}
|
|
3152
3152
|
} else {
|
|
3153
|
-
if (type && type.startsWith("setup")) {
|
|
3153
|
+
if (type && type.startsWith("setup") || type === "literal-const") {
|
|
3154
3154
|
return `$setup.${raw}`;
|
|
3155
3155
|
} else if (type === "props-aliased") {
|
|
3156
3156
|
return `$props['${bindingMetadata.__propsAliases[raw]}']`;
|
|
3157
|
-
} else if (type === "literal-const") {
|
|
3158
|
-
return raw;
|
|
3159
3157
|
} else if (type) {
|
|
3160
3158
|
return `$${type}.${raw}`;
|
|
3161
3159
|
}
|
|
@@ -3079,12 +3079,10 @@ function processExpression(node, context, asParams = false, asRawStatements = fa
|
|
|
3079
3079
|
return shared.genPropsAccessExp(bindingMetadata.__propsAliases[raw]);
|
|
3080
3080
|
}
|
|
3081
3081
|
} else {
|
|
3082
|
-
if (type && type.startsWith("setup")) {
|
|
3082
|
+
if (type && type.startsWith("setup") || type === "literal-const") {
|
|
3083
3083
|
return `$setup.${raw}`;
|
|
3084
3084
|
} else if (type === "props-aliased") {
|
|
3085
3085
|
return `$props['${bindingMetadata.__propsAliases[raw]}']`;
|
|
3086
|
-
} else if (type === "literal-const") {
|
|
3087
|
-
return raw;
|
|
3088
3086
|
} else if (type) {
|
|
3089
3087
|
return `$${type}.${raw}`;
|
|
3090
3088
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/compiler-core",
|
|
3
|
-
"version": "3.3.0-alpha.
|
|
3
|
+
"version": "3.3.0-alpha.12",
|
|
4
4
|
"description": "@vue/compiler-core",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "dist/compiler-core.esm-bundler.js",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"homepage": "https://github.com/vuejs/core/tree/main/packages/compiler-core#readme",
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@babel/parser": "^7.21.3",
|
|
36
|
-
"@vue/shared": "3.3.0-alpha.
|
|
36
|
+
"@vue/shared": "3.3.0-alpha.12",
|
|
37
37
|
"estree-walker": "^2.0.2",
|
|
38
38
|
"source-map-js": "^1.0.2"
|
|
39
39
|
},
|