Skip to content

Commit

Permalink
proper fix...?
Browse files Browse the repository at this point in the history
  • Loading branch information
so1ve committed Jul 2, 2023
1 parent 31be12b commit f179f9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vue-language-core/src/generators/template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ export function generate(
);
}
else if (componentVars[tag]) {
codes.push(`const ${var_originalComponent} = __VLS_templateComponents['${componentVars[tag]}'];\n`);
codes.push(`const ${var_originalComponent} = __VLS_templateComponents['${componentVars[tag]}'] ?? __VLS_ctx['${componentVars[tag]}'];\n`);
}
else {
codes.push(`const ${var_originalComponent} = {} as any;\n`);
Expand Down

0 comments on commit f179f9b

Please sign in to comment.