You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be possible to add completion support for the class binding within Vue render function?
Explanation
The createElement function and its h alias accept a data object, within which we can pass a class field that uses the same API as v-bind:class. These are plain .js files, but the extension does not seem to work in this case.
Alternatively, it is also possible to use JSX within the render function, using the respective Babel plugin. I guess it would make even more sense to provide completion support here.
Would it be possible to add completion support for the
class
binding within Vue render function?Explanation
The
createElement
function and itsh
alias accept a data object, within which we can pass aclass
field that uses the same API asv-bind:class
. These are plain.js
files, but the extension does not seem to work in this case.Alternatively, it is also possible to use JSX within the render function, using the respective Babel plugin. I guess it would make even more sense to provide completion support here.
Some folks at issue #58 have already mentioned this over there, but I'm not sure how well that relates to the specifics of
JSX
insideVue
.Update
It appears that
JSX
support is already there, since the template syntax is the same and the extension is active in plain javascript files.The text was updated successfully, but these errors were encountered: