I was trying to get the switch field working correctly. It renders as a normal checkbox and only had the correct styling after I included the css file referenced on the jsfiddle demo
Could you make a jsfiddle?
I modified the original jsfiddle and removed the css file.
For anyone else who is having this issue, here is how I was able to resolve it in my src/main.js:
import "vue-form-generator/dist/vfg.css";
I'm sorry but I don't understand where is the problem.
If you remove the style, of course it will not be styled.
It fallback to checkbox but still work as intended.
Like @ekingery said, if you want the style, you need to import it.
I think the problem stems from the documentation, which never explicitly states that you need to import the CSS for the non-core package. I created a PR for this, @lionel-bijaoui and @GreymondTheLong, hope that helps!
Most helpful comment
I think the problem stems from the documentation, which never explicitly states that you need to import the CSS for the non-core package. I created a PR for this, @lionel-bijaoui and @GreymondTheLong, hope that helps!
https://github.com/icebob/vue-form-generator/pull/305