Skip to content

Commit

Permalink
fix: shorthand camelize should be used in rawName (#218)
Browse files Browse the repository at this point in the history
* fix: shorthand camelize should be used in `rawName`

* test: add camelcase test

* chore: update scope
  • Loading branch information
waynzh authored Jan 22, 2024
1 parent 18e8e17 commit d4eef64
Show file tree
Hide file tree
Showing 8 changed files with 1,243 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/template/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@ function convertForVBindSameNameShorthandValue(
}
// v-bind same-name shorthand (Vue 3.4+)
const vId = directive.key.argument
const camelName = camelize(vId.name)
const camelName = camelize(vId.rawName)
let result: ESLintExtendedProgram | null = null
try {
result = parseScriptFragment(
Expand Down
Loading

0 comments on commit d4eef64

Please sign in to comment.