Open vutran6853 opened 4 years ago
Vue expects kebab-case for prop names in templates: https://vuejs.org/v2/guide/components-props.html#Prop-Casing-camelCase-vs-kebab-case
@andrewisaburden Vue don't expects but recommend this code style to use kebab-case. But you can use both camelCase and kebab-case for props. This does not solve my problem with vetur. vetur should support both since vue support both and can be use.
Info
Problem
My child props 'myNumberIs' is camelCase but when I hover over child component prop info box from my parent component. vs code detail read props as kebab case 'my-number-is'. Is there way to fix this on how we define our props instead default to kebab-case?
Reproducible Case
1) create new vue cli project with verison 4.5.4 2) vue 3 preview default selection. 3) turn on
"vetur.experimental.templateInterpolationService": true, "vetur.validation.templateProps": true, 4) code: Parent Component
Child Component