vuera icon indicating copy to clipboard operation
vuera copied to clipboard

Attribute hyphenation

Open bmaland opened this issue 6 years ago • 2 comments

Hi, great library but I found a small issue:

When passing props to the React component, Vue hyphenation rules doesn't work as expected. E.g. <my-react-component :form-data="someData" /> has to be written as <my-react-component :formData="someData" />, which breaks standard Vue linting rules.

Workaround is to add <!-- eslint-disable vue/attribute-hyphenation --> to the templates where needed, but would be nice if this was handled automatically by vuera.

bmaland avatar May 07 '18 09:05 bmaland

Hi, yeah, it looks like this would be easy to do, also it shouldn't break anything. Would you be so kind to submit a PR?

akxcv avatar May 11 '18 08:05 akxcv

Anything happened here? I also encountered the problem with props being hyphenated where i expected them as camelCase.

donni106 avatar Jul 28 '21 17:07 donni106