loading...

Edit, priority element style in Vue JS, use third package.

vominhhuy profile image Better Me ・1 min read

Discussion

markdown guide
 

We have a vue js page, template and style tag. Example

v-text-field(v-model="")

And we want to customize input in (v-text-field)
View render in HTML
thepracticaldev.s3.amazonaws.com/i...
with we can&#39;t handle it. And with <style lang="stylus"> it will affect to other input, because not scoped&#39;s global style.<br> Solution<br> we will set class to v-text-field, example: v-text-field(v-model=&quot;&quot;, class=&quot;<em>input</em>_text&quot;)<br> Now, we can set style for it with global style.</p> <style lang="stylus"> _input__text div input background-color: red;

Thanks!