Skip to content

Commit

Permalink
fix: trim modifiers for slot name
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Apr 25, 2023
1 parent 35331d4 commit 86d427b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vue-language-core/src/generators/template.ts
Expand Up @@ -717,7 +717,7 @@ export function generate(
...(
(slotDir?.arg?.type === CompilerDOM.NodeTypes.SIMPLE_EXPRESSION && slotDir.arg.content)
? createPropertyAccessCode([
slotDir.arg.loc.source,
slotDir.arg.loc.source.split('.')[0], // remove modifiers
'template',
slotDir.arg.loc.start.offset,
slotDir.arg.isStatic ? capabilitiesPresets.slotName : capabilitiesPresets.all
Expand Down

0 comments on commit 86d427b

Please sign in to comment.