)
expect(content).toMatch('return { get x() { return x } }')
})
+
+// #11745
+test('shorthand binding w/ kebab-case', () => {
+ const { content } = compile(
+ `
+ <script setup lang="ts">
+ import { fooBar } from "./foo.ts"
+ </script>
+ <template>
+ <div :foo-bar></div>
+ </template>
+ `,
+ )
+ expect(content).toMatch('return { get fooBar() { return fooBar }')
+})
extractIdentifiers(ids, prop.exp)
} else if (prop.name === 'bind' && !prop.exp) {
// v-bind shorthand name as identifier
- ids.add((prop.arg as SimpleExpressionNode).content)
+ ids.add(camelize((prop.arg as SimpleExpressionNode).content))
}
}
if (