File tree 1 file changed +2
-1
lines changed
packages/language-core/lib/codegen/template
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -144,6 +144,7 @@ export function* generateElementProps(
144
144
options ,
145
145
ctx ,
146
146
prop ,
147
+ prop . exp ,
147
148
ctx . codeFeatures . all ,
148
149
prop . arg ?. loc . start . offset === prop . exp ?. loc . start . offset ,
149
150
enableCodeFeatures
@@ -267,11 +268,11 @@ function* genereatePropExp(
267
268
options : TemplateCodegenOptions ,
268
269
ctx : TemplateCodegenContext ,
269
270
prop : CompilerDOM . DirectiveNode ,
271
+ exp : CompilerDOM . SimpleExpressionNode | undefined ,
270
272
features : VueCodeInformation ,
271
273
isShorthand : boolean ,
272
274
enableCodeFeatures : boolean
273
275
) : Generator < Code > {
274
- const exp = prop . exp as CompilerDOM . SimpleExpressionNode ;
275
276
if ( exp && exp . constType !== CompilerDOM . ConstantTypes . CAN_STRINGIFY ) { // style='z-index: 2' will compile to {'z-index':'2'}
276
277
if ( ! isShorthand ) { // vue 3.4+
277
278
yield * generateInterpolation (
You can’t perform that action at this time.
0 commit comments