Vue Class ConverterA small tool to convert vue class between string and array WhySometimes we want to convert the pure string class to array form, so that we could add some conditional class. For example, So I wrote this extension to do the job in one click...OK, it's two. But it's really convenient, try it! Usage
NoteThe extension simply use regular expression to detect and replace the class, so you may need to format your code first. For example, code like:
may not be recognize as valid class. It needs to be formatted like:
or other common format styles. You can use ESLint or Prettier to format your code easily. Nevertheless, if you format your code and the extension is still unable to recognize it, please feel free to open an issue. FeaturesRewrite from string form to array formRewrite from array form to string formRewrite wrapped array as wellDone
ReleaseSee CHANGELOG for more information. ContributingBugs, feature requests and more are welcome here GitHub Issues. |