Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update vue-tsx.ts
  • Loading branch information
johnsoncodehk committed Aug 25, 2024
commit 2bfd49f0b77207e185a304aa62089d79736ee6f2
2 changes: 1 addition & 1 deletion packages/language-core/lib/plugins/vue-tsx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ function createTsx(
const propsAssignName = computed(() => scriptSetupRanges()?.props.name);
const inheritAttrs = computed(() => {
const value = scriptSetupRanges()?.options.inheritAttrs ?? scriptRanges()?.exportDefault?.inheritAttrsOption;
return value === 'false';
return value !== 'false';
});
const generatedScript = computed(() => {
const codes: Code[] = [];
Expand Down